我尝试了下面的脚本在主题中加载jQuery UI自动完成。但它不会加载它们的相关脚本。我该如何称呼它起作用。
wp_enqueue_script(\'jquery-ui-autocomplete\');
我认为下面的脚本是用于自动完成的jQuery UI相关脚本,但它不会加载。
<script type=\'text/javascript\' src=\'http://localhost/wordpress/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.10.2\'></script>
<script type=\'text/javascript\' src=\'http://localhost/wordpress/wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.10.2\'></script>
<script type=\'text/javascript\' src=\'http://localhost/wordpress/wp-includes/js/jquery/ui/jquery.ui.position.min.js?ver=1.10.2\'></script>
<script type=\'text/javascript\' src=\'http://localhost/wordpress/wp-includes/js/jquery/ui/jquery.ui.menu.min.js?ver=1.10.2\'></script>
<script type=\'text/javascript\' src=\'http://localhost/wordpress/wp-includes/js/jquery/ui/jquery.ui.autocomplete.min.js?ver=1.10.2\'></script>