0
我得到一個錯誤,在JavaScript在javascript中我得到錯誤ASP.NET AJAX客戶端框架未能加載
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
我得到一個錯誤,在JavaScript在javascript中我得到錯誤ASP.NET AJAX客戶端框架未能加載
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
我想的typeof用作
if(typeof Sys== "undefined")
三重等號,===
,在JavaScript中是爲了測試相同的類型或對象。
改爲兩倍等於,==
。這將測試值而不是對象相等。
這些問題可能重複:
請編輯問題並添加更多信息。這段代碼是什麼?你的位置? – Jess 2013-03-28 02:29:28
有沒有任何答案對您有幫助?如果有的話,請注意或接受答案。 – Jess 2013-03-29 12:15:24