var name = "helloworld";
var l = name.substring(0,5)
//截取hello
document.write(l);
document.write("<br>");
//截取hello后面的字符
var q = name.substring(5);
document.write(q);
var name = "helloworld";
var l = name.substring(0,5)
//截取hello
document.write(l);
document.write("<br>");
//截取hello后面的字符
var q = name.substring(5);
document.write(q);
info 还没有任何评论,你来说两句呐!