- 博客(5)
- 收藏
- 关注
js的prototype理解
<script> function Point(x,y) { var position ; //用var声明的属性是private的 this.x = x; //用this.属性和方法是public的 this.y = y; } var p1 = new Point(1,2); var p2 = new Point(3,4); Point.prototy...
2009-05-15 13:38:46
89
javascript调试
今天我第一次用javascript调试了我的js!感觉世界很美好!下面我记录了我的全过程! 首先:安装firedebug的插件!只要到://www.getfirebug.com/downloads.html来安装就好了,只是需要几秒钟!安装完成之后就在 工具--》firedebug这个选项了! 然后,用firefox打开你想调试的网页,*.html; ...
2009-04-28 14:41:07
107
原创 几种javascript函数定义的区别
1:调用关键字function来构造 如: function distance(x1,x2,y1,y2) ...{ var dx=x2-x1; var dy=y2-y1; return Math.sqrt(dx*dx+dy*dy); } 2:使用Function()构造函数 如: var f=new ...
2009-04-27 12:05:11
110
sun 被收购了
sun被oracle收购了,心情很不好。虽然这个sun的最好选择。java,sun加油!继续我的java之路!!We expect this acquisition to be accretive to Oracle's earnings by at least 15 cents on a non-GAAP basis in the first full year after closing....
2009-04-21 08:27:04
197
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人