`
try{
dosomething
.....
} catch(e){
window.location.href = "http://stackoverflow.com/search?q="+e.message;
}
`
`
try{
dosomething
.....
} catch(e){
window.location.href = "http://stackoverflow.com/search?q="+e.message;
}
`
转载于:https://my.oschina.net/u/2310996/blog/711409