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

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

相關文章
相關標籤/搜索