JS的字符串处理时间:2021-08-26 05:06:141.字符串包含判断 var a = "qwer"; var b = "q"; if (a.contains(b)) { alert("1"); } else { alert("2"); }