我想在 durandal.js 中添加确认框
我写了以下代码,但它没有返回是或否
define(['services/logger', 'durandal/plugins/router', 'durandal/app'], function (logger, router, app) {
if (app.showMessage('Are you sure you want to delete :' + titlename + '?', 'Delete Confirmation', ['Yes', 'No'])) {
DeleteAchievement(self, obj.Soid)
}