A頁面:
layer.open({
type : 2,
title : 'title',
area : [ '1100px', '700px' ],
fixed : false, //不固定
maxmin : true,
content : '頁面地址'
})
彈出的B頁面layer.open({
type : 2,
title : '',
area : [ '800px', '600px' ],
layerMore: true,
fixed : false, //不固定
maxmin : true,
content : ''
})
彈出頁面頁面獲取父頁面的值
父頁面
var a=1;
子頁面
alert("子頁面取父頁面的值"+parent.a);
子頁面調用父層的函數:
子頁面:
parent.A()
父頁面
function A(){
console.log("hello,world");
}