如何检查一个字符串是否包含另一个字符串,而不是使用 "==" 比较整个字符串?
敬礼
.indexOf()
if(str.indexOf(substr) > -1) { }
msgCache[id].headers.subject