摘要: 1.字符串包含判断var a = "qwer";var b = "q";if (a.contains(b)) { alert("1");} else { alert("2");} 阅读全文