您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. 3.4.7 object类型之通用属性和方法

  2. constructor 构造函数,保存用于创建当前对象的函数。 hasOwnProperty(propertyName) 用于检查指定属性是否在当前对象实例中,参数须以字符串形式指定。 function f1(name) { this.name = name; } f1.prototype.age = 12; obj = new f1(); console.log(obj.hasOwnProperty('name')); //true,实例中 console.log(obj.hasOwn
  3. 所属分类:其它

    • 发布日期:2021-01-08
    • 文件大小:29kb
    • 提供者:weixin_38706782