You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var button = {
url: '/button',
className: 'button',
render: function () {
//使用JQuery deferred对象
var d = $.Deferred();
$.ajax(...).done(function( data ){
var html = ejs.render($('#tpl_button').html(),{data:data});
d.resolve(html);
});
return d.promise();
}
};
是不是可以写成这样
The text was updated successfully, but these errors were encountered: