e(最后一個(gè))0或1應(yīng)該算什么?var word = "My_name_is_Joe";
console.log(word.slice(-3,-1));
如果在字符串方法中參數(shù)為負(fù),我們是否仍從零開始算起?
慕碼人8056858
2021-04-30 13:08:13