WordPress - 需要修复functions.php中的入队脚本

时间:2017-02-08 09:18:57

标签: wordpress

如何在functions.php中将此特定脚本排入队列?



<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js" integrity="sha384-mE6eXfrb8jxl0rzJDBRanYqgBxtJ6Unn4/1F7q4xRRyIw7Vdg9jP4ycT7x1iVsgb" crossorigin="anonymous"></script>
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

function enqueue_my_scripts() {
wp_enqueue_script( 'jquery', 'https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js', array('jquery'), '1.3', true); 

}
add_action('wp_enqueue_scripts', 'enqueue_my_scripts');

你能试试吗