标签: javascript jquery regex
console.log(/j/i.test(undefined)); >> false console.log(/i/i.test(undefined)); >> true
/ i / i是正则表达式,用于在未定义的传递字符串中测试i(未定义)