1.传参(路劲后带参数)
apple=5 //定义参数为5
"路径?自定义参数名=”+传的值
url:“pages/index/index?appleNumber=" + this.apple
2.接受参数(加载前接受参数,具体看需要)
getApple=0
onload(options:any){
this.getApple=options.appleNumber
}
console.log(this.getApple) //5
多个参数(
'/pages/index/index?参数名=' + 参数 + '&参数名=' +参数