当前位置:网站首页>EasyUI framework dialog repeated loading problem
EasyUI framework dialog repeated loading problem
2022-07-24 18:23:00 【tongle_ deng】
In use recently easyui Found in the page when building the framework dialog It will be loaded many times as the page is refreshed , As a result, an error occurs when taking values .
The reason should be easyui hold dialog On the body Next , Only reload when refreshing panel All the elements below , It will lead to the problem of multiple loading .
The page uses layout Layout , The switching page code is as follows :
$("body").layout("panel","center").panel({
title:" The position of :"+title,
href:href
});In this way, every time you switch pages body The next page will be left behind dialog.
Solution :
On each page dialog Add a style to ( Name at will )pop, Pictured :

Add and delete before switching page code dialog Code for :
// Clear when switching pages dialog cache , All... On the page dialog All of them have to be defined pop style
$(".pop").each(function(){
$(this).dialog("destroy", false);
});You can clear the cache of the previous page ( Parameters must be written false,true Yes, I skipped it onBeforeDestroy Callback function ).
Extract from :http://wangzemin.iteye.com/blog/2390937
边栏推荐
- Sword finger offer 21. adjust the array order so that odd numbers precede even numbers
- Get the original data API on 1688app
- 数组对象方法 常用遍历方法&高阶函数
- ["code" power is fully open, and "chapter" shows strength] list of contributors to the task challenge in the first quarter of 2022
- Escape character in JS?
- Single cell code analysis - gynecological cancer single cell transcriptome and chromatin accessibility analysis 1
- Maximum sum and promotion of continuous subarrays (2)
- 6126. Design food scoring system
- Baidu touch.js
- 3. Variable declaration promotion?
猜你喜欢

redis集群的三种方式

Mid year inventory | in 2022, PAAS will be upgraded again

Handwritten blog platform ~ the next day

Typora is still the most beautiful and beautiful document editing artifact of yyds in my heart. I believe you will never abandon it

JumpServer的使用

PXE efficient batch network installation

Maximum sum and promotion of continuous subarrays (2)

开窗函数(1)-部门工资前三员工

【OpenCV】—阈值化

【obs】依赖库: x264 vs 构建
随机推荐
Windowing function (1) - top three employees of department salary
Emerging potential of interactive virtual reality technology in drug discovery
1. Typeof view variable type?
redis集群的三种方式
猜JWT关键字
Use of jumpserver
剑指 Offer 21. 调整数组顺序使奇数位于偶数前面
怎么解决idea中yaml无法识别或者飘红?
数组对象方法 常用遍历方法&高阶函数
CF. Bits And Pieces(子集状压dp + 剪枝)
Typora is still the most beautiful and beautiful document editing artifact of yyds in my heart. I believe you will never abandon it
[opencv] - thresholding
Model saving and loading of sklearn
Bib | mol2context vec: context aware deep network model learning molecular representation for drug discovery
Revocable search board
2. JS variable type conversion, automatic conversion, manual conversion, what is the difference between parseint(), parsefloat(), number()?
Maximum sum and promotion of continuous subarrays (2)
5. Reference type and value type as function parameters?
Has polardb for PostgreSQL entered the list of Xinchuang database?
Admin component