摘要:
box=[0,1,2]; box[box.length]="2"; box.push(2); console.log(box); 向数组最后追加数值的两种方式 . box.join('|') 把数组中的逗号替换成竖线分割的字符串 box.toString(); 把数组转为逗号分割的字符串 box.p 阅读全文
摘要:
var input=document.getElementsByTagName("input")[1]; document.onmouseup=function(evt){ if(getbutton(evt)==0){ alert("按了左键")} if(getbutton(evt)==1){ al 阅读全文