feat: update hello world
This commit is contained in:
1 parent
e3be714551
commit
ad6d126ee0
9 files changed
+24
-3
No files matched your search
@@ -1,10 +1,10 @@
|
|||||||
---
|
---
|
||||||
sidebar_position: 1
|
sidebar_position: 2
|
||||||
---
|
---
|
||||||
|
|
||||||
# 第一个页面(hello world)
|
# 第一个页面(hello world)
|
||||||
|
|
||||||
```html title="examples/hello-world/index.html"
|
```html title="hello-world/index.html"
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
@@ -19,6 +19,8 @@ sidebar_position: 1
|
|||||||
</html>
|
</html>
|
||||||
```
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
将文件在浏览器中打开,你将会看到 `hello world` 字样
|
将文件在浏览器中打开,你将会看到 `hello world` 字样
|
||||||
|
|
||||||

|

|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 51 KiB |
@@ -4,8 +4,14 @@ sidebar_position: 2
|
|||||||
|
|
||||||
# 简单的服务
|
# 简单的服务
|
||||||
|
|
||||||
在 `examples/hello-world/index.html` 文件夹下输入
|
打开控制台
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
输入命令
|
||||||
|
|
||||||
```
|
```
|
||||||
npx http-server
|
npx http-server
|
||||||
```
|
```
|
||||||
|
|
||||||
|

|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
sidebar_position: 1
|
||||||
|
---
|
||||||
|
|
||||||
|
# 使用 VSCode
|
||||||
|
|
||||||
|
新建文件夹命名为 hello-world
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
Reference in new issue
Block a user