docs: update cdn link version

This commit is contained in:
chenjiahan 2020-05-06 09:48:16 +08:00
parent b1dcf36263
commit e7a976ab8c
2 changed files with 4 additions and 4 deletions

View File

@ -99,12 +99,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.6/lib/index.css"
href="https://cdn.jsdelivr.net/npm/vant@2.8/lib/index.css"
/>
<!-- import script -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vant@2.6/lib/vant.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vant@2.8/lib/vant.min.js"></script>
<script>
// Render the Button component

View File

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