解決辦法:Synchronous XMLHttpRequest on the main thread is deprecated because of its

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
jquery2.1.js:4 XHR finished loading: GET "http://192.168.1.212:8008/plugins/af.desktopBrowsers.js?_=1431408051492".

在app framework 引入jquery進會出錯,好多天解決不了,

這個問題我想也會困繞其他人的,出這個提示是網站進行了外部地址請求,我把地址換成http://localhost:8008/plugins/af.desktopBrowsers.js,本地就 ok了

        <script type="text/javascript" charset="utf-8" src="./jquery2.1.js"></script>
        <script type="text/javascript" charset="utf-8" src="./jq.appframework.js"></script>
       <script type="text/javascript" charset="utf-8" src="TouchSlide.1.1.js"></script>


、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、


 if (!((window.DocumentTouch && document instanceof DocumentTouch) || 'ontouchstart' in window)) {

                var script = document.createElement("script");
                script.src = "http://localhost:8008/plugins/af.desktopBrowsers.js";
                var tag = $("head").append(script);
//                  $.os.desktop=true;


            }
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章