In the past two days, I was writing a front-end using EasyUI. I encountered the problem of dynamically adding HTML content to Layout without automatic rendering. I checked the information on the Internet and solved it. The details are as follows:
$("#content").html(data);$.parser.parse("#content");
The first line of code is to set the HTML of the DOM element whose Id is #content to the value of data.
The second line of code is used to render the DOM element whose Id is #content and its sub-elements.
Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.