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:
热门文章
-
Nine Years of Bookkeeping: Changes in Tools, Methods, and Mindset
-
Fast and Slow
-
Using PVE to Run a Clash Bypass Router Virtual Machine for Transparent Proxying
-
Page Load Performance Optimization Solutions
-
Prismira: Two and a Half Years of Iteration and Growth
-
Hand-sized Mini PC Yunxuan H170 Usage Experience and Homelab Setup

