js json

def uid_chk_url():
request_time = time.time()
print(request)
print(request.json)
print('270')
print('270', request.get_data())


        $.ajax({
url: url,
method: "POST",
//data: JSON.stringify('{"uid":"' + term + '"}'),
data: {uid: term}.toJSONString(),
//data: {uid: term},
//dataType: "application/json"
dataType: "json",
//contentType: "text/plain",
}).done(function (msg) {
// $("#log").html(msg);
alert(123)
}).fail(function (msg) {
alert(456)
});





posted @ 2017-12-09 17:46  papering  阅读(227)  评论(0编辑  收藏  举报