Best way to handle any exception

面相stackoverflow编程

try {
    something
} catch (e) {
    window.location.href = 'http://stackoverflow/search?q=[js] + ' + e.message;
}

评论

暂无评论