(router)
| 34 | return app; |
| 35 | |
| 36 | function router(router) { |
| 37 | invariant( |
| 38 | isFunction(router), |
| 39 | `[app.router] router should be function, but got ${typeof router}`, |
| 40 | ); |
| 41 | app._router = router; |
| 42 | } |
| 43 | |
| 44 | function start(container) { |
| 45 | // 允许 container 是字符串,然后用 querySelector 找元素 |
nothing calls this directly
no test coverage detected