1. Problem background: Given an array object, which contains the id of p; loop to generate p elements and assign values to the id 2. Implementation source code AngularJS dynamically generates the ID of p var app = angular.module("idApp</p> <p><span style="line-height: 1.76em;">1. <a href="http://www.php.cn/js-tutorial-352598.html" target="_blank">AngularJS dynamically generates the ID of the div</a></span></p> <p><span style="line-height: 1.76em;"><img src="https://img.php.cn/upload/article/000/000/194/048125598b03fc1d53f22492477df69d.jpg" style="max-width:90%" alt="Let's talk about the usage of div ID" ></span> </p> <p><span style="line-height: 1.76em;">Introduction: Given an array object, which is the id of the div; loop to generate div elements and assign values to the id</span></p> <p><span style="line-height: 1.76em;">2. <a href="http://www.php.cn/php-weizijiaocheng-333450.html" target="_blank">ThinkPHP Output variables in the template </a></span></p> <p><span style="line-height: 1.76em;"> Introduction: {code...} {code...} in the controller where land is the id of a div in the foreground, id There is a corresponding relationship with the base. For example, the div with land 1 is filled with 500, and the div with land 2 is filled with 400. The details are as follows: The front desk is a farm made of HTML, and each piece of land has an ID, which is what I go to. ..</span></p> <p><span style="line-height: 1.76em;">3. <a href="http://www.php.cn/js-tutorial-26908.html" target="_blank">Use js to get the id_javascript skills of all divs in the webpage</a></span></p> <p><span style="line-height: 1.76em;">Introduction: Use js to get The IDs of all divs in the web page</span></p> <p><span style="line-height: 1.76em;">4. <a href="http://www.php.cn/js-tutorial-25961.html" target="_blank">JS value code for the ID value of the current DIV_javascript skills</a></span></p> <p><span style="line-height: 1.76em;">Introduction: JS value code for the ID value of the current DIV</span></p> <p><strong>[Related Q&A recommendations]:</strong></p> <p><a href="http://www.php.cn/wenda/14883.html" target="_blank">javascript - When does angularjs render model variables? ? </a></p> <p>##javascript - How to make the id value of div different when splicing html with js, how to get the id value of div<a href="http://www.php.cn/wenda/58201.html" target="_blank"></a></p> <p>javascript - How to use JS Control the border color of the aspImage tag under this div? <a href="http://www.php.cn/wenda/32273.html" target="_blank"></a></p> <p>ThinkPHP outputs variables in the template<a href="http://www.php.cn/wenda/39023.html" target="_blank"></a></p>##javascript - Questions arising from closures <p><a href="http://www.php.cn/wenda/34350.html" target="_blank"></a></p>