?? oojavascript.js
字號(hào):
?//父類
function Person(name,age)
{
this.Name=name;
this.Age=age;
this.Display=function()
{
alert("my age is "+ this.Age);
}
}
Person.prototype.talk=function(){alert(this.Name+" is talking!");};
//子類
//function SubPerson(name)
//{
// this.Name=name;
//}
//SubPerson.prototype=new Person(this.Name,"19");
function PersonTalk()
{
var person=new Person("dong",19);
person.Display();
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -