我在JavaScript中遇到错误
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
我认为typeof可以用作
if(typeof Sys== "undefined")
Triple equals, ===
, in javascript is to test for the same type or object.
Change it to double equals, ==
instead. This will test for the value instead of object equality.
Possible duplicate of these questions:
===
well.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.