站长资源脚本专栏
一个最简单的vbs类实例代码
简介class CFoo sub PrintHello() response.Write "Hello World!" end sub end class dim obj set obj = new CFoo call obj.PrintHello set obj =
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