这是两个事件 popup把cb传入 popupHide事件中function popup(title, content, cb, leftText) { var _html ='<span class="mui-popup-button" onclick="popupHide(' + cb + ')">' + lText + '</span>'
}function popupHide(cb){ typeof cb === 'function' && cb();
}然后我执行并把$(this)传入后报了个 Uncaught ReferenceError: _this is not defined$('body').on('tap', '.removeNumber', function () { var _this = $(this);
api.popup('title', 'center', function () { console.log(_this); //deleteCard(_this)
})
});
添加回答
举报
0/150
提交
取消