2017年9月15日
摘要: 阅读全文
posted @ 2017-09-15 11:46 鱼歌。。 阅读(121) 评论(0) 推荐(0)
  2017年8月4日
摘要: var str='w123abc';var reg=/\d/;//数字console.log(str.search(reg));//返回字符串中第一个数字的下标 var reg=/\D/;//非数字,相当于[^0-9]alert(reg.exec(str));//返回字符串中的第一个非数字字符 va 阅读全文
posted @ 2017-08-04 14:16 鱼歌。。 阅读(215) 评论(0) 推荐(0)
  2017年7月26日
摘要: //css样式 //js代码 阅读全文
posted @ 2017-07-26 11:18 鱼歌。。 阅读(153) 评论(0) 推荐(0)
  2017年7月25日
摘要: //位置交换Array.prototype.wrap=function(i,j){ var temp; temp=this[i]; this[i]=this[j]; this[j]=temp; return this;} //数组去重Array.prototype.unique=function() 阅读全文
posted @ 2017-07-25 20:02 鱼歌。。 阅读(179) 评论(1) 推荐(0)