To get the first N characters of a string in JavaScript, call the slice() method on the string, passing 0 as the first argument and N as the second.
確定! 回上一頁