console.log(str.indexOf("3") != -1 ); // true
参考1:https://www.cnblogs.com/ooo0/p/7741651.html
match
参考2:https://www.runoob.com/js/js-strings.html