Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在一个人为的聊天应用程序中,我通过phx-hook. 添加聊天后,笑脸还在:
phx-hook
但是,删除聊天后,笑脸消失了:
我怎样才能防止它消失?
它可以通过添加phx-update="ignore"到其内容由 JavaScript 生成的 div 来修复:
phx-update="ignore"
<div id="smiley" style="font-size: 80px" phx-hook="Smiley" phx-update="ignore"></div>