摘要:
数据类型 //**基础数据类型**/ //1.字符串类型 let email:string="22" console.log(email) //模板字符串 let msg:string=`my email is ${email}` console.log(msg) //2布尔 let isshow: 阅读全文
摘要:
1、hasOwnProperty只能判断是否是属于自身的属性,无法找到原型身上的属性(hasOwnProperty()只在属性存在于实例中时才返回true) Person.prototype.lastName = "Deng"; function Person() { } var person = 阅读全文