检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]武汉科技大学计算机科学与技术学院,湖北武汉430065
出 处:《计算机工程与设计》2013年第1期366-371,共6页Computer Engineering and Design
基 金:国家自然科学基金项目(61100055);湖北省自然科学基金项目(500104);冶金工业过程系统科学湖北省重点实验室开放基金项目(Y201120)
摘 要:针对传统数据验证方案在验证场所的单一性或验证场所分工不明确而导致的用户体验差、系统效率低,以及验证代码与系统其它模块耦合度较大的问题,提出了一种以验证复杂度为依据来进行验证场所在数据验证方面的明确分工策略。设计了一个在客户端采用事件监听减少客户端UI和验证代码的耦合度,在服务器端运用Aop和Valang分离数据验证模块和业务逻辑模块的方案。该方案能以少代码、低耦合的方式实现数据验证功能,并在实际项目中有较好的实用性。Traditional data verification plan have the problem of user experience deficiency, system efficiency and high coupling degree of validation code with other system module, brought by simplicity and work division indeterminacy. This paper poses a definite division strategy based on complexity verification to validate places, designing a plan using event listener on the client side to reduce coupling degree of UI and verification code and utilizing Aop and Valang to separate data verification and business logic module on the server. This plan is very practical in projects as it can realize data verification function with short code and low coupling.
关 键 词:数据验证 事件监听 面向切面编程 耦合度 验证语言
分 类 号:TP311.11[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.222