An HTML page has a lot of elements such as <DIV>,<P>. These elements form an HTML page. In Web development, permission control is used for every system. The permissions for each element of the interface also need to be controlled. such as a query user interface inside there are query user button, add User button, delete User button, different roles we have to assign different permissions, such as the general user only query user button permissions; the administrator has the Add User button, query user button permissions; Super Admin query User button, add User button, Permission to delete the user button. How can these three users get three different interface forms after logging in? This is the time to use HTML elements for permission control.
It takes a few steps to achieve this:
1. The scanning interface takes the information of the elements to be assigned to the permission to be stored in the database.
2. Assign element permissions.
3. Interface loading.
4. Integration.
: