今天折腾了一个小时获取这个信息
With wb.AddInputGroup("form1","ipg1")
.AddInput("Account","户名","text")
.AddInput("Password","密码","password")
End With
然后
If e.PostValues.ContainsKey("Account") AndAlso e.PostValues.ContainsKey("Password") Then
messagebox.show(1)
End If
总是获取不到
后来我发现,这个传递过去的Input控件的ID不是Account了,而是account了
If e.PostValues.ContainsKey("account") AndAlso e.PostValues.ContainsKey("password") Then
messagebox.show(1)
End If
这样就行了。
然后我发现帮助文档的参考代码里那些Weui控件都用小写做ID。
我只记得说过JS要严格区分大小写,没听说大小写的控件ID会自动变小写