摘要
传统方式对JavaScript的应用基本上是基于过程模型的,若在JavaScript中利用面向对象的思想进行代码编写,将会使得代码具有良好的结构和逻辑性,更便于管理和维护。本文让读者看到JavaScript如何实现面向对象编程并提供范例。
Traditionally Javascript applicalons are based on procedure model. If Object Oriented is used to program code in Javascript,the code will have better structure and logic and will be easier to manage and maintain. The article illustrates how to realize object oriemted programming in Jacascript.
出处
《安庆师范学院学报(自然科学版)》
2005年第4期85-88,共4页
Journal of Anqing Teachers College(Natural Science Edition)
关键词
面向对象
属性
方法
继承
多态
object oriented
property
method
inheritance
polymorphism