duanchi8112 2014-02-11 22:49
浏览 36
已采纳

动态表完全加载后调用JS函数

I've got a dynamic table which is loading on document.ready, it gets it's data using $.get from a PHP file, which gets the data from an SQL database.

I want to run tablesorter once the entire page has loaded, I've tried a few things suggested on the internet, including $.when(call $.get function), but none of them have worked.

Is there any way I could call the function after the table has fully loaded?

  • 写回答

1条回答 默认 最新

  • douruoshen1449 2014-02-11 22:54
    关注

    Maybe I am not understanding the question correctly, but shouldn't you just use the success callback of the $.get() function to process the data you retrieved from your PHP?

    There is also the .done() promise to check out as well.

    https://api.jquery.com/jQuery.get/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 正弦信号发生器串并联电路电阻无法保持同步怎么办
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序