[英]How can I find out what jQuery version I’m using?
My page loads jQuery.我的页面加载 jQuery。 Is there any way to find out which version of jQuery that is?
有没有办法找出哪个版本的jQuery?
You can use either $().jquery;
您可以使用
$().jquery;
or $.fn.jquery
或
$.fn.jquery
Which will return a string containing the version number, eg 1.6.2.这将返回一个包含版本号的字符串,例如 1.6.2。
只需打开 Chrome 控制台或 Firebug 并在页面中输入
$().jquery;
你可以做:
alert($().jquery);
您可以使用以下方法了解版本:
jQuery.fn.jquery
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.