87,997
社区成员




var selector = " aa\\\\\abc\def\ aaa bbb \a ";
document.write(selector); //aa\\abcdef aaa bbb a
与正则无关!
\ 是转义符,如果要在串中出现 \ 这个字符就需要转义,写作 \\
// Cast descendant combinators to space
type: match[0].replace( rtrim, " " )
例
"abc ",
匹配的是“c ”,其中$1是c.
注意他是用全局匹配的。