Home  >  Q&A  >  body text

angular.js - 请问AngularJS popover 如何关闭非目标对象popover浮动层


如图所示,怎么样关闭上次点击打开的popover浮动层

阿神阿神2735 days ago576

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-15 17:00:46

    Suggestion:
    Each prompt will generate a p container with class popover, so you only need to bind a click event on the body to destroy the p with class popover. It is worth noting that the bubbling of the click event of the target object must be cancelled.

    Reference

    reply
    0
  • Cancelreply