[Doc] fix CDN link version (#2168)

This commit is contained in:
neverland 2018-11-28 07:23:17 +08:00 committed by GitHub
parent 3b56f006e2
commit 5780532a25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 12 deletions

View File

@ -53,11 +53,11 @@ yarn add vant
```html ```html
<!-- import style --> <!-- import style -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant/lib/index.css" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@1.4/lib/index.css" />
<!-- import script --> <!-- import script -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vant/lib/vant.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/vant@1.4/lib/vant.min.js"></script>
``` ```
## Quickstart ## Quickstart

View File

@ -50,15 +50,13 @@ yarn add vant
#### CDN #### CDN
访问下面的文件 URL会自动重定向至最新版本的 CDN 链接,建议使用固定版本的 CDN 链接,避免升级时受到非兼容性更新的影响。
```html ```html
<!-- 引入样式 --> <!-- 引入样式 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant/lib/index.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@1.4/lib/index.css">
<!-- 引入组件 --> <!-- 引入组件 -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vant/lib/vant.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/vant@1.4/lib/vant.min.js"></script>
``` ```
## 快速上手 ## 快速上手

View File

@ -41,11 +41,11 @@ yarn add vant
```html ```html
<!-- import style --> <!-- import style -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant/lib/index.css" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@1.4/lib/index.css" />
<!-- import script --> <!-- import script -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vant/lib/vant.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/vant@1.4/lib/vant.min.js"></script>
``` ```
### Usage ### Usage

View File

@ -47,15 +47,13 @@ yarn add vant
#### CDN #### CDN
访问下面的文件 URL会自动重定向至最新版本的 CDN 链接,建议使用固定版本的 CDN 链接,避免升级时受到非兼容性更新的影响。
```html ```html
<!-- 引入样式 --> <!-- 引入样式 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant/lib/index.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@1.4/lib/index.css">
<!-- 引入组件 --> <!-- 引入组件 -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vant/lib/vant.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/vant@1.4/lib/vant.min.js"></script>
``` ```
### 引入组件 ### 引入组件