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;
}-sharp-sharp-sharp
the environmental background of the problems and what methods you have tried
I can"t put it directly in the script tag
related codes
/ / Please paste the code text below (do not replace the code with pictures)