现在是有个这样的需求
html1:
<body>
<div id = 'hehe'>您好,csdn</div>
<iframe src='html2'><iframe/>
</body>
html2:
<body>
<button ><a href="html3">跳转...</a></button>
</body>
如何实现点击html2的button 然后html1的<div id='hehe'>您好,csdn</div>进行隐藏
我在html3用jq这样写,结果发现隐藏太慢了
$(function() {
$(window.parent.document).find("#hehe").hide();
});
有什么其他方法么