// ./app.config.js'pages/musicDetail/index'注意最后面是index
// 创建pages中的文件夹taro create --name xxx
跳转页面
// 跳转到目的页面,打开新页面Taro.navigateTo({url: '/pages/path/name'})// 跳转到目的页面,在当前页面打开Taro.redirectTo({url: '/pages/path/name'})
获取参数
#page2 接传参import { getCurrentInstance } from "@tarojs/taro";export default {data() {return {msg: "Hello world!",};},created() {console.log(getCurrentInstance().router.params.id);},};
