摘要
基于Web的各种管理系统要求不同权限的登陆用户能够使用不同的系统功能.为了实现这个目的,不仅需要系统从后端代码判断用户是否具有操作权限,更要求前端网页能够根据登录用户的权限展示相应的功能菜单.以PHP、ASP、JSP书写的传统动态Web页面可以直接通过网站后端代码实现隐藏或显示网页菜单.然而,近年来,前后端分离开发技术已经成为业界趋势.因而,基于静态Web页面,提出权限控制的具体实现方法和步骤.
Various web-based management systems require login users with different permissions to use different system functions.In order to achieve this goal,the system not only needs to judge whether the user has the opera-tion authority from the back-end code,but also requires the front-end web page to display the corresponding function memu according to the login uscrs authority.The traditional dynamic web page written by PHP,ASP and JSP can hide or display the web menu directly through the back-end code of the website.However,in recent years,the separation of front and back development technology has become the industry trend.Therefore,based on the static web page,this paper proposes the specific implementation methods and steps of authority control.
作者
杨阳
申珈宇
李维勇
Yang yang;SHEN Jia-yu;LI Wei-yong(School of Computer and Software,Nanjing Vocational College of Information Technology,Nanjing 210023,China)
出处
《西安职业技术学院职教研究》
2020年第1期47-49,共3页
Research on Vocational Education in Xi'an Vocational and Technical College
关键词
静态页面
权限控制
前后端分离
static page
authority control
front-end and back-end separation