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