String.prototype.startsWith = function (str) { if (str == null || str == "" || this.length == 0 || str.length > this.length) { return false;
} if (this.substring(0, s.length) == str) { return true;
} else { return false;
} return true;
}### 问题描述我直接放在script 标签中不行
// 请把代码文本粘贴到下方(请勿用图片代替代码)
月关宝盒
慕容708150
随时随地看视频慕课网APP
相关分类