正则表达式,把全部的空格替换成"_"

val.replace(/\s+/g,'_') html \s: space, 空格 +: 一个或多个 ^: 开始,^\s,以空格开始 $: 结束,\s$,以空格结束 |:或者 /g:global, 全局 ajax function verify() {   async     $.ajax({            //issue for IE cache; timestamp=" + new
相关文章
相关标签/搜索