function trimLeftRight(str){
try {
var newStr = "";
newStr = str.replace(/(^\s*)/g, "").replace(/(\s*$)/g, "");
return newStr;
} catch (e) {
return str;
}
}
去除空格
猜你喜欢
转载自lilalsy.iteye.com/blog/2317187
今日推荐
周排行