本篇作為書籤用途,紀錄網路上的雜項參考資料

二階段驗證

Stackoverflow Exception Handler

// For JavaScript Exception Handler
try {
  // do something
} catch (e) {
  window.location.href = "https://stackoverflow.com/search?q=[js] + " + e.message;
}
// For PHP Exception Handler
try {
  // do something
} catch (Exception $e) {
  header("location: https://stackoverflow.com/search?q=[php] ".$e->getMessage());
}

參考資料:


Poy Chang

Trial and Error