Uni-app page jump (carrying parameters)

Use tags to wrap the jump object, concatenate strings, ${child.id} carries parameters for the jump

<navigator hover-class="none" :url="`../detail/detail?id=${child.id}`">
	<image :src="imgUrl+child.mainimage" mode=""></image>
	<text>{
    
    {
    
    child.smalltitle}}</text>
</navigator>

Value to add a parameter to the onLoad life cycle of uni-app, which is the parameter carried

onLoad(option) {
    
    
	console.log(option.id);
}

Guess you like

Origin blog.csdn.net/weixin_44640323/article/details/112465640