The asyncData
hook. This hook can only be placed on page components. →這就造成header的觸發寫在各個page component裡面,而不寫在header component裡
Middleware lets you define custom functions that can be run before rendering either a page or a group of pages (layout).
https://nuxtjs.org/docs/2.x/directory-structure/middleware
無關小知識:位元運算
1. a>>n 表示a除以2的n次方
2. a>>n 表示a乘以2的n次方
3. 3.122132 | 0 結果是3,這個的邏輯沒有懂 https://hackmd.io/@Yu040419/rkE0bTsaE
沒有留言:
張貼留言