ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[weex文档](https://alibaba.github.io/weex-ui/#/cn/with-weex-toolkit) 1. **安装** ``` npm install -g weex-toolkit@latest ``` ![](https://box.kancloud.cn/03908a405603760ce99a3fd553670a27_1062x598.png) **** 2. **npm start启动该项目** 弹出页面如下 ![](https://box.kancloud.cn/aa30a44ee14f6c46ffbb4092b7787f00_1920x881.png) **** 3. **[手机调试](https://weex.apache.org/cn/tools/playground.html)** 在手机中安装该链接中的App,使用该App扫描第二步弹出页面中的二维码,即可查看页面 **** **** 4. **[在项目中使用 Weex Ui](https://alibaba.github.io/weex-ui/#/cn/with-weex-toolkit?id=%e5%9c%a8%e9%a1%b9%e7%9b%ae%e4%b8%ad%e4%bd%bf%e7%94%a8-weex-ui)** ``` npm i weex-ui@latest -S ``` 安装babel-preset-stage-0 和 babel-plugin-component 插件,前者用于babel编译,后者用于优化 weex-ui 包的组件引用 ``` npm i babel-plugin-component babel-preset-stage-0 -D ``` 同时修改.babelrc如下 ``` { "presets": ["es2015", "stage-0"], "plugins": [ [ "component", { "libraryName": "weex-ui", "libDir": "packages", "style": false } ] ] } ``` ****