[英]jQuery AJAX request not returning anything [on hold]
i have this code 我有这个代码
<html> <head><title>Basic Ajax Demo</title> <script src="http://code.jquery.com/jquery-1.12.0.min.js"></script> </head> <body> <div id="demo-ajax"></div> <form method="post" id="form-login"> <input type="text" name="username" id="username" placeholder="ten dang nhap" /> <input type="text" name="password" id="password" placeholder="mat khau" /> <button id="btn-login" type="submit">Login</button> </form> </body> </html>
and java in here [a link] http:///fortune500.vn/ae/a.js [a panda] 和Java在这里[链接] http:///fortune500.vn/ae/a.js [熊猫]
please help why it dont working nothing return as other code 请帮助为什么它不起作用什么也不返回作为其他代码
SyntaxError: unexpected token: identifier SyntaxError:意外令牌:标识符
i think i have miss something with this ajax 我想我已经错过了这个ajax的东西
var params = $(this).serialize();
$.ajax({
url: 'http://...?another-server=1',
data: params,
dataType: 'jsonp',
jsonp: 'callback',
jsonpCallback: 'jsonpCallback',
success: function (data) {
console.log(data);
alert(data.message);
refreshSms();
}
});
nothing return 没有回报
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.