JS的子页面获取父页面的数据样本
当您进行页面预览时,数据不会存储在数据库中,但您必须打开一个预览页面,并询问许多阿姨,这样就完成了。1,父页
复制代码代码如下所示:
预览
2, the child page, that is, a.html gets the value of the text box in the parent page
复制代码代码如下所示:
$(函数(){())
Console.info(window.opener.document.getelementbyid(名)。值);
});
这是控制台中父页面文本框的值。
不要急着说没有选择,也许,下一个路口会遇到希望。