mui页面交互
1.頁面a準(zhǔn)備函數(shù)
function hideBackBtn() {// $('.menua').removeClass('mui-icon-back').addClass('mui-icon-bars');$('.mui-icon-back').hide();$('.mui-icon-bars').show();$('.adda').show();}window._indexPage.hideBackBtn = hideBackBtn;2.頁面b執(zhí)行函數(shù)
function addItem() {var title = $.trim($('#addTitle').val());var content = $.trim($('#addContent').val()).replace(/\n/g, '<br/>');if (!title) {qiao.h.alert(' text ');} else {qiao.h.getPage('add').hide();qiao.h.indexPage().evalJS('window._indexPage.hideBackBtn()');resetPage();qiao.h.fire('list', 'addItem', {title: title,content: content});} }
轉(zhuǎn)載于:https://www.cnblogs.com/tongbiao/p/9946914.html
《新程序員》:云原生和全面數(shù)字化實踐50位技術(shù)專家共同創(chuàng)作,文字、視頻、音頻交互閱讀總結(jié)
- 上一篇: Springsecurity之Authe
- 下一篇: [转]bootstrap table 动