浏览器中引入vue 和 ant-design
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Title</title><link type="text/css" rel="stylesheet" href="./css/antd.min.css"/...
·
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link type="text/css" rel="stylesheet" href="./css/antd.min.css"/>
<!-- vue 版本需要注意,不是每一个版本都起作用的 -->
<script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script>
<script src="./js/antd.min.js"></script>
<!-- 引入 moment.min.js -->
<script src="http://momentjs.cn/downloads/moment.min.js"></script>
</head>
<body>
<div id="app">
<div>
<a-button type="primary">Primary</a-button>
<a-button>Default</a-button>
<a-button type="dashed">Dashed</a-button>
<a-button type="danger">Danger</a-button>
<a-button type="link">Link</a-button>
</div>
</div>
<script type="application/javascript">
new Vue({
el: '#app',
data: {
message: 'Hello Vue.js'
}
});
</script>
</body>
</html>
更多推荐
已为社区贡献2条内容
所有评论(0)