0

我正在使用 Chrome 的 DevTools 控制台来调试网页。有没有办法将控制台中输出的内容传输到主网页?

4

1 回答 1

3

You could try and replace console.log if its just those messages which you are trying to capture with something like

console.log = function(what){
    //Do what you want with what has been logged
    alert(what);
};
于 2013-05-30T21:13:27.197 回答