taro 进阶指南
taro 进阶指南
配置
https://nervjs.github.io/taro/docs/config.html
https://nervjs.github.io/taro/docs/config-detail.html
https://nervjs.github.io/taro/docs/project-config.html

alias

defineConstants
全局变量
https://webpack.js.org/plugins/define-plugin/
defineConstants: {
A: JSON.stringify('a') // '"a"'
}

路由
https://nervjs.github.io/taro/docs/router.html

API
https://nervjs.github.io/taro/docs/apis/interface/navigation/navigateTo.html
https://developers.weixin.qq.com/miniprogram/dev/api/wx.navigateTo.html
import Taro from '@tarojs/taro'
Taro.navigateTo(params).then(...)
混合开发
https://nervjs.github.io/taro/docs/mini-third-party.html
https://nervjs.github.io/taro/docs/hybrid.html
redux & css-modules
https://nervjs.github.io/taro/docs/redux.html
https://nervjs.github.io/taro/docs/css-modules.html
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/12621411.html
未经授权禁止转载,违者必究!

浙公网安备 33010602011771号