加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angularjs – “关闭”一个模态和“关闭”一个模态在Angular UI-

发布时间:2020-12-17 09:02:04 所属栏目:安全 来源:网络整理
导读:“关闭”模态和“关闭”模态之间的区别是什么? close(result) - a method that can be used to close a modal,passing a resultdismiss(reason) - a method that can be used to dismiss a modal,passing a reason 答案在文档中,紧接着你引用的两行: The
“关闭”模态和“关闭”模态之间的区别是什么?
close(result) - a method that can be used to close a modal,passing a result
dismiss(reason) - a method that can be used to dismiss a modal,passing a reason
答案在文档中,紧接着你引用的两行:

The open method returns a modal instance,an object with the following properties:

  • close(result) – a method that can be used to close a modal,passing a result
  • dismiss(reason) – a method that can be used to dismiss a modal,passing a reason
  • result – a promise that is resolved when a modal is closed and rejected when a modal is dismissed

这里的重要位置是承诺发生了什么。关闭,承诺被解决 – 本质上,“成功”回调触发。在关闭时,promise被拒绝,因此运行“failure”回调。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读