WeUI 的轻量级 js 封装。
注意:由于微信小程序不支持dom操作,所以weui.js并不适用于小程序。不过WeUI也为小程序开发了另外的版本,详情请看:https://github.com/Tencent/weui-wxss/
https://weui.io/weui.js/
安装
git clone https://github.com/Tencent/weui.js.git
cd weui.js
npm install
npm start
编译
npm run build
<link rel="stylesheet" href="https://res.wx.qq.com/t/wx_fed/weui-source/res/2.5.16/weui.min.css">
<script type="text/javascript" src="https://res.wx.qq.com/t/wx_fed/weui.js/res/1.2.21/weui.min.js"></script>
<script type="text/javascript">
weui.alert('alert');
</script>
import 'weui';
import weui from 'weui.js';
weui.alert('alert');
如果你有好的意见或建议,欢迎给我们提issue或pull request。
The MIT License(http://opensource.org/licenses/MIT)
请自由地享受和参与开源