摘要: 两道js笔试题: var tempb=function(){this.x=1;this.getX=function(){return this.x;}}var tempn=function(){this.x=2;}var t=new tempb();var g=new tempn();alert(t.getX()); g.getX=t.getX; alert(g.getX()); g.getX=function(){return t.getX();} alert(g.getX()); 写出执行结果: var p=12;var result=(function(x,y,z){ thi... 阅读全文
posted @ 2012-11-29 16:55 OOLi 阅读(653) 评论(2) 推荐(0) 编辑