• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • jquery

    一个包含了jQuery版本号的字符串。

    jquery

    .jquery原型指向jQuery的原型,通常被称为它的别名$.fn。它是一个字符串,其中包含的jQuery的版本号,如“1.5.0”或“1.4.4”。

    例子

    Determine if an object is a jQuery object

    var a = { what: "A regular JS object" },
        b = $('body');
     
    if ( a.jquery ) { // falsy, since it's undefined
        alert(' a is a jQuery object! ');
    }
     
    if ( b.jquery ) { // truthy, since it's a string
        alert(' b is a jQuery object! ');
    }
    

    Get the current version of jQuery running on the page

    alert( 'You are running jQuery version: ' + $.fn.jquery );
    

    上篇:jQuery.readyException()

    下篇:length