does your theme have <?php wp_footer(); ?> at the end of the page ?
<?php wp_footer(); ?>
未经允许不得转载!wordpress wp_enqueue_script $in_footer=false失效