【问题标题】:which jquery event to use if I want to perform an action for render of the element every time?如果我想每次都为渲染元素执行一个动作,使用哪个 jquery 事件?
【发布时间】:2013-03-25 18:14:29
【问题描述】:

我正在尝试使用 jquery 插件。我在 ready() 函数中按照其标准初始化了插件。 现在,我想执行一些操作,例如每次由 jquery 创建此插件对象时显示一条短信。

我可以为此使用哪个 jQuery 事件?

我是 jquery 的新手,我在 jquery 文档中没有找到像“render”这样的事件。

$(document).ready(function() {
    $('#divId').pluginName({
       //specify elements in the plugin as per its docs
    }); 
}

【问题讨论】:

    标签: jquery events render


    【解决方案1】:

    有些插件内置了回调,但是如果不了解更多信息,几乎不可能为您提供帮助。您正在使用哪个插件以及您想要达到的最终结果是什么?

    【讨论】:

      猜你喜欢
      • 2020-10-06
      • 2018-01-02
      • 2021-10-21
      • 1970-01-01
      • 2018-09-09
      • 2021-07-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多