[英]Why doesn't the JQuery AJAX call work in IE7? (for this specific example)
[英]Why ajax call does not work on IE7
我正在为我工作的公司开发应用程序,但是此ajax调用仅适用于IE9 +,FF和Chrome。 我一直在四处寻找运气。 这是我的代码,非常简单:
var request_getShoppingCart = $.ajax({
url:"classes/sCart.php?action=getItems",
cache: false,
});
request_getShoppingCart.done(function(Data) {
$('#shoppingCart').html(Data);
});
任何帮助表示赞赏
IE失败,并带有trailing comma
。
var request_getShoppingCart = $.ajax({
url:"classes/sCart.php?action=getItems",
cache: false //remove comma here
});
request_getShoppingCart.done(function(Data) {
$('#shoppingCart').html(Data);
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.