Javascript String seriesNameCut()

Description

Javascript String seriesNameCut()


String.prototype.seriesNameCut=function(){
 var self=this
 var deleteStrFragment=this.indexOf('.')
 sStr=self.substring(deleteStrFragment+1)
 var reStr=sStr.substring(23,sStr.length-5)
 var _this=sStr/*  ww w . ja  v a  2s . c o m*/
 return _this.replace(reStr,'...')
}



PreviousNext

Related