Nic*_*ver 67
你可以用这个:
$.fn.jquery
//or if you're using .noConflict():
jQuery.fn.jquery
Run Code Online (Sandbox Code Playgroud)
它在jQuery构建时自动更新,在此处定义:http://github.com/jquery/jquery/blob/master/src/core.js#L174
确保使用$.fn.property
不依赖于对象的属性,没有理由创建不需要的jquery对象,$().property
除非您打算使用它:)
use*_*716 12
我不确定它存在多少个jQuery版本,但是jQuery对象有一个jquery
存储版本的属性.
alert( $().jquery );
Run Code Online (Sandbox Code Playgroud)
1.4.2
如果您使用该版本,将发出警报.
Fai*_*sal 11
$().jquery; // yields the string "1.4.2", for example
Run Code Online (Sandbox Code Playgroud)
资料来源:http://jquery-howto.blogspot.com/2009/02/how-to-check-jquery-version.html
归档时间: |
|
查看次数: |
30626 次 |
最近记录: |