摘要:
({} + {}).length//隐式转换 {}=>"[object object]" > // 30 ([] + []).length // 隐式转换 [] 自带toString方法[].length = 0 >//0 (function(){}).length// >//0 (function 阅读全文
posted @ 2021-05-13 14:42
沉渊剑客
阅读(35)
评论(0)
推荐(0)
摘要:
1,如何使if(a 1&a 2&a 3){ console.log("you are win!!!") }正常输出? var _default = 0; Object.defineProperty(window,"a",{ get(){ return ++_default; } }); if(a 1 阅读全文
posted @ 2021-05-13 14:28
沉渊剑客
阅读(50)
评论(0)
推荐(0)
摘要:
1,如何使if(a==1&a==2&a==3){ console.log("you are win!!!") }正常输出? var a = { _default:0, toString:function(){ return ++ _default; }; if(a==1&a==2&a==3){ co 阅读全文
posted @ 2021-05-13 14:22
沉渊剑客
阅读(50)
评论(0)
推荐(0)

浙公网安备 33010602011771号