Regular Expression in [removed] not true enough for this if-statement?

前端 未结 0 710
抹茶落季
抹茶落季 2021-02-06 17:43

This is weird... I simply can\'t figure it out:

var word = "hello";
var re = new RegExp("hello", "g");
alert(re.test(word));
if (re.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题