layer.open({
title: "测试",
type: 2,
area: ['600px', '360px'],
shadeClose: true,
content: 'test.html',
btn:['确认'],
yes: function (index,layero){
//建立和test.html页面的联系
var body = layer.getChildFrame('body',index);
//通过id在子页面获取元素
var userName = body.find('#userName').val();
}
}
});
layer获取子页面信息
最新推荐文章于 2023-07-06 15:49:51 发布
1631

被折叠的 条评论
为什么被折叠?



