以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  移动开发,图片显示,怎么用绝对路径?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=97284)

--  作者:yjf123
--  发布时间:2017/3/9 10:59:00
--  移动开发,图片显示,怎么用绝对路径?

移动开发,图片显示,怎么用绝对路径?

 

Dim fl As String = "d:\\web\\" & e.path
If
filesys.FileExists(fl)
    Dim idx As Integer = fl.LastIndexOf(".")
    Dim ext As String  = fl.SubString(idx)
    Select Case ext
        Case ".jpg",".gif",".png",".bmp",".wmf",".js",".css" ,".html",".htm",".zip",".rar"
            e.WriteFile(fl)
            Return
\'这里必须返回
    End
Select
End
If
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(
"地点","地点","text").Value = "蒙古草原"
            .AddInput(
"日期","日期","date").value = #10/12/2012#
            With .AddUploader("up1","",True)
                .AllowAdd = False
\'关闭文件上传功能
                .AddImage("./images/001.jpg")
                .AddImage("./images/002.jpg")
                .AddImage("./images/003.jpg")
                .AddImage("./images/004.jpg")
                .AddImage("./images/005.jpg")
                .AddImage("./images/006.jpg")
                .AddImage("./images/007.jpg")
                .AddImage("./images/008.jpg")
                .AddImage("./images/009.jpg")
                .AddImage("./images/010.jpg")
                .AddImage("./images/011.jpg")
                .AddImage("./images/012.jpg")
            End With
        End With
       
e.WriteString(wb.Build) \'生成网页
End
Select


--  作者:有点蓝
--  发布时间:2017/3/9 11:38:00
--  
.AddImage("c:/xxx目录/images/001.jpg")
--  作者:bzfc57
--  发布时间:2017/3/20 17:05:00
--  
绝对路径就是用不了呀
--  作者:狐狸爸爸
--  发布时间:2017/3/20 17:10:00
--  
.AddImage("/images/001.jpg")

好好看看:
http://www.foxtable.com/mobilehelp/scr/0044.htm