检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:周岚[1] ZHOU Lan(Xuzhou Finance and Economics Branch,Jiangsu Union Technical Institute,Xuzhou 221008,China)
机构地区:[1]江苏联合职业技术学院徐州财经分院
出 处:《软件工程》2019年第12期14-17,共4页Software Engineering
摘 要:JavaScript是面向Web的编程语言,其高端、动态以及面向对象的编程风格,使得它已经从一门简单的脚本语言进化成为一门强大的编程语言。JS的核心是支持面向对象的,同时它也提供了强大灵活的面向对象语言的编程能力。本文针对JavaScript继承机制的实现方式进行了总结归纳,深入介绍了基于原型的继承、构造函数方式继承、组合继承、寄生式继承等继承机制,并分析了各自方式的优缺点,便于读者更深层次的理解JavaScript面向对象编程机制。Javascript is a web-oriented programming language.Its high-end,dynamic and object-oriented programming style has evolved from a simple scripting language to a powerful programming language.The core of JS is to support objectoriented,and it also provides powerful and flexible programming ability of object-oriented language.This paper summarizes the implementation of JavaScript inheritance mechanism,introduces the inheritance mechanism based on prototype,constr uctor,combination and parasitism,and analyzes the advantages and disadvantages of each method,which is convenient for readers to understand the JavaScript object-oriented programming mechanism.
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.30