1 Star 0 Fork 0

TANG Studio / 宝鸡头条

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
TANG Studio 提交于 2020-04-15 21:59 . 20200415

taro 版本

  • 微信小程序版本使用组件WxParse渲染富文本
  • 微信小程序版本使用@tarojs/async-await依赖
  • H5版本使用<View className="index" dangerouslySetInnerHTML={{ __html: html }}></View>渲染富文本

网页版

taro >> uni-app >>

CLI 工具安装

# 使用 npm 安装 CLI
$ npm install -g @tarojs/cli
# OR 使用 yarn 安装 CLI
$ yarn global add @tarojs/cli
# OR 安装了 cnpm,使用 cnpm 安装 CLI
$ cnpm install -g @tarojs/cli

安装依赖

# 使用 yarn 安装依赖
$ yarn
# OR 使用 cnpm 安装依赖
$ cnpm install
# OR 使用 npm 安装依赖
$ npm install

运行微信小程序

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

运行H5

# yarn
$ yarn dev:h5
$ yarn build:h5
# npm script
$ npm run dev:h5
$ npm run build:h5
# 仅限全局安装
$ taro build --type h5 --watch
$ taro build --type h5
# npx 用户也可以使用
$ npx taro build --type h5 --watch
$ npx taro build --type h5
1
https://gitee.com/tysb7/baojiNews.git
git@gitee.com:tysb7/baojiNews.git
tysb7
baojiNews
宝鸡头条
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891