0

我应该如何重构脚本:

  swangular.confirm("Are you sure?", {
            showCloseButton: true,
            showCancelButton: true
        }).then((result) => {
            if (result.value) {
                console.log("confirm");
            } else {
                console.log("cancel");
            }
          }
        );

与 ES5 兼容?

目前我收到:Unexpected token: operator (>)在'then'代码块内。

4

0 回答 0