data-dojo-attach-point

In Dojo declaration and Dojo template, we often see statements like dojoAttachPoint=”xxx”. After checking the documents, I finally got some rational understanding. An example is as follows: If you want to modify thead and tr in js, you can use the alias head and headRow specified by dojoAttachPoint to refer to thead and tr so that you can operate it. A deeper understanding is that thead and tr respectively correspond to the DOM Node on the DOM tree of the page. When JS manipulates the DOM tree, it can only be operated when an instance of the DOM node is obtained. For example, in the above example table, when you want to add a td node, you must get the instance of tr, and then operate on it; the code implemented in JS is as follows: var tth = document.createElement(“th”); this. headRow.appendChild(tth); Or: this.headRow.appendChild(document.createElement(“td”)); In fact, it is no different from setting the id and then getting the dom node through byId, but this is just a little bit.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 557 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.