当前位置:网站首页>Apicloud openframe realizes the transfer and return of parameters to the previous page - basic improvement
Apicloud openframe realizes the transfer and return of parameters to the previous page - basic improvement
2022-07-06 01:46:00 【yehaocheng520】
In writing today apicloud When , Meet a need , It's about putting A The parameters of the page are passed to B page ,B After a series of operations on the page , Then pass the data to A page .
The implementation of this function will be introduced in detail below :
1. take A The delivery of the page to B page
api.openFrame({
name: 'relationPartNoReview',
url: './relationPartNoReview.html',
rect: {
x:0,
y:0,
w:'auto',
h:'auto'
},
reload:true,
animation:{
type:"none",
duration:1
},
pageParam: {
partNo: this.partNo
}
});
In the above code pageParam Object partNo Is to pass on to B Parameters of the page .
2.B Page to receive A Parameters passed by the page
apiready = function () {
var pageParam = api.pageParam;
var vm = new Vue({
el:'#xxx',
data(){
return{
partNo:pageParam.partNo
}
}
})
}
3.B Page passes parameters to A page
You can use sendEvent and addEventListener To deal with it .
B How to write the page :
api.sendEvent({
name:'refreshCheck',
extra:{
id:this.xxx.id
}
})
A How to write the page :
api.addEventListener({
name:'refreshCheck',
},function(ret,err){
if(ret.value&&ret.value.id){
// Received B Processing operations after the data transferred from the page
}
})
complete !!!
边栏推荐
- Cookie concept, basic use, principle, details and Chinese transmission
- 同一个 SqlSession 中执行两条一模一样的SQL语句查询得到的 total 数量不一样
- Redis string type
- Redis如何实现多可用区?
- 【Flask】官方教程(Tutorial)-part1:项目布局、应用程序设置、定义和访问数据库
- Publish your own toolkit notes using NPM
- Paddle框架:PaddleNLP概述【飞桨自然语言处理开发库】
- 正则表达式:示例(1)
- 国家级非遗传承人高清旺《四大美人》皮影数字藏品惊艳亮相!
- Selenium waiting mode
猜你喜欢
![抓包整理外篇——————状态栏[ 四]](/img/1e/2d44f36339ac796618cd571aca5556.png)
抓包整理外篇——————状态栏[ 四]

C web page open WinForm exe
![[technology development -28]: overview of information and communication network, new technology forms, high-quality development of information and communication industry](/img/94/05b2ff62a8a11340cc94c69645db73.png)
[technology development -28]: overview of information and communication network, new technology forms, high-quality development of information and communication industry

Publish your own toolkit notes using NPM

Computer graduation design PHP enterprise staff training management system

selenium 等待方式

同一个 SqlSession 中执行两条一模一样的SQL语句查询得到的 total 数量不一样

02. Go language development environment configuration

【Flask】官方教程(Tutorial)-part2:蓝图-视图、模板、静态文件

Alibaba-Canal使用详解(排坑版)_MySQL与ES数据同步
随机推荐
使用npm发布自己开发的工具包笔记
Crawler request module
Flowable source code comments (36) process instance migration status job processor, BPMN history cleanup job processor, external worker task completion job processor
dried food! Accelerating sparse neural network through hardware and software co design
A picture to understand! Why did the school teach you coding but still not
Ali test Open face test
【全網最全】 |MySQL EXPLAIN 完全解讀
Redis-Key的操作
01. Go language introduction
500 lines of code to understand the principle of mecached cache client driver
Redis-字符串类型
Maya hollowed out modeling
Shutter doctor: Xcode installation is incomplete
【SSRF-01】服务器端请求伪造漏洞原理及利用实例
Poj2315 football games
Flutter Doctor:Xcode 安装不完整
安装Redis
【Flask】响应、session与Message Flashing
Basic process and testing idea of interface automation
02.Go语言开发环境配置