weui的demo地址: https://weui.io
github地址:https://github.com/Tencent/weui.js
开发
安装
git clone https://github.com/Tencent/weui.js.git
cd weui.js
npm install
npm start
编译
npm run build
使用
global
<link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/2.0.1/weui.min.css">
<script type="text/javascript" src="https://res.wx.qq.com/open/libs/weuijs/1.2.1/weui.min.js"></script>
<script type="text/javascript">
weui.alert('alert');
</script>
import as module
import 'weui';
import weui from 'weui.js';
weui.alert('alert');具体文档建地址详情: https://github.com/Tencent/weui.js/blob/master/docs/README.md