以前看见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'
));
});
}
});
案例很简单,效果也很烂。只为做个留个笔记,希望不要乱喷啊。
转载于:https://www.cnblogs.com/AspJS/archive/2012/06/28/2568313.html
相关资源:JAVA上百实例源码以及开源项目