我有时在this
中使用event
指针,但有时我会使用类似的东西
if (this.value < x && this.value < y && this.value == z)
如果我将其分配给变量会更好吗?>
var val = this.value; if (val < x && val < y && val == z)
或者在性能上没有差异,因为我不知道是否每次都注册或调用了
this.value
我有时在活动中使用此指针,但有时我会使用类似if(this.value
是,它可以提高性能,在某些old
Javascript引擎中-引擎may