在我的自定义主题中,为该主题添加了新样式:
function eb_theme_assets(){
wp_enqueue_style('style', get_stylesheet_uri());
wp_enqueue_style('reset', get_template_directory_uri().'/css/reset.css', array(), '1.0.0', 'all');
wp_enqueue_style('imageview', get_template_directory_uri().'/css/imageview.css', array(), '', 'all');
wp_enqueue_style('ebstyle', get_template_directory_uri().'/css/ebstyle.css', array(), '1.0.0', 'all');
wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js', array('jquery'));
wp_enqueue_script('montage', get_template_directory_uri().'/js/montage.min.js', array('jquery'));
wp_enqueue_script('photoView', get_template_directory_uri().'/js/imageview.js', array('jquery'));
wp_enqueue_script('ebfunctions', get_template_directory_uri().'/js/functions.js', array('jquery'));
wp_enqueue_script('ebjquery', get_template_directory_uri().'/js/ebjquery.js', array('jquery')); // ture/false --> footer/header
wp_enqueue_script( 'jquery-ui-sortable' );
}
然后在浏览器控制台中出现此错误:
Uncaught RangeError: Maximum call stack size exceeded
at String.replace (<anonymous>)
at fa (jquery.js:2)
at ta (jquery.js:2)
at jquery.js:2
at f (jquery.js:2)
at fa.select (jquery.js:2)
at Function.fa (jquery.js:2)
at Function.a.find (jquery-migrate.min.js:2)
at a.fn.init.find (jquery.js:2)
at a.fn.init.a.fn.find (jquery-migrate.min.js:2)
怎么了?