摘要: 报错示例:报错原因:在vscode里面编写了一段js代码,使用了import来引入一个函数并调用代码复现// inherit() returns a newly created object that inherits properties from the// prototype object p. It uses the ECMAScript 5 function Object.create... 阅读全文
posted @ 2020-09-06 15:25 Eyeseas 阅读(5198) 评论(2) 推荐(2) 编辑
摘要: > 对象是js中的关键 ## 属性查找> in,Object.hasOwnProperty(),Object.propertyIsEnumerable()都能检测出对象内是否存在某个属性 1. `in`关键字 自有属性/继承属性 都返回 `true`2. `object.hasOwnProperty()` 自有属性 返回`true`3. `Object.propertyIsEnu... 阅读全文
posted @ 2020-09-06 01:15 Eyeseas 阅读(245) 评论(0) 推荐(0) 编辑