以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 求助 weui 图片字段保存时 必填用什么方式 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=190815) |
-- 作者:夜点蚊香 -- 发布时间:2024/3/6 7:55:00 -- 求助 weui 图片字段保存时 必填用什么方式 求助 weui 图片字段保存时 必填用什么方式 Select
Case e.Path
Case "test.htm" Dim wb As New weui wb.AddForm("","form1","test.htm") With wb.AddInputGroup("form1","ipg1","客户资料") .AddInput("姓名","姓名","Text").value = "舒淇" .AddInput("年龄","年龄","number").Value = "28" .AddInput("日期","日期","date").value = #10/12/2012# With .AddUploader("up1","照片",True) .TextPosition = 0 \'标题靠左 End With End With With wb.AddButtonGroup("form1","btg1",True) .Add("btn1", "确定", "submit") End With e.WriteString(wb.Build) \'生成网页 End Select |
-- 作者:有点蓝 -- 发布时间:2024/3/6 8:34:00 -- 方法1、接收的时候判断是否有文件 2、在标题提示,比如 .AddInput("日期(必填)","日期","date").value = #10/12/2012# With .AddUploader("up1","照片(必填)",True) |