search
HomeWeChat AppletMini Program DevelopmentHow to implement page jump function by clicking on text in WeChat Xiaocheng

This article mainly introduces the WeChat applet to implement the click text page jump function, involving the simple use skills of the navigator navigation component. I hope it can help everyone.

1. Effect display

##2. Key code

index.js file


Page({
 data:{
  // text:"这是一个页面"
 },
 onLoad:function(options){
  // 页面初始化 options为页面跳转所带来的参数
 },
 onReady:function(){
  // 页面渲染完成
 },
 onShow:function(){
  // 页面显示
 },
 onHide:function(){
  // 页面隐藏
 },
 onUnload:function(){
  // 页面关闭
 }
})


index.wxml file


<navigator url="../../pages/logs/logs">
 <view>点击我跳转到下一个页面</view>
</navigator>


navigator attribute description is as follows:

Related recommendations:

HTML Page jump and parameter passing issues

What are the common methods for Javascript page jumps

Detailed explanation of WeChat applet page jump and parameter passing

The above is the detailed content of How to implement page jump function by clicking on text in WeChat Xiaocheng. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool