从检查jQuery对象获取jQuery版本 [英] Get jQuery version from inspecting the jQuery object

查看:137
本文介绍了从检查jQuery对象获取jQuery版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法通过检查 jQuery 对象找出正在使用的jQuery版本? jQuery动态地添加到我的页面,我在我的标记中看不到任何对它的引用。如果我在浏览器的控制台中检查它,那就在那里。

Is there a way to find out what version of jQuery is being used by inspecting the jQuery object? jQuery is dynamically getting added to my page and I cannot see any reference to it in my markup. If I inspect it in my browser's console, its there.

推荐答案

你可以使用 $()。jquery; $。fn.jquery 将返回包含版本号的字符串,例如 1.6.2

这篇关于从检查jQuery对象获取jQuery版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆