Syntax error: invalid label
当我在跨域中通过 AJAX 调用 REST 服务时遇到问题。我的回答是{ "d": 12000 }
它在“d”的双引号处显示错误。
我的代码是这样的:
$.ajax({
type: 'post',
url: 'http://localhost/test.svc/getnumber',
dataType: "jsonp",
crossDomain: true,
contentType: "application/jsonp",
});
我该如何解决这个问题?