摘要
传统DOM处理需要编写繁杂的选择器,逐级操作还原服务器需要的JSON数据格式,不但操作繁琐且易出现致命错误。而通过Vue.js的响应式双向绑定数据,实时反映数据的真实变化并映射到数据源上,避免前端页面开发中DOM选择器繁杂的操作,简化Web前端开发流程和降低开放难度,提升前端开发效率,降低开发成本和周期,提升微信公众号使用的流畅性。Vue.js与Vue-router路由结合开发,配合Webpack前端打包工具,基于团队模块化开发基于微信的SPA(Single Page Application,单页应用)。
Traditional DOM processing needs to write complex selectors and restore the JSON data format required by the server step by step.It is not only cumbersome but also prone to fatal errors.Through the two-way data binding in response to Vue.js,real-time response data of real changes and mapped to the data source,to avoid the front page in the development of DOM selector complicated operation,simplified Web front-end development process and difficulty,improve the front-end development efficiency,reducing the cost and development cycle,improve the public fluency experience WeChat no..Vue.js combines with Vue-router routing to work with Webpack front-end packaging tools,developing WeChat based SPA(Single,Page,Application,single page applications)based on team modularization.
作者
麦冬
陈涛
梁宗湾
Mai Dong;Chen Tao;Liang Zongwan(Guangxi Machinery Industry Research Institute,Nanning Guangxi 530001,China)
出处
《信息与电脑》
2017年第7期58-59,共2页
Information & Computer
基金
南宁市科学研究与技术开发计划项目"3D打印技术研发及推广应用"(项目编号:20165017)