zoukankan      html  css  js  c++  java
  • python全栈开发day118-Mui

    1.什么是Mui

      Mui是前端布局框架

      封装了HTML5PLUS

      HTML5PLUS是移动操作系统的调用接口

    2.Mui代码块,用于快速构建Mui组件

      1).打开一个窗口

       Mui.openWindow({

         url:"index.html",

        id:"index.html",

        styles:{

          top:0px,

          bottom:50px  # 页面布局

          }

        extras:{

          user_id:1 # 页面参数

          }

        })

      2).获取页面参数

        plusReady(function(){

        var Sdata = plus.webview.currentWebview()

          Sdata.user_id # 获取页面参数

        })

      3). mui.fire # 跨页面传参

        web = plus.webview.getWebviewById("index.html")   # 获取要操作页面对象,HBuilder是主页面的id

        mui.fire(web,"hello",{talk,'你好'})

        document.addEventListener("hello",function(data){

          data.detail # {talk:"你好"}

          data.detail.talk

        })

       4). mui.post({

        url,{user_id:1},function(data){}

        })

  • 相关阅读:
    Django-ORM
    Django-路由系统
    Django-(Request对象和Response对象)
    Django-(CBV和FBV)
    批量设置模板中的时间格式
    Django模板语言-(母板、组件、静态文件相关、simple_tag、inclusion_tag)
    yii2csrf攻击
    centos6更改密码
    ide vscode安装
    xshell配色方案
  • 原文地址:https://www.cnblogs.com/wuchenggong/p/9810535.html
Copyright © 2011-2022 走看看