1. 程式人生 > >dcloud------mui 點選底部選項卡,獲取文字內容

dcloud------mui 點選底部選項卡,獲取文字內容

<nav class="mui-bar mui-bar-tab">
<a id="defaultTab" class="mui-tab-item mui-active" >
<span class="mui-icon mui-icon-home"></span>
<span class="mui-tab-label">首頁</span>
</a>
<a class="mui-tab-item" id="message">
<span class="mui-icon mui-icon-email"><span class="mui-badge">9</span></span>
<span class="mui-tab-label">訊息</span>
</a>
<a class="mui-tab-item"  id="phonenumber">
<span class="mui-icon mui-icon-contact"></span>
<span class="mui-tab-label">通訊錄</span>
</a>
<a class="mui-tab-item" href="#" id="setting">
<span class="mui-icon mui-icon-gear"></span>
<span class="mui-tab-label">設定</span>

</a>
</nav>