问题
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:
- jQuery library
- Tablesorter plugin
- 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