javascript 正则表达式去空行方法 去除前导和后续空格/(^\s*)|(\s*$)/g范例如下:函数体:String.prototype.trim=function(){returnthis.replac 删除空行