Javascript是一种由Netscape的LiveScript发展而来的脚本语言,主要目的是为了解决服务器终端语言,比如Perl,遗留的速度问题。当时服务端需要对数据进行验证,由于网络速度相当缓慢,只有28.8kbps,验证步骤浪费的时间太多。于是Netscape的浏览器Navigator加入了Javascript,提供了数据验证的基本功能。
-Javascript is a LiveScript development of Netscape
这是个关于类的示例,定义一个dog类,然后通过继承,派生出工作狗,宠物狗,商业狗等类,可以通过人机界面输入,修改信息。-This is a category for example, the definition of a dog category, and then through inheritance, derived from the work dogs, pet dogs, dogs and other types of business, human-machine interface can be imported, modified information.