vant框架主页:https://youzan.github.io/vant/#/zh-CN/intro

 

cdn方式引用的简易例子:

<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>test</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@2.0/lib/index.css">
</head>
<body>
  <div id="app">
    <van-cell-group>
       <van-cell title="单元格" value="内容"></van-cell>
        <van-cell title="单元格" value="内容" label="描述信息" ></van-cell>
    </van-cell-group>
  <van-button type="primary">主要按钮</van-button>
  </div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vant@2.0/lib/vant.min.js"></script>
<script>
    new Vue({
      el: '#app'
    });
</script>
</body>
</html>

 

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐