我想对象main.children('div.tip-model-btn').click传入这个close方法,怎么弄呢?
1 回答

蝴蝶不菲
TA贡献1810条经验 获得超4个赞
var myModal = {
// ...
show: function(title) {
var self = this;
// ...
main.children('div.tip-model-btn').click(function () {
self.close();
// ...
});
}
close: function () {
// ...
}
}
添加回答
举报
0/150
提交
取消