yanwl的专栏
登录
注册
全站
当前博客
空间
博客
好友
相册
留言
用户操作
[即时聊天]
[发私信]
[加为好友]
月影
ID:yanwl
共
20313
次访问,排名
5870
好友
0
人,关注者
14
人
......
yanwl的文章
原创 21 篇
翻译 0 篇
转载 0 篇
评论 13 篇
最近评论
jie758:
很受用!谢谢!问个问题,为什么继承语句要写在构造函数之外?如:
function Person(){
this.name = "God";
}
function Man(){
this.sex = "M";
Man.prototype = new Person();
}
var man = new Man(……
jie758:
很受用!谢谢!问个问题,为什么继承语句要写在构造函数之外?如:
function Person(){
this.name = "God";
}
function Man(){
this.sex = "M";
Man.prototype = new Person();
}
var man = new Man(……
dead_of_winter:
是这意思么?
dead_of_winter:
<textarea rows="20" cols="80" id="codeMain"></textarea><br>
<input type="button" value="运行代码" onclick="runCode(codeMain)">
<input type="button" value="复制代码" onc……
王林波:
写的相当好!!!有一点问题:
for (each in classA)
{
classB[each] = function(){classA[each]}; //将classA的类方法也继承下来
}
这里错了哦^_^
应该是:
for (each in classA)
{
classB[each] ……
文章分类
Javascript
(RSS)
收藏
相册
存档
2007年12月(3)
2006年04月(1)
2005年10月(1)
2005年09月(1)
2005年08月(1)
2005年07月(1)
2005年06月(1)
2005年05月(1)
2005年04月(2)
2005年03月(4)
2005年02月(1)
2004年11月(4)
软件项目交易
订阅我的博客
开始写BLOG
2005年05月
程序主菜单之javascript完全模拟
javascript 模拟
阅读全文>
发表于 @
2005年05月16日 21:20:00
|
评论(
loading...
)
|
编辑