S先生の筆記📒


JavaScript怪癖

1. JavaScript里的空指针异常其实是一种TypeError

null.toString();

回显

"TypeError: Cannot read property 'toString' of null"