摘要: 1、原生JavaScript实现字符串长度截取[javascript]view plaincopyfunctioncutstr(str,len){vartemp;varicount=0;varpatrn=/[^\x00-\xff]/;varstrre="";for(vari=0;i/g,'>')}6... 阅读全文
posted @ 2015-08-21 20:45 dingxiaoyue 阅读(134) 评论(0) 推荐(0) 编辑