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