layero.find
时间: 2023-11-16 16:05:44 浏览: 171
引用\[1\]:运用中如果要改变插件的CSS,可以再success的回调函数里去写: success: function(layero){//注意layero参数的运用 layero.find('.layui-layer-ico').css('top','56px'); } 。
引用\[2\]:$('#addQuota').on('click',function(){ layer.open({ type : 2, title : "子页面", resize : true, shadeClose : false, shade : 0, maxmin : false, area : \['590px','380px'\], content : url, btn: '确定', yes:function(index,layero){ var obj = $(layero).find("iframe")\[0\].contentWindow; //obj可以调用子页面的任何方法 } }); });
引用\[3\]:关键代码: <li> <span>选择受理机构:</span> <input name="sysDeptId" type="text" id="treeId" style="display:none;" th:value="${dept!=null ?dept.deptId:''}"/> <input type="text" required onclick="selectDeptTree('#treeId','#treeName')" id="treeName" autocomplete="off" th:value="${dept!=null?dept.deptName:''}"> </li> var sysDeptId ,deptName; /* 用户管理-修改-选择部门树 */ function selectDeptTree() { var deptId = $.common.isEmpty($("#treeId").val()) ? "100" : $("#treeId").val(); var url = ctx + "system/dept/selectDeptTree/" + deptId; var options = { title: '选择部门', width: "380", url: url, callBack: doSubmit }; $.modal.openOptions(options); } function doSubmit(index, layero){ var tree = layero.find("iframe")\[0\].contentWindow.$._tree; var body = layer.getChildFrame('body', index); $("#treeId").val(body.find('#treeId').val()); $("#treeName").val(body.find('#treeName').val()); layer.close(index); } 多级联查搜索框的实现: 。
问题:layero.find是什么意思?
回答: 在引用\[1\]中,layero.find是一个jQuery方法,用于在layero对象中查找匹配的元素。在这个例子中,layero.find('.layui-layer-ico')是用来找到class为layui-layer-ico的元素,并对其进行CSS样式的修改。
#### 引用[.reference_title]
- *1* [layer-弹框使用入门](https://blog.csdn.net/qq_21859119/article/details/78427654)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [layer弹出层,回调](https://blog.csdn.net/w3812127/article/details/115168761)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [day 02](https://blog.csdn.net/XIAOLIN190/article/details/111578936)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文