弹窗事件加载静态页面

 1 //查看共享信息
 2 function ShowShareInfo(sId) {
 3     if (sId) {
 4         layer.open({
 5             type: 2,
 6             title: "查看共享信息", 
 7             area: ['768px', '506px'],
 8             content: ['/StaticHtml/driverShare.html', 'yes'], //iframe的url,no代表不显示滚动条 
 9             success: function (layero, index) {
10                 var body = layer.getChildFrame('body', index);  //巧妙的地方在这里哦
11                 body.find("#SID").val(sId);
12                 body.find("#CD").click();
13             }
14         });
15     } else {
16         layer.msg("此司机没有共享信息");
17     }
18 }
原文地址:https://www.cnblogs.com/chizhida/p/7382508.html