以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 这样写代码只能调用相机,但不能选相册添加照片? (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=187382) |
-- 作者:xluoping -- 发布时间:2023/7/13 15:03:00 -- 这样写代码只能调用相机,但不能选相册添加照片? 这样写代码只能调用相机,但不能选相册添加照片?要如何改? Select Case e.Path
Case "test.htm","" Dim wb As New weui wb.AddForm("","form1","test.htm") With wb.AddInputGroup("form1","ipg1","文件上传") \'文件上传 .AddUploader("up1","") End With With wb.AddButtonGroup("form1","btg1",True) .Add("btn1", "确定", "submit") End With wb.AppendHTML("<script>document.getElementById(\'up1\').setAttribute(\'capture\',\'camera\');document.getElementById(\'up1\').setAttribute(\'accept\',\'image/*\')</script>") e.WriteString(wb.Build) \'生成网页 End Select |
-- 作者:有点蓝 -- 发布时间:2023/7/13 15:10:00 -- 不要设置capture |