站长资源脚本专栏

一个最简单的vbs类实例代码

整理:jimmy2024/12/27浏览2
简介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