正则匹配的test函数_正则表达式
var fnTest = /xyz/.test(function(){xyz;}) ? /b_superb/ : /.*/;对于其中正则表达式匹配函数test的用法,我很是迷惑: /xyz/.test(function(){xyz;})我查阅了Mozilla developer center中关于test函数的描述: Executes the search for a match between a regular expression and a specified string. Returns true or fal...