js相关 记录工作中用到的js实用方法: 1. 判断包含:indexOf "https".indexOf("http") 包含结果为0,不包含结果为-1; 通常用("https".indexOf("htt") != -1)判断包含