Uncaught TypeError: jQuery(…).tablesorter is not a function

喜你入骨 提交于 2019-12-01 13:18:24

问题


I have a typo3 plugin hat works fine in typo3 6.2.31 now I migrate to 7.6.23. I have several problems with jQuery libraries. I often got this error:

Uncaught TypeError: jQuery(...).tablesorter is not a function

Or

Uncaught TypeError: $(...).tablesorter is not a function

The library is loaded correctly. Is there a way to fix this issue? Thanks.


回答1:


Check that there is a loaded tablesorter plugin first before the tyop3 plugin, sounds like ideal sort order would be:

  1. jQuery library
  2. Tablesorter plugin
  3. Typo3 plugin



回答2:


A working solution is:

TYPO3.jQuery(".table.sortable").tablesorter();


来源:https://stackoverflow.com/questions/46583930/uncaught-typeerror-jquery-tablesorter-is-not-a-function

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!