Description: the sub-frame is response for receiving data from background and renders them to HTML code. Then update the special HTML element in parent. Since the element has been updated totally, even though they are the same id and name, the events which bind on them before will not be effective. We have to bind these events again in sub-frame.
And you also invoke parent function do it in the sub-frame. Explicitly like this:
..getHtmlFromBackgound;
..renderHTML;
..updateParentHtmlElement;
window.parent.rebind();
本文介绍了一个涉及子框架接收后台数据并将其渲染为HTML的过程。由于元素完全更新,即使ID和名称相同,之前的事件绑定也会失效。因此,文章强调了在子框架中重新绑定事件的重要性,并详细说明了实现这一过程的具体步骤。
5934

被折叠的 条评论
为什么被折叠?



