auto commit

This commit is contained in:
DuYi 2024-08-27 10:14:31 +08:00
parent f2e1f0755e
commit 4ad35c0ea8
51 changed files with 51 additions and 35 deletions

View File

@ -38,4 +38,4 @@
</script> </script>
</body> </body>
</html> </html>

View File

@ -333,4 +333,4 @@ const a; // SyntaxError: Missing initializer in const declaration }
-*EOF*- -*EOF*-

View File

@ -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);

View File

@ -156,3 +156,4 @@ str.last(); // 5 执行到这一句,后台依然会偷偷的干这些事
-*EOF*- -*EOF*-

View File

@ -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');

View File

@ -527,4 +527,4 @@ undefined + 1 // NaN
-*EOF*- -*EOF*-

View File

@ -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');
} }

View File

@ -1367,3 +1367,4 @@ if(a == 1 && a == 2 && a == 3){
-*EOF*- -*EOF*-

View File

@ -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

View File

@ -315,4 +315,4 @@ fooExecutionContext = {
-*EOF*- -*EOF*-

View File

@ -22,4 +22,4 @@
</script> </script>
</body> </body>
</html> </html>

View File

@ -34,4 +34,4 @@ function show(f) {
f() // 10而不是 20 f() // 10而不是 20
})() })()
} }
show(fn) show(fn)

View File

@ -421,3 +421,4 @@ const food = "rice";
-*EOF*- -*EOF*-

View File

@ -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);

View File

@ -800,4 +800,4 @@ const test = new Test("xiejie", 18);
-*EOF*- -*EOF*-

View File

@ -180,3 +180,4 @@ fn();
-*EOF*- -*EOF*-

View File

@ -271,4 +271,4 @@ for (let i = 1; i <= 3; i++) {
-*EOF*- -*EOF*-

View File

@ -37,4 +37,4 @@
</script> </script>
</body> </body>
</html> </html>

View File

@ -197,3 +197,4 @@ test.addEventListener("click", fn2, false);
-*EOF*- -*EOF*-

View File

@ -44,4 +44,4 @@
</script> </script>
</body> </body>
</html> </html>

View File

@ -313,4 +313,4 @@ colorList.addEventListener("click", function (event) {
-*EOF*- -*EOF*-

View File

@ -20,4 +20,4 @@
} }
</script> </script>
</body> </body>
</html> </html>

View File

@ -167,4 +167,4 @@ test.onclick = function (event) {
-*EOF*- -*EOF*-

View File

@ -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));

View File

@ -143,4 +143,4 @@ console.log(calc(7)); // 21
-*EOF*- -*EOF*-

View File

@ -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);

View File

@ -294,4 +294,4 @@ console.log(Object.isFrozen(obj3)); //false
-*EOF*- -*EOF*-

View File

@ -118,4 +118,4 @@ var Computer = /*#__PURE__*/function () {
}(); }();
var apple = new Computer("苹果",15000); var apple = new Computer("苹果",15000);

View File

@ -576,3 +576,4 @@ e.init();
-*EOF*- -*EOF*-

View File

@ -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

View File

@ -239,3 +239,4 @@ console.log(19571992547450991===19571992547450992); // true
-*EOF*- -*EOF*-

View File

@ -46,4 +46,4 @@
// 8. 不能使用保留字作为标识符 // 8. 不能使用保留字作为标识符
var public = "hello world"; var public = "hello world";
console.log(public); console.log(public);

View File

@ -292,3 +292,4 @@ console.log(public);
-*EOF*- -*EOF*-

View File

@ -84,4 +84,4 @@
</script> </script>
</body> </body>
</html> </html>

View File

@ -331,3 +331,4 @@ function throttle(func, wait) {
-*EOF*- -*EOF*-

View File

@ -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)

View File

@ -549,4 +549,4 @@ John = null;
-*EOF*- -*EOF*-

View File

@ -228,4 +228,4 @@
</script> </script>
</body> </body>
</html> </html>

View File

@ -529,4 +529,4 @@ console.log(arr2); // [ 2, true, 'Hello', { name: 'xiejie', age: 19 } ]
-*EOF*- -*EOF*-

View File

@ -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())

View File

@ -315,4 +315,4 @@ console.log(add(2, 6)(1).toString()); // 9
-*EOF*- -*EOF*-

View File

@ -58,4 +58,4 @@
</script> </script>
</body> </body>
</html> </html>

View File

@ -129,3 +129,4 @@ setTimeout(()=>{
// promise1 // promise1
// timer2 // timer2
// promise2 // promise2

View File

@ -546,4 +546,4 @@ setTimeout(()=>{
-*EOF*- -*EOF*-

View File

@ -38,3 +38,4 @@ console.log(a);
var x = ''; var x = '';
eval(x) eval(x)

View File

@ -153,4 +153,4 @@ console.log(typeof x); // number
-*EOF*- -*EOF*-

View File

@ -94,4 +94,4 @@
</script> </script>
</body> </body>
</html> </html>

View File

@ -425,3 +425,4 @@ body{
-*EOF*- -*EOF*-

View File

@ -53,3 +53,4 @@

View File

@ -8042,3 +8042,4 @@ console.log(a + 7);
> >
> 因为会自动调用 a 函数的 *toString* 方法。 > 因为会自动调用 a 函数的 *toString* 方法。

View File

@ -1528,3 +1528,4 @@ a.toString = function () {
}; };
console.log(a + 7); console.log(a + 7);
``` ```