catch 區塊接受一參數,可以利用這個參數取得錯誤資訊。 例如: function test(){ throw new Error("something wrong") }try{ test() console.
確定! 回上一頁