11 2020 档案

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