检查页面并相应地将脚本排队:
global $pagenow;
if (! empty($pagenow) && (\'post-new.php\' === $pagenow || \'post.php\' === $pagenow ))
add_action(\'admin_enqueue_scripts\', \'enqueue_my_scripts\');
function enqueue_my_scripts() {
wp_enqueue_script(...);
} // function enqueue_my_scripts