oktw says to #ysitd <BirkhoffLee>: 喔,是因為 return this.indexOf(str) === 0 我 寫成了 eturn this.indexOf str === 0; (livescript) 導致執行結果完全不一樣,一個是 return this.indexOf(str) === 0; 一個是 return this.indexOf(str === 0);