(router)
| 13 | return app; |
| 14 | |
| 15 | function router(router) { |
| 16 | invariant( |
| 17 | isFunction(router), |
| 18 | `[app.router] router should be function, but got ${typeof router}`, |
| 19 | ); |
| 20 | app._router = router; |
| 21 | } |
| 22 | |
| 23 | function start(container) { |
| 24 | // 允许 container 是字符串,然后用 querySelector 找元素 |
nothing calls this directly
no test coverage detected