sub

?? [s?b] US ????[s?b]

n. School (??)

3?? ??: subs ???: subs ????: subbbing ????: subbed ????: subbed

string

English [str??] American [str??]

n String; ; ?, ?? ??; ???

vt. ?, ?? ????; ?? ??, ?????

3?? ??: ??? ???? : ??? ?? ??: strung ?? ??: strung

?????? substr() ??? ???

??: ???? ?? ???? ??? ??? ??? ?????.

??: ??stringObject.substr(start,length)

????: start ?????. ??? ?? ???? ?? ??????. ?? ???? ???. ??? ?? ? ????? ??? ???? ??? ???????. ?, -1? ???? ??? ??? ????, -2? ????? ? ?? ??? ???? ????. ??? ???????. ?? ???? ?? ????. ?? ???? ???. ? ????? ???? stringObject? ???? ???? ???? ?????.?

??: stringObject? ?? ???? ???? ?? ??? ???? ? ???(start? ???? ?? ??) ??? ???? ??? ??? ????? stringObject? ???? ???? ??? ?????.

??: substr()? ????? ?? ???? ?? ??? ??? ????? ?? ???() ? ????() ?? ??? ? ????.

?????? substr() ??? ?

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">

    var str="Hello world!"
    document.write(str.substr(3))

</script>

</body>
</html>

???? ?? ?

??? ????? ??? "???? ??" ??? ?????