[筆記] typescript - object is possibly 'null'
```typescript
// Use `as` syntax
const el = document.querySelector("#selector") as Element;
observer.observe(el);
```
https://stackoverflow.com/a/56628594
2021-01-22 01:25:57
留言
Last fetch: --:--
現在還沒有留言!