Lines Matching refs:var
339 #### 规则3.1 声明变量时须使用`var`、`let`或`const`关键字进行声明,避免变量暴露到全局作用域上。
341 …var`、`let`或`const`关键字声明变量,会导致将变量暴露到全局作用域上,这样可能会覆盖全局作用域上的同名变量,进而引发GC无法有效回收内存的问题;另外,当变量中包含敏感信息时,暴露到全…
402 var foo;
424 var isShow = new Boolean(false);
433 var isShow = false;
446 var foo = { x: 5 };
448 var x = 3;
464 var User = function(username) {
467 var user = new User('John');
470 var ClickCounter = {
491 var f = function () {
509 var arr = [1, 1, 1, 1, 1, 2, 1, 1, 1];
520 var hasBarProperty = foo.hasOwnProperty("bar");
521 var isPrototypeOfBar = foo.isPrototypeOf(bar);
522 var barIsEnumerable = foo.propertyIsEnumerable("bar");
528 var hasBarProperty = Object.prototype.hasOwnProperty.call(foo, "bar");
529 var isPrototypeOfBar = Object.prototype.isPrototypeOf.call(foo, bar);
530 var barIsEnumerable = {}.propertyIsEnumerable.call(foo, "bar");
538 var empty = Object.create(null);
551 var func = new Function('a', 'b', 'return a + b');
552 var func2 = new Function('alert("Hello")');
562 var func2 = function(a, b) {
635 var sum1 = (0.1 + 0.2) + 0.3;
638 var sum2 = 0.1 + (0.2 + 0.3);
658 var one = 0.1 + 0.2;
659 var other = 0.3;
675 var result = math.add(math.bignumber(0.1), math.bignumber(0.2));