File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ export default Blog
201
201
- Next.js 在后台触发页面的重新生成
202
202
- 一旦页面生成成功,Next.js 将使缓存失效并显示更新后的页面。如果后台重新生成失败,旧页面仍将保持不变
203
203
204
- ### 使用 useeffect 客户端数据获取
204
+ ### 使用 useEffect 客户端数据获取
205
205
206
206
``` jsx
207
207
import { useState , useEffect } from ' react'
@@ -399,7 +399,7 @@ const path = require('path')
399
399
400
400
module .exports = {
401
401
sassOptions: {
402
- includePaths:
402
+ includePaths:
403
403
[path .join (__dirname , ' styles' )],
404
404
},
405
405
}
@@ -1336,7 +1336,7 @@ NEXT_PUBLIC_ANALYTICS_ID=abcdefghijk
1336
1336
// pages/index.js
1337
1337
import setupAnalyticsService from ' ../lib/my-analytics-service'
1338
1338
1339
- //
1339
+ //
1340
1340
// 它将在构建时转换为 `setupAnalyticsService('abcdefghijk')`
1341
1341
setupAnalyticsService (process .env .NEXT_PUBLIC_ANALYTICS_ID )
1342
1342
@@ -1528,11 +1528,11 @@ export default function Home() {
1528
1528
1529
1529
```js
1530
1530
// GET `/post` (empty object)
1531
- { }
1531
+ { }
1532
1532
// `GET /post/a` (single-element array)
1533
- { "slug": ["a"] }
1533
+ { "slug": ["a"] }
1534
1534
// `GET /post/a/b` (multi-element array)
1535
- { "slug": ["a", "b"] }
1535
+ { "slug": ["a", "b"] }
1536
1536
```
1537
1537
1538
1538
### 事件执行调整页面
You can’t perform that action at this time.
0 commit comments