Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
caijf committed Oct 27, 2023
1 parent 9c54aac commit ff33a10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sidemenu: false

## 使用

### `es``node` 开发环境
### `es`

安装依赖

Expand Down Expand Up @@ -41,9 +41,9 @@ createPuzzle(imgUrl).then((res) => {

### 原生 js 开发环境

如果你的项目使用的是原生方式开发,可以在浏览器中使用 script 标签直接引入文件,并使用全局变量 createPuzzle 。
如果你的项目使用的是原生方式开发,可以在浏览器中使用 `script` 标签直接引入文件,并使用全局变量 `createPuzzle`

npm 包的 dist 目录下提供了 UMD 包 createPuzzle.js 以及 createPuzzle.min.js。你也可以通过 [UNPKG](https://unpkg.com/create-puzzle/dist/) 下载到本地进行使用。或者直接使用 [UNPKG 线上版本](https://unpkg.com/create-puzzle@latest/dist/createPuzzle.min.js)<sup>注意版本</sup>。
`npm` 包的 `dist` 目录下提供了 UMD 包 `createPuzzle.js` 以及 `createPuzzle.min.js`。你也可以通过 [UNPKG](https://unpkg.com/create-puzzle/dist/) 下载到本地进行使用。或者直接使用 [UNPKG 线上版本](https://unpkg.com/create-puzzle@latest/dist/createPuzzle.min.js)<sup>注意版本</sup>。

## 代码演示

Expand Down

0 comments on commit ff33a10

Please sign in to comment.