摘要:
var reg=/<\/?.+?\/?>/g stepsC.map((item,index)=>{ this.steps.push({desc:item.CellContent.replace(reg,'')}) }) 阅读全文
摘要:
告诉你一个小技巧,当你不知道location中有哪些属性可以调用的时候你可以在控制台中利用=> : keys(location) 打印location中包含哪些属性 window.location.href(当前URL) 结果如下:http://www.myurl.com:8866/test?id= 阅读全文
摘要:
恢复内容开始 数组中常用的方法: toString() 将数组转为字符串 Join() 按照指定分隔符将数组转为字符串 concat(arr1,arr2…) 拼接多个数组 slice(start,end) 截取数组元素,从start开始end结束,也可以倒着写为负数时为从后向前 splice(sta 阅读全文