Skip to content

Commit ea7d384

Browse files
committed
add cdn intro to readme
1 parent 9618aca commit ea7d384

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ By applying TensorSpace API, it is more intuitive to visualize and understand an
6363

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

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

6868
Option 1: NPM
6969
```bash
@@ -75,7 +75,13 @@ Option 2: Yarn
7575
yarn add tensorspace
7676
```
7777

78-
Option 3: [Website download page](https://tensorspace.org/index.html#download)
78+
Option 3: CDN
79+
80+
```html
81+
<script src="https://cdn.jsdelivr.net/npm/tensorspace@0.3.0/build/tensorspace.min.js"></script>
82+
```
83+
84+
Option 4: [Website download page](https://tensorspace.org/index.html#download)
7985

8086
* **Step 2: Install Dependency**
8187

README_zh.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ TensorSpace 降低了前端开发者进行深度学习相关应用开发的门
6969

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

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

7474
途径 1: NPM
7575
```bash
@@ -80,8 +80,12 @@ npm install tensorspace
8080
```bash
8181
yarn add tensorspace
8282
```
83+
途径 3:CDN
84+
```html
85+
<script src="https://cdn.jsdelivr.net/npm/tensorspace@0.3.0/build/tensorspace.min.js"></script>
86+
```
8387

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

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

0 commit comments

Comments
 (0)