zywsss

zywsss

V2EX member #90711, joined on 2015-01-08 18:06:15 +08:00
Per zywsss's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
zywsss's recent replies
Dec 14, 2017
Replied to a topic by jason19659 程序员 JS 真是门神奇的语言
@jason19659 []数组是对象,左右两边是两个独立的对象
Dec 14, 2017
Replied to a topic by jason19659 程序员 JS 真是门神奇的语言
@finian 他这个应该是对的

[] == ![]

!优先级比==高,所以先执行![],将[]转为 bool 并取反,[]空数组也是对象,对象为 true,取反结果为 false
[] == false 左侧是对象,右侧是 bool,类型不一样,转为数字进行比较
[] == 0
左侧空数组要转为数字,数组转为 primitive 只有 toString,结果就是空字符''
'' == 0 左右类型还是不一样,转为数字比较

0 == 0 结果 true
Dec 14, 2017
Replied to a topic by jason19659 程序员 JS 真是门神奇的语言
左侧的[]是一个对象,js 中对象都是为 true
右侧的![],其中的!会将右侧的[]转为 boolean 并取反,js 中数组只有 toString 方法进行类型转换,[]就转为了空字符串''为 false,一取反为 true
自己消灭 0 回复!
Jul 21, 2017
Replied to a topic by neosfung VPS vultr 日本区仍可以创建 2.5 刀的实例
@zywsss 实测仍然可以,开始弄错命令了
Jul 21, 2017
Replied to a topic by neosfung VPS vultr 日本区仍可以创建 2.5 刀的实例
Method requires authentication, no API key present
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2789 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 07:28 · PVG 15:28 · LAX 00:28 · JFK 03:28
♥ Do have faith in what you're doing.