摘要:
true becomes 1 and false becomes 0. undefined becomes NaN, but (curiously) null becomes 0 Objects (and arrays) will first be converted to their primit 阅读全文
posted @ 2019-04-23 23:22
zllmh
阅读(294)
评论(0)
推荐(0)
摘要:
According to ES5 spec section 11.6.1, the + algorithm (when an object value is an operand) will concatenate if either operand is either already a stri 阅读全文
posted @ 2019-04-23 23:15
zllmh
阅读(117)
评论(0)
推荐(0)
摘要:
ToBoolean Falsy Values All of JavaScript's values can be divided into two categories: 1. values that will become false if coerced to boolean 2. everyt 阅读全文
posted @ 2019-04-23 10:35
zllmh
阅读(304)
评论(0)
推荐(0)
摘要:
The JSON.stringify(..) utility will automatically omit undefined, function, and symbol values when it comes across them. If such a value is found in a 阅读全文
posted @ 2019-04-23 10:03
zllmh
阅读(161)
评论(0)
推荐(0)
摘要:
Rather than running away from what you don't fully understand because everyone else does, or because you get bitten by some quirk, I think you should 阅读全文
posted @ 2019-04-23 02:02
zllmh
阅读(106)
评论(0)
推荐(0)

浙公网安备 33010602011771号