Foxtable(狐表)用户栏目专家坐堂 → AddInput输入框如何进行正则判断


  共有6031人关注过本帖树形打印复制链接

主题:AddInput输入框如何进行正则判断

帅哥哟,离线,有人找我吗?
304376480
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:小狐 帖子: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

 回到顶部