加好友 发短信
等级:小狐
帖子:339
积分:3766
威望:0
精华:0
注册:2017/9/7 15:20:00
|
AddInput输入框如何进行正则判断 Post By:2022/9/19 10:51:00 [显示全部帖子]
老师您好!
像这样的例子,我如何用正则表达式判断 AddInput输入框的值?如果不正确就不能点确定,并提示错误?
Select
Case e.Path Case
"test.htm" Dim wb As New weui wb.AddForm("","form1","test.htm") With wb.AddInputGroup("form1","ipg1","登录") .AddInput("xm","户名","text") .AddInput("pw","密码","password") End
With
With wb.AddButtonGroup("form1","btg1",True) .Add("btn1", "确定", "submit") End
With
e.WriteString(wb.Build)
'生成网页 End
Select
|
|