微信小程序之 ----组件

微信小程序导航 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>