?ASP VBScript??????

????ASP???????????OOP??????????JAVA?PHP?this??????????

???? Me

?????? this ?? self ??????. VBScript??????? Me?

<%
Class meClass
    Private i_count
    Public Property Get Count
        i_count = i_count + 1
        Count = i_count
    End Property
    Public Property Get countTwice
        countTwice = Me.Count + Me.Count
    End Property
    Public Property Let Count(c)
        i_count = c
    End Property
End Class
%>

 

?????

<%
Dim meTest
Set meTest = New meClass
meTest.Count = 10
Response.Write(meTest.countTwice)
Set meTest = Nothing
%>

??????23???11 + 12??????Me.count?????????

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注