摘要: box=[0,1,2]; box[box.length]="2"; box.push(2); console.log(box); 向数组最后追加数值的两种方式 . box.join('|') 把数组中的逗号替换成竖线分割的字符串 box.toString(); 把数组转为逗号分割的字符串 box.p 阅读全文
posted @ 2017-12-22 15:07 艾礼富 阅读(122) 评论(0) 推荐(0) 编辑
摘要: var input=document.getElementsByTagName("input")[1]; document.onmouseup=function(evt){ if(getbutton(evt)==0){ alert("按了左键")} if(getbutton(evt)==1){ al 阅读全文
posted @ 2017-12-22 10:50 艾礼富 阅读(204) 评论(0) 推荐(0) 编辑