首页 > 技术文章 > js字符串是否包含另一个字符串
zjj1990 2017-11-02 14:08 原文
var Cts = "bblText"; if(Cts.indexOf("Text") > 0 ) { alert('Cts中包含Text字符串'); }