期刊文献+

基于Javascript原型的Zepto框架设计

Design of Zepto Framework Based on Javascript Prototype
下载PDF
导出
摘要 随着互联网的普及,前端技术也得到了迅速发展。为了深入了解前端开发中的框架设计原理,以Zepto前端框架为例,利用Javascript原型链的相关知识,采用原生Javascript与框架对比的方法剖析了框架整体设计思路,细致分析了框架的大致架构,重构了Zepto对象原型,并封装了可能用到的所有方法。利用这种从宏观到微观的研究视角,最终呈现了一个框架的整体细致构造及其与底层原生Javascript的联系,以便于开发者熟悉框架设计原理,更好地设计出自己的框架。 In order to gain a better understanding of the framework design principles in front-end development,we take the front-end framework of Zepto as an example,use Javascript prototype chain,native Javascript and frame comparison method to analyze the framework of the overall design ideas.We have detailed analysis of the framework of the general structure,reconstruct Zepto object prototype,and encapsulate all the methods that will be used.Based on the micro-to-micro perspective,we present a framework of the overall structure and its relationship with the underlying native Javascript,which help developers familiarize framework design principles to better establish their frameworks.
作者 王运 倪静 WANG Yun;NI Jing(School of Management,University of Shanghai for Science and Technology,Shanghai 200091,China)
出处 《软件导刊》 2018年第4期124-126,共3页 Software Guide
关键词 JAVASCRIPT 前端框架 原型 Zepto Javascript front frame prototype Zepto
  • 相关文献

参考文献8

二级参考文献33

  • 1陈银山 张录娥(译).Web数据库的建立与管理[M].北京:机械工业出版社,1997,(6)..
  • 2[美]BanerjeeA CoreraA康博译.C# Web服务高级编程[M].北京:清华大学出版社,2002..
  • 3jQuery官方网站[EB/OL].http://jquery.com.
  • 4张鑫,黄灯桥,杨彦强.JavaScript凌厉开发--Ext详解与实战[M].北京:清华大学出版社,2009:103-114.
  • 5卫军,夏慧军,孟腊春.ExtJSWeb应用程序开发指南[M].北京:机械工业出版社,2010:38-47.
  • 6Essential JavaScript: the top five MVC frameworks-Jack Franklin[EB/OL]. http://www.creativebloq.com/javascript/essential-javascript- top-five-mvc-frameworks- 11122767.
  • 7Journey Through The JavaScript MVC Jungle-Addy Osmani[EB/OL]. http://coding.smashingmagazine.com/2012/07/27/journey- through-the-javascript-mvc-jungle/.
  • 8JavaScript MVC frameworks:A Comparison of Marionette and Chaplin- Mathias Schafer[EB/OL].http://9elements.com/io/index.php/ comparison-of-marionette-and-chaplin/.
  • 9Backbone.js[EB/OL]. http://backbonejs.org/.
  • 10Backbone Tutorials-Thomas Davis[EB/OL]. http://backbonetutorials.com/.

共引文献32

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部