亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

比較簡單實用的使用正則三種版本的js去空格處理方法

 更新時間:2007年11月18日 20:57:10   作者:  
分別去字符串前后,左邊,右邊空格 
復(fù)制代碼 代碼如下:

String.prototype.trim = function(){ return this.replace(/^\s+|\s+$/g,"")}  
String.prototype.ltrim = function(){ return this.replace(/^\s+/g,"")}  
String.prototype.rtrim = function(){ return this.replace(/\s+$/g,"")} 

相關(guān)文章

最新評論