本博主最近正在建设一个9元包邮的网站,希望各位光临指导一些意见: 9元包邮 http://www.jiubaou.com/
//截取字符串
String.prototype.cutString = function(length){
var temp = (this.replace(/([\u0391-\uffe5])/ig,'$1a').substring(0,length).replace(/([\u0391-\uffe5])a/ig,'$1'));
if(this != temp)
{
temp = temp +'...';
}
return temp;
}