auto commit
This commit is contained in:
parent
f2e1f0755e
commit
4ad35c0ea8
@ -38,4 +38,4 @@
|
|||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -333,4 +333,4 @@ const a; // SyntaxError: Missing initializer in const declaration }
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|||||||
@ -42,4 +42,4 @@
|
|||||||
|
|
||||||
var i = 1;
|
var i = 1;
|
||||||
Number.prototype.test = "Hello";
|
Number.prototype.test = "Hello";
|
||||||
console.log(i.test);
|
console.log(i.test);
|
||||||
|
|||||||
@ -156,3 +156,4 @@ str.last(); // 5 执行到这一句,后台依然会偷偷的干这些事
|
|||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -162,4 +162,4 @@
|
|||||||
// console.log([1,2].toString()); // "1,2"
|
// console.log([1,2].toString()); // "1,2"
|
||||||
// console.log(Number("1,2")) // NaN
|
// console.log(Number("1,2")) // NaN
|
||||||
|
|
||||||
console.log(+'abc');
|
console.log(+'abc');
|
||||||
|
|||||||
@ -527,4 +527,4 @@ undefined + 1 // NaN
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|||||||
@ -178,4 +178,4 @@ var a = {
|
|||||||
// Number ----> valueOf ----> toString
|
// Number ----> valueOf ----> toString
|
||||||
if (a == 1 && a == 2 && a == 3) {
|
if (a == 1 && a == 2 && a == 3) {
|
||||||
console.log('1');
|
console.log('1');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1367,3 +1367,4 @@ if(a == 1 && a == 2 && a == 3){
|
|||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -117,4 +117,4 @@
|
|||||||
// function foo() {
|
// function foo() {
|
||||||
// return "good";
|
// return "good";
|
||||||
// }
|
// }
|
||||||
// console.log(foo, typeof foo); // Hello, string
|
// console.log(foo, typeof foo); // Hello, string
|
||||||
|
|||||||
@ -315,4 +315,4 @@ fooExecutionContext = {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|||||||
@ -22,4 +22,4 @@
|
|||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -34,4 +34,4 @@ function show(f) {
|
|||||||
f() // 10,而不是 20
|
f() // 10,而不是 20
|
||||||
})()
|
})()
|
||||||
}
|
}
|
||||||
show(fn)
|
show(fn)
|
||||||
|
|||||||
@ -421,3 +421,4 @@ const food = "rice";
|
|||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -261,4 +261,4 @@ const Test = (name, age) => {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
this.age = age;
|
this.age = age;
|
||||||
};
|
};
|
||||||
const test = new Test("xiejie", 18);
|
const test = new Test("xiejie", 18);
|
||||||
|
|||||||
@ -800,4 +800,4 @@ const test = new Test("xiejie", 18);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|||||||
@ -180,3 +180,4 @@ fn();
|
|||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -271,4 +271,4 @@ for (let i = 1; i <= 3; i++) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|||||||
@ -37,4 +37,4 @@
|
|||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -197,3 +197,4 @@ test.addEventListener("click", fn2, false);
|
|||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -44,4 +44,4 @@
|
|||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -313,4 +313,4 @@ colorList.addEventListener("click", function (event) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|||||||
@ -20,4 +20,4 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -167,4 +167,4 @@ test.onclick = function (event) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|||||||
@ -46,4 +46,4 @@ function func(x) {
|
|||||||
return func(x - 1) + func(x - 2);
|
return func(x - 1) + func(x - 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(func(7));
|
console.log(func(7));
|
||||||
|
|||||||
@ -143,4 +143,4 @@ console.log(calc(7)); // 21
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|||||||
@ -151,4 +151,4 @@ Object.defineProperty(obj2,'x',{
|
|||||||
extend(obj,obj2);
|
extend(obj,obj2);
|
||||||
console.log(obj);
|
console.log(obj);
|
||||||
obj.x = 200;
|
obj.x = 200;
|
||||||
console.log(obj.x);
|
console.log(obj.x);
|
||||||
|
|||||||
@ -294,4 +294,4 @@ console.log(Object.isFrozen(obj3)); //false
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|||||||
@ -118,4 +118,4 @@ var Computer = /*#__PURE__*/function () {
|
|||||||
}();
|
}();
|
||||||
|
|
||||||
|
|
||||||
var apple = new Computer("苹果",15000);
|
var apple = new Computer("苹果",15000);
|
||||||
|
|||||||
@ -576,3 +576,4 @@ e.init();
|
|||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -26,4 +26,4 @@
|
|||||||
// console.log((1.335).toFixed(2));
|
// console.log((1.335).toFixed(2));
|
||||||
|
|
||||||
console.log(19571992547450991); // 19571992547450990
|
console.log(19571992547450991); // 19571992547450990
|
||||||
console.log(19571992547450991===19571992547450992); // true
|
console.log(19571992547450991===19571992547450992); // true
|
||||||
|
|||||||
@ -239,3 +239,4 @@ console.log(19571992547450991===19571992547450992); // true
|
|||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -46,4 +46,4 @@
|
|||||||
// 8. 不能使用保留字作为标识符
|
// 8. 不能使用保留字作为标识符
|
||||||
|
|
||||||
var public = "hello world";
|
var public = "hello world";
|
||||||
console.log(public);
|
console.log(public);
|
||||||
|
|||||||
@ -292,3 +292,4 @@ console.log(public);
|
|||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -84,4 +84,4 @@
|
|||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -331,3 +331,4 @@ function throttle(func, wait) {
|
|||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -98,4 +98,4 @@ var newArr = []
|
|||||||
set1.forEach(item => {
|
set1.forEach(item => {
|
||||||
set2.has(item) ? newArr.push(item) : ''
|
set2.has(item) ? newArr.push(item) : ''
|
||||||
})
|
})
|
||||||
console.log(newArr)
|
console.log(newArr)
|
||||||
|
|||||||
@ -549,4 +549,4 @@ John = null;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|||||||
@ -228,4 +228,4 @@
|
|||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -529,4 +529,4 @@ console.log(arr2); // [ 2, true, 'Hello', { name: 'xiejie', age: 19 } ]
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|||||||
@ -114,3 +114,4 @@ console.log(add(1)(2)(3).toString())
|
|||||||
console.log(add(1, 2, 3)(4).toString())
|
console.log(add(1, 2, 3)(4).toString())
|
||||||
console.log(add(1)(2)(3,4,5)(6,7).toString())
|
console.log(add(1)(2)(3,4,5)(6,7).toString())
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -315,4 +315,4 @@ console.log(add(2, 6)(1).toString()); // 9
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|||||||
@ -58,4 +58,4 @@
|
|||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -129,3 +129,4 @@ setTimeout(()=>{
|
|||||||
// promise1
|
// promise1
|
||||||
// timer2
|
// timer2
|
||||||
// promise2
|
// promise2
|
||||||
|
|
||||||
|
|||||||
@ -546,4 +546,4 @@ setTimeout(()=>{
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|||||||
@ -38,3 +38,4 @@ console.log(a);
|
|||||||
|
|
||||||
var x = '';
|
var x = '';
|
||||||
eval(x)
|
eval(x)
|
||||||
|
|
||||||
|
|||||||
@ -153,4 +153,4 @@ console.log(typeof x); // number
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|||||||
@ -94,4 +94,4 @@
|
|||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -425,3 +425,4 @@ body{
|
|||||||
|
|
||||||
-*EOF*-
|
-*EOF*-
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -53,3 +53,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -8042,3 +8042,4 @@ console.log(a + 7);
|
|||||||
>
|
>
|
||||||
> 因为会自动调用 a 函数的 *toString* 方法。
|
> 因为会自动调用 a 函数的 *toString* 方法。
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1528,3 +1528,4 @@ a.toString = function () {
|
|||||||
};
|
};
|
||||||
console.log(a + 7);
|
console.log(a + 7);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user