2023-08-07T09:44:57.png

    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);