var dialog = new Dialog({ title: '购物车', type: 'url', width: 520, content: "Uplolo.aspx", showTitle: true, modal: true, onLoad: function () { var self = this; var div = this.getDialogObj(); $(div).delegate(".close", "click", function () { self.close(); return false; }); } }); dialog.show();