判定對(duì)象是否為window的js代碼_javascript技巧
來源:懂視網(wǎng)
責(zé)編:小采
時(shí)間:2020-11-27 20:47:26
判定對(duì)象是否為window的js代碼_javascript技巧
判定對(duì)象是否為window的js代碼_javascript技巧:alert(Object.prototype.toString.call(window)) [Ctrl+A 全選 注:如需引入外部Js需刷新才能執(zhí)行]結(jié)果是五花八門: [object Object]IE6 [object Object]IE8 [object Window]firefox3.6 [object Window]oper
導(dǎo)讀判定對(duì)象是否為window的js代碼_javascript技巧:alert(Object.prototype.toString.call(window)) [Ctrl+A 全選 注:如需引入外部Js需刷新才能執(zhí)行]結(jié)果是五花八門: [object Object]IE6 [object Object]IE8 [object Window]firefox3.6 [object Window]oper
判定對(duì)象是否為window的js代碼_javascript技巧
判定對(duì)象是否為window的js代碼_javascript技巧:alert(Object.prototype.toString.call(window)) [Ctrl+A 全選 注:如需引入外部Js需刷新才能執(zhí)行]結(jié)果是五花八門: [object Object]IE6 [object Object]IE8 [object Window]firefox3.6 [object Window]oper