我已经构建了一个基于jQuery的Wordpress插件,我正在使用wp_enqueue_script(\'jquery\');
让一切顺利。
假设Wordpress加载的jQuery的默认版本是1.7.2,如果用户基于不同版本的jQuery安装主题,会发生什么情况?
- What version of jQuery will run in the page where the plugin is called: jQuery的默认版本(我使用的是wp_enqueue_脚本(\'jQuery\'))还是主题中调用的jQuery版本?
- I can\'t figure out what version of jQuery will be used if a page includes multiple plugins and if each one of theme uses a different of jQuery? 一切都会混乱,最终导致冲突吗?
谢谢你的帮助