An HTML page has many elements, such as <DIV> and <P>. These elements constitute HTML pages. In Web development, permission control is used by every system. The permissions of each element on the interface also need to be controlled. For example, a user query interface contains a user query button, a user addition button, and a user deletion button. Different roles must be assigned different permissions. For example, a general user only has the permission to query user buttons; the Administrator has the permission to add and query user buttons. The super administrator queries users, adds users, and deletes users. How can these three users get three different interface forms after logon? At this time, you need to use HTML elements for permission control.
A few steps are required to achieve this:
1. The scan interface obtains the information of the elements to be assigned permissions and stores them in the database.
2. Assign element permissions.
3. Load the interface.
4. Integration.
: