换一种思路,比如:
Select Case e.Path
Case "test.htm"
Dim wb As New weui
wb.AddForm("","form1","test.htm")
With wb.AddInputGroup("form1","ipg1","")
.Attribute = "style=""margin-top:0px"""
.AddSwitch("i1","收藏图片1")
End With
With wb.AddArticle("form1","ar1")
.AddImage("./images/001.jpg")
End With
With wb.AddInputGroup("form1","ipg2","")
.Attribute = "style=""margin-top:0px"""
.AddSwitch("i2","收藏图片2")
End With
With wb.AddArticle("form1","ar2")
.AddImage("./images/003.jpg")
End With
With wb.AddButtonGroup("form1","btg1",True)
.Add("btn1", "确定", "submit")
End With
e.WriteString(wb.Build) '生成网页
End Select