一般我在写一个函数的时候,可能需要一个回调函数,例如: function loadQtipCode(dom, title, content, width, showcb, hidecb) { $(dom).qtip({ content: { title: { text: title, button: true }, text: content }, position: { my: 'center', at: 'center', target: $(window) }, show: { event…