vue 关于url参数拼接
uni-app 关于url参数拼接,对象形式传参、单个参数传参let data = {id: item.id,trainId: this.id,type: 'news',ptitle: item.ptitle};console.log(data)uni.navigateTo({url:`../details/knowDetail?data=${JSON.stringify(data)}`});多个
·
uni-app 关于url参数拼接,对象形式传参、单个参数传参
let data = {
id: item.id,
trainId: this.id,
type: 'news',
ptitle: item.ptitle
};
console.log(data)
uni.navigateTo({
url:`../details/knowDetail?data=${JSON.stringify(data)}`
});
多个参数:
let data = {
id: this.detailData.id
}
// console.log(data)
uni.navigateTo({
url: '../knowledgeNorm/knowledgeNorm?id=' + id +'&taskId='+this.taskId,
// url: '../../../packageC/pages/index/trainIndex?peixunid='+this.result.id+'&taskId='+this.taskId+'&flow='+this.flow
})
更多推荐
已为社区贡献1条内容
所有评论(0)