以前看见Dwz中的带回效果如下:当用户点击带回时,可以获取Iframe中的数据
我做了一个很简单的案例
点击关闭并带回时
这只是很简单的案例
主要代码:
var ff = $(window.frames["loing"].document).find("#btnSubmit");//查找Iframe中的按钮 $(ff).bind('click', function () {//为按钮绑定事件 $(window.frames["loing"].document).find("input[type=checkbox]").each(function () { if ($(this).attr('checked') == 'checked') { $(this).parent().parent().each(function () { $($(this).html()).appendTo($('.Detailed')); }); } });
案例很简单,效果也很烂。只为做个留个笔记,希望不要乱喷啊。