Layer 关闭弹窗

Stella981
• 阅读 284

var index = parent.layer.getFrameIndex(window.name); //获取窗口索引

parent.layer.close(index);

layer.open({

                            type : 2,

                            skin : 'layui-layer-rim', //加上边框

                            maxmin : true,

                            title : '修改评论',

                            shadeClose : true, //点击遮罩关闭层

                            area : [ '420px', '240px' ], //宽高

                            content : '${ctx}/admin/goods/editCommentUI/'+id,

                            end:function(){

                                $("#table_list_2").trigger("reloadGrid");

                            }

                        });

点赞
收藏
评论区
推荐文章
blmius blmius
2年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
Jacquelyn38 Jacquelyn38
2年前
2020年前端实用代码段,为你的工作保驾护航
有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )
Easter79 Easter79
2年前
vue input复选框checkbox默认样式纯css修改
<divclass"data_list"vfor"(item,index)indata_list":key"index"<inputtype"checkbox"class"check_boxtuicheckbox":id"'id'item.id":value"item.id"vmodel
Stella981 Stella981
2年前
Elasticsearch——DevTools
RESTful接口URL的格式是:http://cluster的地址:9200/其中,index,type是必须提供的(index可以理解为数据库;type理解为数据表);id是可选的(相当于数据库表中记录的主键是唯一的。如果不提供,Elasticsearch会向动生成。增、删、改,查分别对应HTTP请求的PUT、
Stella981 Stella981
2年前
Elasticsearch Index Templates(索引模板)
索引模板,故名思议,就是创建索引的模板,模板中包含公共的配置(settings)和映射(Mapping),并包含一个简单触发条件,及条件满足时使用该模板创建一个新的索引。注意:模板只在创建索引时应用。更改模板不会对现有索引产生影响。当使用createindexAPI时,作为createindex调用的一部分定义的设置/映射将优先于模板中定义的任
Stella981 Stella981
2年前
Electron 渲染进程与渲染进程之间的实时通信 (实时触发及接收消息)
1、首先在渲染进程A里面获取到所有的窗口id信息,然后给所有的窗口发送事件remote.webContents.getAllWebContents().forEach((item,index){2、在所需要接收内容的渲染进程里面,通过ipcRenderer.on兼容,即可实时收到消息ipcRe
Wesley13 Wesley13
2年前
mysql逗号分隔字符串成多行数据
SELECT  其他字段,  SUBSTRING\_INDEX(SUBSTRING\_INDEX(a.'逗号分隔字段',',',b.help\_topic\_id1),',',1)AS'分拆后字段' FROM  \表\ASa  JOINmysql.help\_topicAS
Stella981 Stella981
2年前
ES6 for in与for of 的使用方法及其区别
  // for in遍历的是数组的索引(即键名),而for of遍历的是数组元素值。 let arr  \1,2,3,4,5,6,7\    for(let index of arr){     //   console.log(index)//1 2 3 4 5 6 7    }    for(let index in
Stella981 Stella981
2年前
Elasticsearch 映射操作
一、创建语法:PUT/索引库名称/_mapping/类型名称{"properties":{"字段名":{"type":类型,可以是text、keyword、long、short、date、integer、object等   "index":是否索引,默认为true 
Stella981 Stella981
2年前
Elasticsearch学习总结二 elasticSearch一些基本用法
一.elasticSearch提供了一些基本的rest命令,基本如下:/index/_search搜索指定索引下的数据,http://ip:9200/index/_search查询当前索引下的数据/index/查看指定索引的详细信