plus.webview.create 使用方法


plus.webview.create(
    "xxx.html", //打開頁面地址
    "xxx", //打開頁面id值
    { //窗口樣式
        width: '100%', 
        height: '100%', 
        left: '0px', 
        right: '0px',
        top: '0px', 
        bottom: '0px',
        zindex: 0,
        margin: 'auto',
        background: '', 
        opacity: 1, 
        mask: 'none', //窗口的遮罩.用於設置Webview窗口的樣式,
        bounce: 'vertical', //窗口遇到邊框是否有反彈效果.none:沒有反彈效果.vertical:垂直方向有反彈效果.horizontal:水平方向有反彈效果.all:垂直和水平方向都有反彈效果.默認:none.
        bounceBackground: '', 
        popGesture: 'close', 
        scrollIndicator: 'none', 
        scrollsToTop: true, 
        scalable: false,
        softinputMode: '',
        statusbar: {
            background: '#fff'
        }, 
        subNViews: [ 
            {
                id: '', 
                type: '', 
                styles: {
                    backgroundColor: '', 
                    bottom: '', 
                    dock: '',
                    height: '', 
                    width: '',
                    top: '',
                    left: '',
                    opacity: '',
                    position: '',
                    statusbar: {
                        background: '',
                    }
                }
            }
        ],
        titleNView: {
            autoBackButton: '', 
            backgroundColor: '', 
            buttons: [ 
                {
                    color: '', 
                    colorPressed: '', 
                    float: '', 
                    fontWeight: '',
                    fontSize: '',
                    fontSrc: '', 
                    onclick: '', 
                    text: ''
                }
            ],
            coverage: '', 
            progress: { 
                color: '', 
                height: '', 
            },
            splitLine: {
                color: '',
                height: '',
            },
            titleColor: '',
            titleOverflow: '',
            titleText: '',
            titleSize: '',
            type: ''
        },
        transition: { 
            property: 'all',
            duration: '0',
            timingfunction: 'ease-in-out',
        },
        transform: { 
            property: 'all',
            duration: '0',
            timingfunction: 'ease-in-out', 
        },
        position: '', 
        errorPage: 'none',
        additionalHttpHeaders: {},
        animationOptimization: 'auto',
        cachemode: 'default', 
        backButtonAutoControl: 'close', 
        blockNetworkImage: false,
        decelerationRate: 0.989,
        dock: 'top',
        replacewebapi: { 
            geolocation: "auto" 
        },
        hardwareAccelerated: '',
        kernel: 'UIWebview',
        plusrequire: 'normal', 
        render: 'onscreen', 
        videoFullscreen: 'auto', 
    }
);


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM