以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]引用MUI的问题  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=113900)

--  作者:智友软件工作室
--  发布时间:2018/1/25 8:38:00
--  [求助]引用MUI的问题
MUI帮助地址:
http://dev.dcloud.net.cn/mui/ui/
MUI有关框架:
 下载信息  [文件大小:   下载次数: ]
点击浏览该文件:web.zip
目的:测试如何引用“按钮”
<button type="button" class="mui-btn">默认</button>
<button type="button" class="mui-btn mui-btn-primary">蓝色</button>
<button type="button" class="mui-btn mui-btn-success">绿色</button>
<button type="button" class="mui-btn mui-btn-warning">黄色</button>
<button type="button" class="mui-btn mui-btn-danger">红色</button>
<button type="button" class="mui-btn mui-btn-royal">紫色</button> 
有关问题或者疑问:
1、上述代码如何与狐表相结合
2、能否类似于官方提供的WEUI这样引用,因为这里比较好理解
        Dim wb As New weui
        wb.AddForm("","form1","test.htm")
        With wb.AddButtonGroup("form1","btg1",True)  
\'垂直排列
            .Add("btn1"
"
按钮")
            .Add("btn4"
"
按钮""reset")
            .Add("btn5"
"
按钮", "", "http://www.foxtable.com"\'单击这个按钮可以打开foxtable主页
        End With

[此贴子已经被作者于2018/1/25 8:41:59编辑过]

--  作者:有点甜
--  发布时间:2018/1/25 8:46:00
--  

做一个mui的项目设计好可以正常显示的html文件,然后拷贝到foxtable显示

 

http://www.foxtable.com/mobilehelp/scr/0020.htm

 


--  作者:有点甜
--  发布时间:2018/1/25 8:49:00
--  
先完成2楼的操作显示网页,所谓结合foxtable,无非就是用foxtable写代码最终合成一个类似html的文件内容而已。
--  作者:智友软件工作室
--  发布时间:2018/1/25 8:52:00
--  
还有一个疑问:如果要是用狐表来写网页代码的话
网页中的每一行代码都要按照下面的形式来做吗?
    Dim sb As New StringBuilder
    sb.AppendLine("<!doctype html>")
    sb.AppendLine("<html>")
    sb.AppendLine("<head>")
    sb.AppendLine("<meta charset=\'utf-8\'>")
    sb.AppendLine("<title>jQuery测试</title>")
    sb.AppendLine("<script src=\'http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js\'></script>"\'引入jQuery库
    sb.AppendLine("<script src=\'./lib/test.js\'></script>"\'引入本地库
    sb.AppendLine("</head>")
    sb.AppendLine("<body>")
    sb.AppendLine("<button>开始动画</button><br/><br/>")
    sb.AppendLine("<div style=\'background:#98bf21;height:100px;width:100px;position:absolute;\'>")
    sb.AppendLine("</body>")
    sb.AppendLine("</html>")
    e.WriteString(sb.ToString)

--  作者:有点甜
--  发布时间:2018/1/25 9:08:00
--  

基于html文件,再处理,这样简单一些。

 

Dim str As String = FileSys.ReadAllText("d:\\test.htm", encoding.default)
str = str.replace("[内容1]", "123456")
str = str.replace("[内容2]", "abc")


 

最后把得到的str输出显示即可。

[此贴子已经被作者于2018/1/25 9:08:36编辑过]

--  作者:智友软件工作室
--  发布时间:2018/1/25 10:49:00
--  
官方有没有计划把mui或者其他的第三方框架改造成类似帮助里面weui的计划??
--  作者:有点甜
--  发布时间:2018/1/25 10:52:00
--  

 没有。你直接像5楼那样用,也很简单吧?

 

 或者是像4楼那样,或者用wb.insertHTML http://www.foxtable.com/mobilehelp/scr/0097.htm