1. console.log.apply The following context must be console , and cannot be window or 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)
  2. Use console.time to measure the execution time of functions.
    console.time('func');
    setTimeout(function () {
        console.time('func'); // 会打印出 100ms
    }, 100);
  3. In the Chrome console, if you want to copy an object, you can use the function provided by Chrome copy to copy it: