登 录
String.prototype.trim = function(){return this.replace(/(^/s*)|(/s*$)/g, '');
}或
function trim(str)
{
return String(str).replace(/(^/s*)|(/s*$)/g,"");
}
抱歉!评论已关闭.