var layer1 = function() {
    layer.open({
       type: 2,
       title: '标题',
       maxmin: false,
       area: ['780px', '600px'],
       content: 'page1.action',
       btn: ['确定','取消'],
       yes:function(index) {
           var body = layer.getChildFrame('body', index).contents();
           var content = body.find("#content").val();
           alert(content);    
           layer.close(index);
       }
    });
}

上面的代码,可以在点击确认按钮的时候,获取page1.action页面中id为content的值

相关文章:

  • 2021-07-24
  • 2021-07-13
  • 2022-03-09
  • 2021-08-30
  • 2022-01-31
  • 2022-12-23
猜你喜欢
  • 2021-07-24
  • 2021-11-28
  • 2021-06-07
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案