11 2020 档案
摘要:function Person(name,age){ this.name=name; this.age=age; } Person.prototype={ constructor:Person, show(){ console.log("我是show方法"); } } var p1=new Pers
阅读全文
摘要:1属性 1.Attributes 属性集合 元素节点的attributes属性返回节点的属性集合,即NamesNodeMoap--一个类数组对象 2.读取属性 var a=document.getElementById("one"); console.log(a.attributes[1].valu
阅读全文
摘要:数组的方法 1、toString() 把数组转换成字符串,用,隔开,原来的数组不变 2、 join() 把数组转换成字符串,默认用,隔开,可以指定隔开方式,原 来的数组不变 3、 concat() 拼接数组,原来的数组不变 4、 slice(开始下标,真正的结束=结束下标-1) 获取子数组,含头不含
阅读全文

浙公网安备 33010602011771号