search

Home  >  Q&A  >  body text

angular.js - How to close the non-target object popover floating layer in AngularJS popover


As shown in the picture, how to close the popover floating layer opened by the last click

阿神阿神2835 days ago635

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