国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > AJAX > 正文

ajax+asp無限級分類樹型結構的代碼

2024-09-01 08:29:37
字體:
來源:轉載
供稿:網友
代碼如下:
<%
'數據庫字段為類屬性,添加、刪除、修改、操作檢查等函數為類的方法
Class Cls_Leibie
    Private nClassID,sClassName,nParentID,sParentPath,nDepth,nRootID,nChild,nOrderID,sFilePath '定義私有變量(類的屬性,即數據庫字段對應的變量)
    Private rs,sql,ErrorStr

    Private Sub Class_Initialize()
        ErrorStr=""                    '初始化錯誤信息為空
    End Sub

    Private Sub Class_Terminate()    '銷毀類時關閉數據庫連接
        If IsObject(Conn) Then 
            Conn.Close
            Set Conn = Nothing
        End If
    End Sub

'*******************設置各個屬性******************************************************    
    Public Property Let ClassID(str)    '獲取類別ID(主鍵)
        nClassID=str
        call ClassProperty()            '獲取類別ID時調用此函數讀出類的所有屬性
    End Property
    Public Property Let ClassName(str)    '獲取類別名稱
        sClassName=str
    End Property

    Public Property Get ClassName
        ClassName=sClassName
    End Property

    Public Property Let ParentID(str)    '獲取類別父ID
        nParentID=str
    End Property

    Public Property Get ParentID
        ParentID=nParentID
    End Property

    Public Property Let ParentPath(str)    '獲取父路徑ID
        sParentPath=str
    End Property

    Public Property Get ParentPath
        ParentPath=sParentPath
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 乌什县| 通辽市| 翁牛特旗| 民和| 平果县| 七台河市| 达日县| 留坝县| 汪清县| 平阴县| 开封县| 连云港市| 忻城县| 吉水县| 淳安县| 瓦房店市| 宣城市| 金门县| 酒泉市| 溆浦县| 佳木斯市| 延津县| 右玉县| 平度市| 望都县| 萍乡市| 怀安县| 固安县| 新沂市| 泰顺县| 新邵县| 兴安县| 民乐县| 恭城| 德令哈市| 华池县| 杭锦后旗| 平南县| 延长县| 桓仁| 福安市|