JavaScript--截取字符串

<script> $(document).ready(function () { //下標從0開始 let str = '123456789'; //使用一個參數 console.log(str.slice(3)) //從第4個字符開始,截取到最後個字符;返回"456789"
相關文章
相關標籤/搜索