[英]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.