| 论坛帮助 |
| 日历事件 |
|
|
#1 | ||
|
|||
|
java爱好者
等级: 六袋长老
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
使用Class 这个概念。 javascript 虽没有。 但也能实现 在下认为:添加脚线与标记 就是一件事情 for(var i=0;i<list.length;i++){ var shape = list[i]; shape.draw(); } function Shape(){ ..... this.draw(): } 这样应该能省你 50%的代码 |
||
|
|