1.使用vant
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>html导入vant</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0" >
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- 引入样式 -->
<link rel="stylesheet" href="vant_source/index.css" />
</head>
<body>
<div id="app">
<van-button type="danger">成功按钮</van-button>
</div>
</body>
<!-- 引入组件库 -->
<script src="vant_source/vue@3.js"></script>
<script src="vant_source/vant.min.js"></script>
<script>
// 在 #app 标签下渲染一个按钮组件
const app = Vue.createApp({
});
app.use(vant);
app.use(vant.Lazyload);
vant.showToast('提示');
app.mount('#app');
</script>
</html>
2.使用element
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>html导入element</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0" >
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- 引入样式 -->
<link rel="stylesheet" href="ele_source/index.css" />
</head>
<body>
<div id="app">
<el-button type="primary">主要按钮</el-button>
</div>
</body>
<!-- 引入组件库 -->
<script src="ele_source/vue.js"></script>
<script src="ele_source/index.js"></script>
<script>
new Vue({
el: '#app',
data: function() {
return { visible: false }
}
})
function step1(){
console.log('点击主计划管理')
window.location.href = "./CBD.aspx"
}
</script>
</html>