search

Home  >  Q&A  >  body text

javascript - How to remove mouseEnter event?

Element-ui is used in the vue project. There is an overflow-tooltip attribute in the table component and a default mouseEnter event. What should I do if I want to remove it? Writing a new mouseEnter event to prevent bubbling is useless

淡淡烟草味淡淡烟草味2721 days ago876

reply all(2)I'll reply

  • 漂亮男人

    漂亮男人2017-06-14 10:55:28

    Reassign the method called by the mouseEnter event of the table default component, which solves the problem in disguise. . Conclusion

    reply
    0
  • 代言

    代言2017-06-14 10:55:28

    You can also use addeventlisner removeeventlisner in js to add and remove event binding

    reply
    0
  • Cancelreply