有没有办法更新 jgrowl 消息?
有没有办法使用 jgrowl(或任何其他咆哮如弹出窗口)来更新消息,如果它尚未被删除,并且如果它已被删除,只需像平常一样添加它?
Is there a way using jgrowl(or any other growl like popup) to update a message if it hasn't been removed yet and if it has been removed just simply add it like normal?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想我发现了一些改变,可以用 jgrowl 做我想做的事情。 http://www.moonlitscript.com/post.cfm/jgrowl-modification
I think I found some changes that will make it possible to do what I want with jgrowl. http://www.moonlitscript.com/post.cfm/jgrowl-modification
我认为一种更简单的方法是创建一个函数来查找咆哮声中的文本,然后将其删除,而不是修改插件。我已经测试了下面的代码,它可以工作,并且似乎不会导致插件出现任何问题。
该函数将根据咆哮的内容删除咆哮。
如果您只想针对咆哮的标题,请按如下方式修改:
Instead of modifying the plugin, I think an easier way would be to make a function to find text inside the growl, then remove it. I've tested the code below, it works and it doesn't appear to cause any problems with the plugin.
This function will remove the growl based on it's contents
If you only want to target the header of the growl, then modify it as follows: