[英]Why ajax call does not work on IE7
I am developing an app for a company i work for but this ajax call only works on IE9+, FF, Chrome . 我正在为我工作的公司开发应用程序,但是此ajax调用仅适用于IE9 +,FF和Chrome。 I've been reading around without much luck. 我一直在四处寻找运气。 Here is the code i have.It is pretty simple: 这是我的代码,非常简单:
var request_getShoppingCart = $.ajax({
url:"classes/sCart.php?action=getItems",
cache: false,
});
request_getShoppingCart.done(function(Data) {
$('#shoppingCart').html(Data);
});
Any help is appreciated 任何帮助表示赞赏
IE fails with trailing comma
. 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);
});
jQuery .ajax method in IE7 & IE6 not working but working fine in Firefox IE7和IE6中的jQuery .ajax方法无法正常运行,但在Firefox中可以正常运行
Does Internet Explorer 9 choke on extra commas at the end of array and object literals? Internet Explorer 9是否会在数组和对象文字的末尾加上多余的逗号?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.