Taro —— 开发微信小程序总结

Taro官网:https://nervjs.github.io/taro/GETTING-STARTED.html#

利用Taro框架编写的一套可多端运行的代码(影力星球):https://github.com/wushuxuan/taro_movies

安装及使用

1、安装:

npm install -g @tarojs/cli

2、创建项目:

taro init movies

这里写图片描述

3、编译预览:

  • 小程序
# npm script
$ npm run dev:weapp
# 仅限全局安装
$ taro build --type weapp --watch
# npx用户也可以使用
$ npx taro build --type weapp --watch
  • h5
# npm script
$ npm run dev:h5
# 仅限全局安装
$ taro build --type h5 --watch
# npx用户也可以使用
$ npx taro build --type h5 --watch

猜你喜欢

转载自blog.csdn.net/wu_shuxuan/article/details/80852241