在javascript中,
var a = ''; var b = (a) ? true : false;
var b将设置为false。
var b
false
这是可以依赖的已定义行为吗?
https://stackoverflow.com/questions/8692982
相似问题