Set y = x.codeobject.aa(arr1) Set z = x.codeobject.aa(arr2) Set m = y.concat(z) For Each mm In m
If InStrRev(m, mm) = InStr(m, mm) Then arr3.push mm Next
MsgBox arr3 End Sub
其他的强大的数组功能 Sub Mytest()
Set sp1 = CreateObject(\ sp1.Language = \
s = \ '顺序 sp1.AddCode s
aa = Array(\张\王\李\赵\钱\孙\周\吴\郑\王\
Set bb = sp1.codeobject.sortarr(aa)
bb.push (\直接添加到数组末尾,不再需要重定义 MsgBox bb
bb.unshift (\直接添加到数组开头,不再需要重定义 MsgBox bb
bb.pop '删除最后一个元素 MsgBox bb
bb.shift '删除最前一个元素
MsgBox bb
bb.splice 2, 3, \直接替换数组 MsgBox bb End Sub
Sub tst004()
Set objIE = CreateObject(\
With objIE
.Navigate \
.Visible = 1 End With
Do While objIE.Busy = True DoEvents Loop
objIE.Document.Write \
End Sub
Sub tst004()
Set ie = CreateObject(\With ie
.Navigate \
.Visible = 1 End With
Do While ie.Busy = True DoEvents Loop
ie.document.write \abcd(){alert('你输入的是: '+document.F1.T1.value);};