最近公司须要,须要实现先后端隔离项目的研发。在搭建前端框架项目时,发现Weex能够实现一端开发,多端运行的特性,因此搭建研究下,算是作个技术预研。 (注:如下工具及使用的命令,均为MAC环境安装) 1、安装基本的开发环境支持工具html
brew install node
node -v 4.0.5
npm install -g cnpm --registry=https://registry.npm.taobao.org cnpm install -g weex-toolkit
weex init your-project
npm install --安装依赖 npm run dev --watch npm run serve
weex debug your_weex.vue
会自动调用浏览器打开_http://192.168.1.10:8088/_这个网址,显示以下截图 前端