如果content取的的事當前頁面元素內容時,type類型應該為1 layer.open({ type: 1, title: '數據選擇器', content: $('#select_pe_content').html(), area: ["920px", "250px ...
如果content取的的事當前頁面元素內容時,type類型應該為 layer.open type: , title: 內容區域 ,content: DIV EditUserInfo , 設置跳轉的div,跳轉到對應的頁面 area: px , px , 如果content取的的路徑,或者某個頁面,type類型應該為 layer.open type: , title: 內容區域 ,content: ...
2020-07-27 17:09 2 6592 推薦指數:
如果content取的的事當前頁面元素內容時,type類型應該為1 layer.open({ type: 1, title: '數據選擇器', content: $('#select_pe_content').html(), area: ["920px", "250px ...
解決方法:content使用的dom元素樣式自己設置為隱藏 style="display: none;" 1 定義彈出層content使用的dom元素 彈出層使用的dom元素id為“sku_search-div”,這里的關鍵點是樣式設置為隱藏 style="display ...
1、定義一個靜態頁,里面存放需要的HTML,如FlightBookChildInsur.html 在這個頁面定義執行函數,用來返回數據; function callbackdata() { ...
https://blog.csdn.net/yzw675628706/article/details/115347180 其他沒有試,這個是對我目前的使用有效 layui.layer.open({ type: 2, title:'百度頁面', area ...
一句話, 把 content參數的 html() 去掉就好, 即 content: $('.add_html') ! 如果用 val() 還獲取不到值,嘗試用 $('input[name=user_name]').attr("value") 或者 $('input[name ...