var s='afajfxlxjxxxl:1::2::3::3:',l=20; if(s.length>l)s=s.substring(0,l).replace(/(:(:|\d+))$/g,function(s){return s=='::'?':':''})+'......' 推荐学习资料 Web开发 JSONP跨域访问在线代理
var s='afajfxlxjxxxl:1::2::3::3:',l=20; if(s.length>l)s=s.substring(0,l).replace(/(:(:|\d+))$/g,function(s){return s=='::'?':':''})+'......'
[quote=引用 1 楼 zzgzzg00 的回复:] substring 不知道你在说什么啊
substring 不知道你在说什么啊
87,993
社区成员
224,694
社区内容
加载中
试试用AI创作助手写篇文章吧