摘要:
//普通对象 //函数对象(有原型 prototy 的属性) //原型的应用 继承 function Amial(){ this.type = '小于' } function cat(name){ this.name = name } cat.prototype = new Amial() var cat1 = new cat('小张') console.log(cat1.name,cat1.ty 阅读全文
摘要:
js数据类型分为两大类:一 值类型 二 引用类型 一 值类型 string number boolean null undefined eg: var str = 'aaa' var num = 123 var bool = true var n = null var und = undefined 阅读全文