日期:2014-05-16 浏览次数:20357 次
1.with (object){ 2.statements 3.}
1.var a, x, y 2.var r=10 3.with (Math) { 4.a = PI * r * r 5.x = r * cos(PI) 6.y = r * sin(PI/2) 7.}
01.var a, x, y 02.var r=10 03.with(Date) 04.with (Math) { 05.a = PI * r * r 06.x = r * cos(PI) 07.y = r * sin(PI/2) 08.y = y+getDay() //等同于Date.getDay() 09.}