- 博客(1)
- 资源 (7)
- 收藏
- 关注
原创 对js面向对象的初步理解
function test_opp(name,age){this.name=name;this.age=age;this.ha=1;}test_opp.prototype.huha = function(ele){alert(ele);}test_opp.prototype.ha=2;var opp = new test_opp("sunhongwei","25");//function test_opp()是构造函数opp.huha("good");alert(test_opp.ha);//弹出的是und
2010-09-13 14:57:00 233
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人