js中想要去掉左右空格该怎么办,类似php中的trim函数写成类的方法格式如下:(str.trim())<script language="javascript"> String.prototype.trim=function(){ retu2023-02-21JavaScript110