wechat - What's the difference between onload () and Onshow () in small program development?
问题描述
- If you want to refresh every time you enter this page, should you choose
Onshow ()
?
解决方案
文档描述: OnLoad 正在运行,您的页面首先加载。OnShow 正在运行您加载的页面脚本,其中包括您的页面首次加载、从其他页面返回页面、返回表单调用或从其他应用程序和小程序返回
推荐阅读
- flutter - 如何仅在一页上阻止屏幕截图?
- django - 是否可以为包含不同模型的两个 Django 项目使用相同的数据库?
- ios - 如何快速创建匿名列表,如 Kotlin
- r - ggplot2中的线条颜色
- r - 在 r 中使用 if else 语句
- php - CakePHP 3.9.4:在组件中使用模型的方法
- android - 如何在 android 中为 AccountPicker 添加自定义对话框?
- azure-devops - 新的管道体验 (YAML) 缺少跟踪和统计功能
- ios - 目标 c - 使用 device_id 预授权请求正文
- sql - 使用 Python 访问 SQL 表时语法不正确