js 語句

//try...catch語句標記要嘗試的語句塊,並指定一個出現異常時拋出的響應。 //try若是出現如下狀況,catch就拋出一個異常問題所在 try { nonExistentFunction(); } catch(error) { console.error(error);//RnonExistentFunction is not de
相關文章
相關標籤/搜索