1 varCts = "bblText"; 2 if(Cts.indexOf("Text") > 0 ){ 3 alert('Cts中包含Text字符串'); 4 } 转载于:https://www.cnblogs.com/ghfjj/p/6306282.html