docs: update CDN link

This commit is contained in:
chenjiahan 2022-02-07 17:59:12 +08:00 committed by neverland
parent a5d111d073
commit d6cd92910c
2 changed files with 6 additions and 6 deletions

View File

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

View File

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