在Wordpress中从googleajax库API加载jQuery
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Wordpress中从googleajax库API加载jQuery相关的知识,希望对你有一定的参考价值。
Place the following code in header.php before the call to wp_head().(If you do not include the exact version number when calling libraries from Google's AJAX Libraries API, a redirect is used to pull up the most current version. While this is handy, it prevents browsers from caching the script: effectively negating one of the major reasons for using Google's AJAX Libaries API.)
<?php wp_deregister_script('jquery'); wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js', false, '1.4.0'); wp_enqueue_script('jquery'); ?> <?php wp_head(); ?>
以上是关于在Wordpress中从googleajax库API加载jQuery的主要内容,如果未能解决你的问题,请参考以下文章
如何在 Docker 容器中从 WordPress(联系表格)发送电子邮件?