zoukankan      html  css  js  c++  java
  • 微信小程序之 ----组件

    微信小程序导航 navigator
    open-type 属性
    navigate default 默认
    switchTab 切换页面
    redirect 当前页打开
    navigateBack 返回上一页
     
    媒体组件
    audio
    重要属性
    src ,loop ,controls ( poster(封面图片来源) ,name,author)
    重要事件
    binderror, bindplay,binderror ,bindpause
    bindtimeuodated (播放进度改变时触发) bindend (节目结束时触发)
     
     
     
    例子
    加载成功,创建一个audio对象
    onReady: function (e) {
    // 使用 wx.createAudioContext 获取 audio 上下文 context
    this.audioCtx = wx.createAudioContext('myAudio')
    },
     
    image图片组件
    重要属性
    src, mode , binderror, bindload
     
    video
    重要属性
    src, duration, controls, danmu-list ,danmu-btn,enable_danmu
    autoplay, loop ,muted, bindplay,bindpause,bindended,bindtimeupdate
    bindfullscreenchange,poster(外观封面)
     
     
    地图组件
    重要属性
    longitude , latitude, scale, markers , covers, polyline, circles, controls,
     
    bindmarkertap, bindcontroltap , bindtap, bindregionchange
     
     
     
    客户会话组件
    <contact-button
    type="defau;t_light"
    size="20"
    session-from="weapp"
    >
    </contact-button>

  • 相关阅读:
    Java设计模式:单例模式
    Java设计模式:工厂方法模式
    Ubuntu16.04上搭建CDH5.14集群
    Spark 消息通信架构
    spark性能优化之shuffle优化
    spark的性能优化
    Hbase 的 Compaction
    Hbase要掌握的内容
    yarn的架构及原理
    MapReduce工作原理
  • 原文地址:https://www.cnblogs.com/maomaochongchong/p/8341471.html
Copyright © 2011-2022 走看看