摘要:
第一步: 引入:<script src="qrcode.js"></script> 第二步: <div id="qrcode"></div> 第三步: // 1.简单使用方式 :new QRCode(document.getElementById('qrcode'), 'http://www.bai 阅读全文
摘要:
原文链接:http://caibaojian.com/js-splice-element.html 2:delete · delete删除掉数组中的元素后,会把该下标出的值置为undefined,数组的长度不会变 阅读全文
摘要:
array.splice(index包含,要删除的个数:从index算起,index位置上要添加的item) >返回新的数组 indexof: 1.string var arr = ['orange','2016','2016']; arr.indexOf(‘orange') 输出 0 因为 ‘or 阅读全文