layui彈出層layer.open 中的content問題


 

 

如果content取的的事當前頁面元素內容時,type類型應該為1
layer.open({
type: 1,
title: '內容區域',
 content: $('#DIV_EditUserInfo'),    // 設置跳轉的div,跳轉到對應的頁面
area: ["920px", "250px"],
});

如果content取的的路徑,或者某個頁面,type類型應該為2
layer.open({
type: 2,
title: "內容區域",
content: 'UserInfoEdit.html?actionType=new',    // 設置跳轉的url,跳轉到對應的頁面
area: ["1500px", "100%"],
});

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM