控件:Web 网页

引擎版本:仅支持 Android v3.1.3,iOS v3.0.6 及其以上版本

一共有三种属性:控件类型 type、浏览器 url、高度 height

参数 类型 必填 说明 默认值
type string 控件类型:Web -
url string 浏览器地址 -
height number 控件高度 iOS 默认为 144 像素,Android 默认为 70 像素

函数示例

local ts = require("ts")
local cjson = ts.json
w,h = getScreenSize();
MyTable = {
    ["style"]  = "default",    
    ["width"] = w,          
    ["height"] = h,            
    ["cancelname"] = "取消",  
    ["okname"] = "开始", 
    ["title"] = "居中自定义字号",
    ["titlealign"] = "center",
    ["align"] = "center",
    ["titlesize"] = 12,  
    ["titles"] = "图片,第二页", 
    ["pagetype"]= "multi",  
    ["selpage"] = 1,   
    ["orient"] = 0, 
    ["btnbkcolor"] = "255,255,255",         
    ["bgcolor"] = "255,255,255",
    ["pagenumtype"] = "tab", 
    ["config"] = "showuiTest1.txt",  
    ["timer"] = 99,  
    ["rettype"] = "table",   
    pages            =
    {
        {
            {
                ["type"]= "Web",
                ["url"]= "http://www.touchsprite.com/",
                ["height"]= 600,
            },
        }
    }   
}

local MyJsonString = cjson.encode(MyTable);
UIret,values = showUI(MyJsonString)
Copyright 北京帮你玩科技有限公司 2020 all right reserved,powered by Gitbook该文章修订时间: 2020-09-27 12:37:30

results matching ""

    No results matching ""