上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 124 下一页
摘要: 阅读全文
posted @ 2021-07-11 13:15 AngDH 阅读(42) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-09 08:46 AngDH 阅读(24) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/qq523176585/article/details/110298488 options = { retainLines:true // 保留源代码的行号 comments:true //是否保留注释 compact:true //是否压缩代码 } im 阅读全文
posted @ 2021-07-08 09:46 AngDH 阅读(261) 评论(0) 推荐(0)
摘要: let slice = Array.prototype.slice slice.call(document.querySelectorAll("li")) 阅读全文
posted @ 2021-07-07 21:00 AngDH 阅读(74) 评论(0) 推荐(0)
摘要: for (var i = 1; i < 99999; i++) window.clearInterval(i); 阅读全文
posted @ 2021-07-06 18:00 AngDH 阅读(47) 评论(0) 推荐(0)
摘要: const user = { data:{name:"angdh",age:11}, set age(value){ if(typeof value != "number"){ throw new Error("xxx") } this.data.age = value; }, get age(){ 阅读全文
posted @ 2021-07-03 11:05 AngDH 阅读(67) 评论(0) 推荐(0)
摘要: 冻结 不能 添加 不能 修改 不能 删除 const user = { name:"angdh", age:11 }; Object.freeze(user); console.log( JSON.stringify(Object.getOwnPropertyDescriptors(user), n 阅读全文
posted @ 2021-07-03 10:56 AngDH 阅读(55) 评论(0) 推荐(0)
摘要: 封闭对象 不能往对象中添加属性 不能修改 不能重新定义特征 const user = { name:"angdh", age:11 }; Object.seal(user); console.log( JSON.stringify(Object.getOwnPropertyDescriptors(u 阅读全文
posted @ 2021-07-03 10:51 AngDH 阅读(99) 评论(0) 推荐(0)
摘要: const user = { name:"angdh", age:11 }; //不容许添加属性 Object.preventExtensions(user); //检查是否可以添加属性 if (Object.isExtensible(user)){ user.site = "www.sssss"; 阅读全文
posted @ 2021-07-03 10:40 AngDH 阅读(58) 评论(0) 推荐(0)
摘要: var user = { name:"angdh", age:11, }; console.log( JSON.stringify(Object.getOwnPropertyDescriptors(user),null,2) ); { "name": { "value": "angdh", "wri 阅读全文
posted @ 2021-07-02 09:09 AngDH 阅读(69) 评论(0) 推荐(0)
上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 124 下一页