handle error in js 7月 12, 2017 12345try { something} catch (e) { window.location.href = `http://stackoverflow.com/search?q=[js]${e.message}`} JavaScript