绑定教程
$('#member_add').on('click', function(){ layer.open({ type: 2, title: '添加商品 ', maxmin: true, shadeClose: true, //点击遮罩关闭层 area : ['800px' , '300px'], content:["Products_Add.jsp",'no'],//内容 btn :['保存','取消'], success : function(layero,index){ //完成后的回调 }, yes:function(layero,index){ // 绑定页面元素 var body = layer.getChildFrame('body',index); //绑定页面按钮点击事件 body.find('#addDepartment').click(); }, btn2 : function(layero,index){ layer.close(index);//关闭弹出层 } }); });
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/221547.html原文链接:https://javaforall.net
