docs: update cdn link version (#7688)

This commit is contained in:
neverland
2020-12-04 13:53:51 +08:00
committed by GitHub
parent b84fe21baa
commit 52d882e9b2
2 changed files with 4 additions and 4 deletions

View File

@@ -20,12 +20,12 @@ The easiest way to use Vant is to include a CDN link in the html file, after whi
<!-- import style -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/vant@2.10/lib/index.css"
href="https://cdn.jsdelivr.net/npm/vant@2.11/lib/index.css"
/>
<!-- import script -->
<script src="https://cdn.jsdelivr.net/npm/vue@2.6/dist/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vant@2.10/lib/vant.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vant@2.11/lib/vant.min.js"></script>
<script>
// Render the Button component

View File

@@ -26,12 +26,12 @@ npm i vant@next -S
<!-- 引入样式文件 -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/vant@2.10/lib/index.css"
href="https://cdn.jsdelivr.net/npm/vant@2.11/lib/index.css"
/>
<!-- 引入 Vue 和 Vant 的 JS 文件 -->
<script src="https://cdn.jsdelivr.net/npm/vue@2.6/dist/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vant@2.10/lib/vant.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vant@2.11/lib/vant.min.js"></script>
<script>
// 在 #app 标签下渲染一个按钮组件