Select Case e.Path Case "test.htm", "" Dim wb As New WeUI With wb.AddButtonGroup("","bng2",True) .Add("btn1","Dialog1").Attribute = """ End With With wb.AddDialog("","dlg1", "提示","<p>请输入值<p><input name='test' id='test'/>") .AddButton("btnOK","确定").Attribute = """ End With e.WriteString(wb.Build) '生成网页 End Select