热门关键字:
分享原生JavaScript技巧大收集(1~10)

1、原生JavaScript实现字符串长度截取functioncutstr(str,len){vartemp;varicount=0;varpatrn=/[^\x00-\xff]/;varstrre="";for(vari=0;i<str.length;i++){if(icount<len-1){temp=str.substr(i,...

9677
2013/8/1 12:00:00
2
View Details