varCts = "bblText"; if(Cts.indexOf("Text") > 0 ){ alert(Cts中包含Text字符串); } indexOf用法: 返回String 对象内第一次出现子字符串的字符位置。
確定! 回上一頁