标签:function move java title page div item highlight addclass
1.页面a准备函数
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执行函数
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 }); } }
标签:function move java title page div item highlight addclass
原文地址:https://www.cnblogs.com/tongbiao/p/9946914.html