![](/img/trans.png)
[英]Why does this simple code fail in firefox yet work in every other browser including opera and old IE versions
[英]Why does this jQuery not work in IE but in every other browser?
我的問題是,為什么此代碼可在除IE功能之外的所有瀏覽器中正常工作。 在其他瀏覽器中也可以。
if(phrases.indexOf(currentPhrase))短語.splice(phrases.indexOf(currentPhrase),1);
我的猜測是IE正在緩存請求(因為它是通過GET
)。 您可以通過多種方式解決此問題,包括在服務器端進行緩存控制或改用POST
。 jQuery的.load()
有點煩人,因為您必須使用一個對象作為數據來表示您想要POST
請求,並為GET
使用字符串,而不是允許您設置顯式請求。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.