编程论坛
»
『 PHP技术论坛 』
» 搞不清楚是什么意思,请求详细解释一下。。
lfboo
发表于 2010-9-3 18:49
搞不清楚是什么意思,请求详细解释一下。。
text.replace(/^\s+/i,'').replace(/\s+$/i,'')是什么意思?
gupiao175
发表于 2010-9-3 22:03
text.replace(/^\s+/i,'').replace(/\s+$/i,'')
和这个
text.replace(/^\s+|\s+$/ig,'')
两者应该是等效的!
页:
[1]
编程论坛