viewModel.on("beforeSave", function (args) { let promise = new cb.promise(); cb.utils.confirm( title: "是否保存?", okText: "修改", cancelText: "不修改", function () { if (true) { promise.reject(); } else { promise.resolve(); } }, function () { promise.reject(); return false; } ); return promise; });
标签:function,cb,保存,弹框,修改,promise,BIP From: https://www.cnblogs.com/LFxanla/p/17803546.html