Development Tips
console.log.applyThe following context must beconsole, and cannot bewindowor others, otherwise the following error will be thrown:Uncaught TypeError: Illegal invocation at log (<anonymous>:2:30) at <anonymous>:2:1 at Object.InjectedScript._evaluateOn (<anonymous>:905:140) at Object.InjectedScript._evaluateAndWrap (<anonymous>:838:34) at Object.InjectedScript.evaluate (<anonymous>:694:21)- Use
console.timeto measure the execution time of functions.console.time('func'); setTimeout(function () { console.time('func'); // 会打印出 100ms }, 100); - In the Chrome console, if you want to copy an object, you can use the function provided by Chrome
copyto copy it:

