We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
分组运算符不会进行求值。
var GLOBAL_OBJECT = this; GLOBAL_OBJECT.name = 'liyanshan'; var obj = { name: 'liyanfeng', say: function(){ alert(this.name); } } console.log(GLOBAL_OBJECT); (obj.say)(); // liyanfeng (obj.say || 0)(); // liyanshan 强制求值,此时say才变成一个普通函数