这样写代码只能调用相机,但不能选相册添加照片?要如何改?
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