mali-ui-plus 1.0.82 → 1.0.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kindeditor/asp/JSON_2.0.4.asp +210 -0
- package/kindeditor/asp/UpLoad_Class.asp +561 -0
- package/kindeditor/asp/demo.asp +60 -0
- package/kindeditor/asp/file_manager_json.asp +228 -0
- package/kindeditor/asp/upload_json.asp +119 -0
- package/kindeditor/asp.net/README.txt +12 -0
- package/kindeditor/asp.net/bin/LitJSON.dll +0 -0
- package/kindeditor/asp.net/demo.aspx +53 -0
- package/kindeditor/asp.net/file_manager_json.ashx +227 -0
- package/kindeditor/asp.net/upload_json.ashx +121 -0
- package/kindeditor/index.d.ts +22 -0
- package/kindeditor/index.js +5 -0
- package/kindeditor/jsp/README.txt +15 -0
- package/kindeditor/jsp/demo.jsp +56 -0
- package/kindeditor/jsp/file_manager_json.jsp +155 -0
- package/kindeditor/jsp/lib/commons-fileupload-1.2.1.jar +0 -0
- package/kindeditor/jsp/lib/commons-io-1.4.jar +0 -0
- package/kindeditor/jsp/lib/json_simple-1.1.jar +0 -0
- package/kindeditor/jsp/upload_json.jsp +122 -0
- package/kindeditor/kindeditor-all.js +9916 -0
- package/kindeditor/lang/ar.js +242 -0
- package/kindeditor/lang/en.js +241 -0
- package/kindeditor/lang/ko.js +246 -0
- package/kindeditor/lang/ru.js +242 -0
- package/kindeditor/lang/zh-CN.js +238 -0
- package/kindeditor/lang/zh-TW.js +243 -0
- package/kindeditor/license.txt +502 -0
- package/kindeditor/php/JSON.php +806 -0
- package/kindeditor/php/demo.php +53 -0
- package/kindeditor/php/file_manager_json.php +137 -0
- package/kindeditor/php/upload_json.php +139 -0
- package/kindeditor/plugins/anchor/anchor.js +46 -0
- package/kindeditor/plugins/autoheight/autoheight.js +54 -0
- package/kindeditor/plugins/baidumap/baidumap.js +93 -0
- package/kindeditor/plugins/baidumap/index.html +83 -0
- package/kindeditor/plugins/baidumap/map.html +43 -0
- package/kindeditor/plugins/clearhtml/clearhtml.js +29 -0
- package/kindeditor/plugins/code/code.js +62 -0
- package/kindeditor/plugins/code/prettify.css +13 -0
- package/kindeditor/plugins/code/prettify.js +28 -0
- package/kindeditor/plugins/emoticons/emoticons.js +129 -0
- package/kindeditor/plugins/emoticons/images/0.gif +0 -0
- package/kindeditor/plugins/emoticons/images/1.gif +0 -0
- package/kindeditor/plugins/emoticons/images/10.gif +0 -0
- package/kindeditor/plugins/emoticons/images/100.gif +0 -0
- package/kindeditor/plugins/emoticons/images/101.gif +0 -0
- package/kindeditor/plugins/emoticons/images/102.gif +0 -0
- package/kindeditor/plugins/emoticons/images/103.gif +0 -0
- package/kindeditor/plugins/emoticons/images/104.gif +0 -0
- package/kindeditor/plugins/emoticons/images/105.gif +0 -0
- package/kindeditor/plugins/emoticons/images/106.gif +0 -0
- package/kindeditor/plugins/emoticons/images/107.gif +0 -0
- package/kindeditor/plugins/emoticons/images/108.gif +0 -0
- package/kindeditor/plugins/emoticons/images/109.gif +0 -0
- package/kindeditor/plugins/emoticons/images/11.gif +0 -0
- package/kindeditor/plugins/emoticons/images/110.gif +0 -0
- package/kindeditor/plugins/emoticons/images/111.gif +0 -0
- package/kindeditor/plugins/emoticons/images/112.gif +0 -0
- package/kindeditor/plugins/emoticons/images/113.gif +0 -0
- package/kindeditor/plugins/emoticons/images/114.gif +0 -0
- package/kindeditor/plugins/emoticons/images/115.gif +0 -0
- package/kindeditor/plugins/emoticons/images/116.gif +0 -0
- package/kindeditor/plugins/emoticons/images/117.gif +0 -0
- package/kindeditor/plugins/emoticons/images/118.gif +0 -0
- package/kindeditor/plugins/emoticons/images/119.gif +0 -0
- package/kindeditor/plugins/emoticons/images/12.gif +0 -0
- package/kindeditor/plugins/emoticons/images/120.gif +0 -0
- package/kindeditor/plugins/emoticons/images/121.gif +0 -0
- package/kindeditor/plugins/emoticons/images/122.gif +0 -0
- package/kindeditor/plugins/emoticons/images/123.gif +0 -0
- package/kindeditor/plugins/emoticons/images/124.gif +0 -0
- package/kindeditor/plugins/emoticons/images/125.gif +0 -0
- package/kindeditor/plugins/emoticons/images/126.gif +0 -0
- package/kindeditor/plugins/emoticons/images/127.gif +0 -0
- package/kindeditor/plugins/emoticons/images/128.gif +0 -0
- package/kindeditor/plugins/emoticons/images/129.gif +0 -0
- package/kindeditor/plugins/emoticons/images/13.gif +0 -0
- package/kindeditor/plugins/emoticons/images/130.gif +0 -0
- package/kindeditor/plugins/emoticons/images/131.gif +0 -0
- package/kindeditor/plugins/emoticons/images/132.gif +0 -0
- package/kindeditor/plugins/emoticons/images/133.gif +0 -0
- package/kindeditor/plugins/emoticons/images/134.gif +0 -0
- package/kindeditor/plugins/emoticons/images/14.gif +0 -0
- package/kindeditor/plugins/emoticons/images/15.gif +0 -0
- package/kindeditor/plugins/emoticons/images/16.gif +0 -0
- package/kindeditor/plugins/emoticons/images/17.gif +0 -0
- package/kindeditor/plugins/emoticons/images/18.gif +0 -0
- package/kindeditor/plugins/emoticons/images/19.gif +0 -0
- package/kindeditor/plugins/emoticons/images/2.gif +0 -0
- package/kindeditor/plugins/emoticons/images/20.gif +0 -0
- package/kindeditor/plugins/emoticons/images/21.gif +0 -0
- package/kindeditor/plugins/emoticons/images/22.gif +0 -0
- package/kindeditor/plugins/emoticons/images/23.gif +0 -0
- package/kindeditor/plugins/emoticons/images/24.gif +0 -0
- package/kindeditor/plugins/emoticons/images/25.gif +0 -0
- package/kindeditor/plugins/emoticons/images/26.gif +0 -0
- package/kindeditor/plugins/emoticons/images/27.gif +0 -0
- package/kindeditor/plugins/emoticons/images/28.gif +0 -0
- package/kindeditor/plugins/emoticons/images/29.gif +0 -0
- package/kindeditor/plugins/emoticons/images/3.gif +0 -0
- package/kindeditor/plugins/emoticons/images/30.gif +0 -0
- package/kindeditor/plugins/emoticons/images/31.gif +0 -0
- package/kindeditor/plugins/emoticons/images/32.gif +0 -0
- package/kindeditor/plugins/emoticons/images/33.gif +0 -0
- package/kindeditor/plugins/emoticons/images/34.gif +0 -0
- package/kindeditor/plugins/emoticons/images/35.gif +0 -0
- package/kindeditor/plugins/emoticons/images/36.gif +0 -0
- package/kindeditor/plugins/emoticons/images/37.gif +0 -0
- package/kindeditor/plugins/emoticons/images/38.gif +0 -0
- package/kindeditor/plugins/emoticons/images/39.gif +0 -0
- package/kindeditor/plugins/emoticons/images/4.gif +0 -0
- package/kindeditor/plugins/emoticons/images/40.gif +0 -0
- package/kindeditor/plugins/emoticons/images/41.gif +0 -0
- package/kindeditor/plugins/emoticons/images/42.gif +0 -0
- package/kindeditor/plugins/emoticons/images/43.gif +0 -0
- package/kindeditor/plugins/emoticons/images/44.gif +0 -0
- package/kindeditor/plugins/emoticons/images/45.gif +0 -0
- package/kindeditor/plugins/emoticons/images/46.gif +0 -0
- package/kindeditor/plugins/emoticons/images/47.gif +0 -0
- package/kindeditor/plugins/emoticons/images/48.gif +0 -0
- package/kindeditor/plugins/emoticons/images/49.gif +0 -0
- package/kindeditor/plugins/emoticons/images/5.gif +0 -0
- package/kindeditor/plugins/emoticons/images/50.gif +0 -0
- package/kindeditor/plugins/emoticons/images/51.gif +0 -0
- package/kindeditor/plugins/emoticons/images/52.gif +0 -0
- package/kindeditor/plugins/emoticons/images/53.gif +0 -0
- package/kindeditor/plugins/emoticons/images/54.gif +0 -0
- package/kindeditor/plugins/emoticons/images/55.gif +0 -0
- package/kindeditor/plugins/emoticons/images/56.gif +0 -0
- package/kindeditor/plugins/emoticons/images/57.gif +0 -0
- package/kindeditor/plugins/emoticons/images/58.gif +0 -0
- package/kindeditor/plugins/emoticons/images/59.gif +0 -0
- package/kindeditor/plugins/emoticons/images/6.gif +0 -0
- package/kindeditor/plugins/emoticons/images/60.gif +0 -0
- package/kindeditor/plugins/emoticons/images/61.gif +0 -0
- package/kindeditor/plugins/emoticons/images/62.gif +0 -0
- package/kindeditor/plugins/emoticons/images/63.gif +0 -0
- package/kindeditor/plugins/emoticons/images/64.gif +0 -0
- package/kindeditor/plugins/emoticons/images/65.gif +0 -0
- package/kindeditor/plugins/emoticons/images/66.gif +0 -0
- package/kindeditor/plugins/emoticons/images/67.gif +0 -0
- package/kindeditor/plugins/emoticons/images/68.gif +0 -0
- package/kindeditor/plugins/emoticons/images/69.gif +0 -0
- package/kindeditor/plugins/emoticons/images/7.gif +0 -0
- package/kindeditor/plugins/emoticons/images/70.gif +0 -0
- package/kindeditor/plugins/emoticons/images/71.gif +0 -0
- package/kindeditor/plugins/emoticons/images/72.gif +0 -0
- package/kindeditor/plugins/emoticons/images/73.gif +0 -0
- package/kindeditor/plugins/emoticons/images/74.gif +0 -0
- package/kindeditor/plugins/emoticons/images/75.gif +0 -0
- package/kindeditor/plugins/emoticons/images/76.gif +0 -0
- package/kindeditor/plugins/emoticons/images/77.gif +0 -0
- package/kindeditor/plugins/emoticons/images/78.gif +0 -0
- package/kindeditor/plugins/emoticons/images/79.gif +0 -0
- package/kindeditor/plugins/emoticons/images/8.gif +0 -0
- package/kindeditor/plugins/emoticons/images/80.gif +0 -0
- package/kindeditor/plugins/emoticons/images/81.gif +0 -0
- package/kindeditor/plugins/emoticons/images/82.gif +0 -0
- package/kindeditor/plugins/emoticons/images/83.gif +0 -0
- package/kindeditor/plugins/emoticons/images/84.gif +0 -0
- package/kindeditor/plugins/emoticons/images/85.gif +0 -0
- package/kindeditor/plugins/emoticons/images/86.gif +0 -0
- package/kindeditor/plugins/emoticons/images/87.gif +0 -0
- package/kindeditor/plugins/emoticons/images/88.gif +0 -0
- package/kindeditor/plugins/emoticons/images/89.gif +0 -0
- package/kindeditor/plugins/emoticons/images/9.gif +0 -0
- package/kindeditor/plugins/emoticons/images/90.gif +0 -0
- package/kindeditor/plugins/emoticons/images/91.gif +0 -0
- package/kindeditor/plugins/emoticons/images/92.gif +0 -0
- package/kindeditor/plugins/emoticons/images/93.gif +0 -0
- package/kindeditor/plugins/emoticons/images/94.gif +0 -0
- package/kindeditor/plugins/emoticons/images/95.gif +0 -0
- package/kindeditor/plugins/emoticons/images/96.gif +0 -0
- package/kindeditor/plugins/emoticons/images/97.gif +0 -0
- package/kindeditor/plugins/emoticons/images/98.gif +0 -0
- package/kindeditor/plugins/emoticons/images/99.gif +0 -0
- package/kindeditor/plugins/emoticons/images/static.gif +0 -0
- package/kindeditor/plugins/filemanager/filemanager.js +189 -0
- package/kindeditor/plugins/filemanager/images/file-16.gif +0 -0
- package/kindeditor/plugins/filemanager/images/file-64.gif +0 -0
- package/kindeditor/plugins/filemanager/images/folder-16.gif +0 -0
- package/kindeditor/plugins/filemanager/images/folder-64.gif +0 -0
- package/kindeditor/plugins/filemanager/images/go-up.gif +0 -0
- package/kindeditor/plugins/fixtoolbar/fixtoolbar.js +35 -0
- package/kindeditor/plugins/flash/flash.js +161 -0
- package/kindeditor/plugins/image/image.js +328 -0
- package/kindeditor/plugins/image/images/align_left.gif +0 -0
- package/kindeditor/plugins/image/images/align_right.gif +0 -0
- package/kindeditor/plugins/image/images/align_top.gif +0 -0
- package/kindeditor/plugins/image/images/refresh.png +0 -0
- package/kindeditor/plugins/insertfile/insertfile.js +138 -0
- package/kindeditor/plugins/lineheight/lineheight.js +38 -0
- package/kindeditor/plugins/link/link.js +66 -0
- package/kindeditor/plugins/map/map.html +57 -0
- package/kindeditor/plugins/map/map.js +137 -0
- package/kindeditor/plugins/media/media.js +170 -0
- package/kindeditor/plugins/multiimage/images/image.png +0 -0
- package/kindeditor/plugins/multiimage/images/select-files-en.png +0 -0
- package/kindeditor/plugins/multiimage/images/select-files-zh-CN.png +0 -0
- package/kindeditor/plugins/multiimage/images/swfupload.swf +0 -0
- package/kindeditor/plugins/multiimage/multiimage.js +1384 -0
- package/kindeditor/plugins/pagebreak/pagebreak.js +27 -0
- package/kindeditor/plugins/plainpaste/plainpaste.js +41 -0
- package/kindeditor/plugins/preview/preview.js +31 -0
- package/kindeditor/plugins/quickformat/quickformat.js +81 -0
- package/kindeditor/plugins/table/table.js +712 -0
- package/kindeditor/plugins/template/html/1.html +14 -0
- package/kindeditor/plugins/template/html/2.html +42 -0
- package/kindeditor/plugins/template/html/3.html +36 -0
- package/kindeditor/plugins/template/template.js +58 -0
- package/kindeditor/plugins/wordpaste/wordpaste.js +51 -0
- package/kindeditor/themes/common/anchor.gif +0 -0
- package/kindeditor/themes/common/blank.gif +0 -0
- package/kindeditor/themes/common/flash.gif +0 -0
- package/kindeditor/themes/common/loading.gif +0 -0
- package/kindeditor/themes/common/media.gif +0 -0
- package/kindeditor/themes/common/rm.gif +0 -0
- package/kindeditor/themes/default/background.png +0 -0
- package/kindeditor/themes/default/default.css +1162 -0
- package/kindeditor/themes/default/default.png +0 -0
- package/kindeditor/themes/qq/editor.gif +0 -0
- package/kindeditor/themes/qq/qq.css +143 -0
- package/kindeditor/themes/simple/simple.css +100 -0
- package/lib/mali-ui-plus.common.js +26 -14
- package/lib/mali-ui-plus.css +1 -1
- package/lib/mali-ui-plus.umd.js +26 -14
- package/lib/mali-ui-plus.umd.min.js +1 -1
- package/package.json +3 -2
- package/style/modules/upload.scss +4 -0
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
<%
|
|
2
|
+
'
|
|
3
|
+
' VBS JSON 2.0.3
|
|
4
|
+
' Copyright (c) 2009 Tu�rul Topuz
|
|
5
|
+
' Under the MIT (MIT-LICENSE.txt) license.
|
|
6
|
+
'
|
|
7
|
+
|
|
8
|
+
Const JSON_OBJECT = 0
|
|
9
|
+
Const JSON_ARRAY = 1
|
|
10
|
+
|
|
11
|
+
Class jsCore
|
|
12
|
+
Public Collection
|
|
13
|
+
Public Count
|
|
14
|
+
Public QuotedVars
|
|
15
|
+
Public Kind ' 0 = object, 1 = array
|
|
16
|
+
|
|
17
|
+
Private Sub Class_Initialize
|
|
18
|
+
Set Collection = CreateObject("Scripting.Dictionary")
|
|
19
|
+
QuotedVars = True
|
|
20
|
+
Count = 0
|
|
21
|
+
End Sub
|
|
22
|
+
|
|
23
|
+
Private Sub Class_Terminate
|
|
24
|
+
Set Collection = Nothing
|
|
25
|
+
End Sub
|
|
26
|
+
|
|
27
|
+
' counter
|
|
28
|
+
Private Property Get Counter
|
|
29
|
+
Counter = Count
|
|
30
|
+
Count = Count + 1
|
|
31
|
+
End Property
|
|
32
|
+
|
|
33
|
+
' - data maluplation
|
|
34
|
+
' -- pair
|
|
35
|
+
Public Property Let Pair(p, v)
|
|
36
|
+
If IsNull(p) Then p = Counter
|
|
37
|
+
Collection(p) = v
|
|
38
|
+
End Property
|
|
39
|
+
|
|
40
|
+
Public Property Set Pair(p, v)
|
|
41
|
+
If IsNull(p) Then p = Counter
|
|
42
|
+
If TypeName(v) <> "jsCore" Then
|
|
43
|
+
Err.Raise &hD, "class: class", "Incompatible types: '" & TypeName(v) & "'"
|
|
44
|
+
End If
|
|
45
|
+
Set Collection(p) = v
|
|
46
|
+
End Property
|
|
47
|
+
|
|
48
|
+
Public Default Property Get Pair(p)
|
|
49
|
+
If IsNull(p) Then p = Count - 1
|
|
50
|
+
If IsObject(Collection(p)) Then
|
|
51
|
+
Set Pair = Collection(p)
|
|
52
|
+
Else
|
|
53
|
+
Pair = Collection(p)
|
|
54
|
+
End If
|
|
55
|
+
End Property
|
|
56
|
+
' -- pair
|
|
57
|
+
Public Sub Clean
|
|
58
|
+
Collection.RemoveAll
|
|
59
|
+
End Sub
|
|
60
|
+
|
|
61
|
+
Public Sub Remove(vProp)
|
|
62
|
+
Collection.Remove vProp
|
|
63
|
+
End Sub
|
|
64
|
+
' data maluplation
|
|
65
|
+
|
|
66
|
+
' encoding
|
|
67
|
+
Function jsEncode(str)
|
|
68
|
+
Dim charmap(127), haystack()
|
|
69
|
+
charmap(8) = "\b"
|
|
70
|
+
charmap(9) = "\t"
|
|
71
|
+
charmap(10) = "\n"
|
|
72
|
+
charmap(12) = "\f"
|
|
73
|
+
charmap(13) = "\r"
|
|
74
|
+
charmap(34) = "\"""
|
|
75
|
+
charmap(47) = "\/"
|
|
76
|
+
charmap(92) = "\\"
|
|
77
|
+
|
|
78
|
+
Dim strlen : strlen = Len(str) - 1
|
|
79
|
+
ReDim haystack(strlen)
|
|
80
|
+
|
|
81
|
+
Dim i, charcode
|
|
82
|
+
For i = 0 To strlen
|
|
83
|
+
haystack(i) = Mid(str, i + 1, 1)
|
|
84
|
+
|
|
85
|
+
charcode = AscW(haystack(i)) And 65535
|
|
86
|
+
If charcode < 127 Then
|
|
87
|
+
If Not IsEmpty(charmap(charcode)) Then
|
|
88
|
+
haystack(i) = charmap(charcode)
|
|
89
|
+
ElseIf charcode < 32 Then
|
|
90
|
+
haystack(i) = "\u" & Right("000" & Hex(charcode), 4)
|
|
91
|
+
End If
|
|
92
|
+
Else
|
|
93
|
+
haystack(i) = "\u" & Right("000" & Hex(charcode), 4)
|
|
94
|
+
End If
|
|
95
|
+
Next
|
|
96
|
+
|
|
97
|
+
jsEncode = Join(haystack, "")
|
|
98
|
+
End Function
|
|
99
|
+
|
|
100
|
+
' converting
|
|
101
|
+
Public Function toJSON(vPair)
|
|
102
|
+
Select Case VarType(vPair)
|
|
103
|
+
Case 0 ' Empty
|
|
104
|
+
toJSON = "null"
|
|
105
|
+
Case 1 ' Null
|
|
106
|
+
toJSON = "null"
|
|
107
|
+
Case 7 ' Date
|
|
108
|
+
' toJSON = "new Date(" & (vPair - CDate(25569)) * 86400000 & ")" ' let in only utc time
|
|
109
|
+
toJSON = """" & CStr(vPair) & """"
|
|
110
|
+
Case 8 ' String
|
|
111
|
+
toJSON = """" & jsEncode(vPair) & """"
|
|
112
|
+
Case 9 ' Object
|
|
113
|
+
Dim bFI,i
|
|
114
|
+
bFI = True
|
|
115
|
+
If vPair.Kind Then toJSON = toJSON & "[" Else toJSON = toJSON & "{"
|
|
116
|
+
For Each i In vPair.Collection
|
|
117
|
+
If bFI Then bFI = False Else toJSON = toJSON & ","
|
|
118
|
+
|
|
119
|
+
If vPair.Kind Then
|
|
120
|
+
toJSON = toJSON & toJSON(vPair(i))
|
|
121
|
+
Else
|
|
122
|
+
If QuotedVars Then
|
|
123
|
+
toJSON = toJSON & """" & i & """:" & toJSON(vPair(i))
|
|
124
|
+
Else
|
|
125
|
+
toJSON = toJSON & i & ":" & toJSON(vPair(i))
|
|
126
|
+
End If
|
|
127
|
+
End If
|
|
128
|
+
Next
|
|
129
|
+
If vPair.Kind Then toJSON = toJSON & "]" Else toJSON = toJSON & "}"
|
|
130
|
+
Case 11
|
|
131
|
+
If vPair Then toJSON = "true" Else toJSON = "false"
|
|
132
|
+
Case 12, 8192, 8204
|
|
133
|
+
toJSON = RenderArray(vPair, 1, "")
|
|
134
|
+
Case Else
|
|
135
|
+
toJSON = Replace(vPair, ",", ".")
|
|
136
|
+
End select
|
|
137
|
+
End Function
|
|
138
|
+
|
|
139
|
+
Function RenderArray(arr, depth, parent)
|
|
140
|
+
Dim first : first = LBound(arr, depth)
|
|
141
|
+
Dim last : last = UBound(arr, depth)
|
|
142
|
+
|
|
143
|
+
Dim index, rendered
|
|
144
|
+
Dim limiter : limiter = ","
|
|
145
|
+
|
|
146
|
+
RenderArray = "["
|
|
147
|
+
For index = first To last
|
|
148
|
+
If index = last Then
|
|
149
|
+
limiter = ""
|
|
150
|
+
End If
|
|
151
|
+
|
|
152
|
+
On Error Resume Next
|
|
153
|
+
rendered = RenderArray(arr, depth + 1, parent & index & "," )
|
|
154
|
+
|
|
155
|
+
If Err = 9 Then
|
|
156
|
+
On Error GoTo 0
|
|
157
|
+
RenderArray = RenderArray & toJSON(Eval("arr(" & parent & index & ")")) & limiter
|
|
158
|
+
Else
|
|
159
|
+
RenderArray = RenderArray & rendered & "" & limiter
|
|
160
|
+
End If
|
|
161
|
+
Next
|
|
162
|
+
RenderArray = RenderArray & "]"
|
|
163
|
+
End Function
|
|
164
|
+
|
|
165
|
+
Public Property Get jsString
|
|
166
|
+
jsString = toJSON(Me)
|
|
167
|
+
End Property
|
|
168
|
+
|
|
169
|
+
Sub Flush
|
|
170
|
+
If TypeName(Response) <> "Empty" Then
|
|
171
|
+
Response.Write(jsString)
|
|
172
|
+
ElseIf WScript <> Empty Then
|
|
173
|
+
WScript.Echo(jsString)
|
|
174
|
+
End If
|
|
175
|
+
End Sub
|
|
176
|
+
|
|
177
|
+
Public Function Clone
|
|
178
|
+
Set Clone = ColClone(Me)
|
|
179
|
+
End Function
|
|
180
|
+
|
|
181
|
+
Private Function ColClone(core)
|
|
182
|
+
Dim jsc, i
|
|
183
|
+
Set jsc = new jsCore
|
|
184
|
+
jsc.Kind = core.Kind
|
|
185
|
+
For Each i In core.Collection
|
|
186
|
+
If IsObject(core(i)) Then
|
|
187
|
+
Set jsc(i) = ColClone(core(i))
|
|
188
|
+
Else
|
|
189
|
+
jsc(i) = core(i)
|
|
190
|
+
End If
|
|
191
|
+
Next
|
|
192
|
+
Set ColClone = jsc
|
|
193
|
+
End Function
|
|
194
|
+
|
|
195
|
+
End Class
|
|
196
|
+
|
|
197
|
+
Function jsObject
|
|
198
|
+
Set jsObject = new jsCore
|
|
199
|
+
jsObject.Kind = JSON_OBJECT
|
|
200
|
+
End Function
|
|
201
|
+
|
|
202
|
+
Function jsArray
|
|
203
|
+
Set jsArray = new jsCore
|
|
204
|
+
jsArray.Kind = JSON_ARRAY
|
|
205
|
+
End Function
|
|
206
|
+
|
|
207
|
+
Function toJSON(val)
|
|
208
|
+
toJSON = (new jsCore).toJSON(val)
|
|
209
|
+
End Function
|
|
210
|
+
%>
|