标签:cti 保留 div bst code arp str i++ sub
function plusXing (str,frontLen,endLen) {
var len = str.length-frontLen-endLen;
var xing = ‘‘;
for (var i=0;i<len;i++) {
xing+=‘*‘;
}
return str.substr(0,frontLen)+xing+str.substr(str.length-endLen);
}
//字符串 前面保留位数 后面保留位数
标签:cti 保留 div bst code arp str i++ sub
原文地址:http://www.cnblogs.com/vali/p/7183470.html