一个最简单的vbs类实例代码
作者:
下面的vbs类虽然简单,但也看出来,vbs类的原理,大家可以根据自己的需要编写
class CFoo
sub PrintHello()
response.Write "Hello World!"
end sub
end class
dim obj
set obj = new CFoo
call obj.PrintHello
set obj = nothing
sub PrintHello()
response.Write "Hello World!"
end sub
end class
dim obj
set obj = new CFoo
call obj.PrintHello
set obj = nothing