H5 - 侧滑效果实现

demo 地址: https://github.com/iotjin/JhAPICloud_iOS

H5 - 侧滑效果实现_第1张图片

APICloud 跳到侧滑界面父界面的方法:openDrawerLayout
APICloud 弹出侧滑界面方法: openDrawerPane
APICloud 关闭弹出的侧滑界面: closeDrawerPane

cehua.html 是承载侧滑界面的父页面,cehua_right.html是要弹出的侧滑界面

api.openDrawerLayout({
    name: 'cehua',
    url: './cehua.html',
    animation: {
        type: 'push'
    },
    rightPane: {
        name: 'cehua_right',
        url: './cehua_right.html',
    }
});

cehua.html




    
    
    
    侧滑承载界面
    
    
    

    

    
      

    

    
    


cehua_right.html





    
    
    
    侧滑
    
    
    





    

    

标题

这是标题

你可能感兴趣的:(APICloud,H5)