查找alert的位置

idea创建File and Code Templates

1
2
3
4
5
6
var originAlert = window.alert; // 首先记录原生的alert
window.alert = function (text) { // 用我们带断点的alert覆盖window.alert
debugger;
return originAlert.call(window, text);
};