1.vbs是这样- class class1
- private aa
- property let let1(a)
- aa = a
- end property
- property get get1()
- get1 = aa
- end property
- sub sub1
- msgbox get1
- end sub
- end class
复制代码 2.vbs是这样- <script language="VBScript" src="1.vbs">
- dim a1
- set a1 = new class1
- a1.let1 = 10
- a1.sub1
复制代码 想问问为何运行2.vbs会报错?? |