-2
我有問題,插件tablesorter顯然我的系統沒有識別函數coo存在,不知道它是否可能與其他JavaScript(我'在wordpress插件中進行更改)。
下面是我的代碼:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="jquery.tablesorter.js"></script>
<script type="text/javascript">
(function($) {
$('table').tablesorter();
})(jQuery);
</script>
我改變我打電話js文件
<?php
wp_register_script('jquery.tablesorter.js', get_bloginfo('template_url').'/js/jquery.tablesorter.js');
wp_enqueue_script('jquery.tablesorter.js');
?>
你確定jquery.tablesorter.js的路徑是正確的嗎? –
@JayBlanchard是的,我可以使用瀏覽器的源代碼訪問.js – gabrielbuzzi
看看您的網絡開發工具的網絡標籤,例如螢火蟲。所有資源是否正確加載? – iappwebdev