Skip to content

Commit

Permalink
add cdn intro to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
syt123450 committed Dec 17, 2018
1 parent 9618aca commit ea7d384
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ By applying TensorSpace API, it is more intuitive to visualize and understand an

* **Step 1: Download TensorSpace.js**

There are three ways to download TensorSpace.js: npm, yarn, or official website
There are four ways to download TensorSpace.js: npm, yarn, CDN, or official website

Option 1: NPM
```bash
Expand All @@ -75,7 +75,13 @@ Option 2: Yarn
yarn add tensorspace
```

Option 3: [Website download page](https://tensorspace.org/index.html#download)
Option 3: CDN

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/tensorspace.min.js"></script>
```

Option 4: [Website download page](https://tensorspace.org/index.html#download)

* **Step 2: Install Dependency**

Expand Down
8 changes: 6 additions & 2 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ TensorSpace 降低了前端开发者进行深度学习相关应用开发的门

* **第一步: 下载 TensorSpace.js**

我们提供了三种下载 TensorSpace.js 的方法,它们分别是 npm、yarn 以及 来自官方网站。
我们提供了四种下载 TensorSpace.js 的方法,它们分别是 npm、yarn 以及 来自官方网站。

途径 1: NPM
```bash
Expand All @@ -80,8 +80,12 @@ npm install tensorspace
```bash
yarn add tensorspace
```
途径 3:CDN
```html
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/tensorspace.min.js"></script>
```

途径 3: [官方网站下载](https://tensorspace.org/index_zh.html#download)
途径 4: [官方网站下载](https://tensorspace.org/index_zh.html#download)

* **第二步: 安装依赖库**

Expand Down

0 comments on commit ea7d384

Please sign in to comment.