Commit 18e494d5 authored by hbcui1984's avatar hbcui1984

列表式单选框增加取值示例

parent 6cc90c4d
...@@ -82,6 +82,9 @@ ...@@ -82,6 +82,9 @@
</a> </a>
</li> </li>
</ul> </ul>
<div class="mui-content-padded">
<p id="info"></p>
</div>
</div> </div>
</body> </body>
<script src="../js/mui.min.js"></script> <script src="../js/mui.min.js"></script>
...@@ -89,5 +92,10 @@ ...@@ -89,5 +92,10 @@
mui.init({ mui.init({
swipeBack:true //启用右滑关闭功能 swipeBack:true //启用右滑关闭功能
}); });
var info = document.getElementById("info");
document.querySelector('.mui-table-view.mui-table-view-radio').addEventListener('selected',function(e){
info.innerHTML = "当前选中的为:"+e.detail.el.innerText;
});
</script> </script>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment