日期:2014-05-17 浏览次数:20547 次
$.ajax({
type: 'get',
url: 'http://192.171.0.107/',
data: '',
dataType: 'jsonp',
jsonp: 'callback',
success: function (msg) {
alert(msg);
},
error: function () {
alert('error');
},
headers: {
"Referer": document.location.href
}
});
string callback = context.Request.QueryString["callback"];
context.Response.Write(callback + "(" + 结果+ ")")