什么是触发器"liszt:updated"?在jQuery中? [英] What is trigger "liszt:updated" in jQuery?

查看:460
本文介绍了什么是触发器"liszt:updated"?在jQuery中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里关注答案: 带有链式插件并选择框的jQuery的选择插件

I was following the answer here: Jquery's Chosen plugin with Chained plugin and select box

我发现我不遵循的那行-因为我不明白'liszt:updated'是什么意思-我在网上找不到很多对此进行解释的参考.

And I found a line that I just don't follow - as I don't understand what 'liszt:updated' means - I can't find many references to this online to explain.

具体在代码中:

 $("#budget").trigger("liszt:updated");

jQuery中的'liszt:updated'是什么意思?

What does 'liszt:updated' in jQuery mean?

推荐答案

liszt:updated只是一个自定义事件,选择当时正在使用.这不是标准事件,因此您不会在网络上找到任何有关它的信息.

liszt:updated is just a custom event that Chosen was using at the time. It is not a standard event, so you won't find anything on the web about it.

此外,Chosen本身不再使用该事件名称(现在使用的是chosen:updated),这将使查找该事件的引用变得更加困难.

Moreover, Chosen itself doesn't use that event name any more (they're using chosen:updated now ), which would make it even more difficult to find any references to it.

请参阅此处: 如何使用jQuery重置jquery选择的选项? .

See here: How do I reset a jquery-chosen select option with jQuery?.

这篇关于什么是触发器"liszt:updated"?在jQuery中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆