weui的使用

weui的demo地址: https://weui.iojavascript

 

github地址:https://github.com/Tencent/weui.js
css

 

開發

安裝html

git clone https://github.com/Tencent/weui.js.git
cd weui.js npm install npm start

編譯java

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
相關文章
相關標籤/搜索