To love. To succeed. To be honest. 网摘

摘要: 1.截取规定长度的中英文字符字符串:var sub=function(str,n){ var r=/[^\x00-\xff]/g; if(str.replace(r,"mm").length=n){ return str.substr(0,i)+"..."; } }... 阅读全文
posted @ 2014-08-04 14:50 RaynerBan 阅读(206) 评论(0) 推荐(0) 编辑

To love. To succeed. To be honest.