diff --git "a/24\345\274\240\346\267\221\350\212\263/11-25-jQuery\345\210\235\350\257\206/11-25-jQuery\345\210\235\350\257\206-\347\254\224\350\256\260.md" "b/24\345\274\240\346\267\221\350\212\263/11-25-jQuery\345\210\235\350\257\206/11-25-jQuery\345\210\235\350\257\206-\347\254\224\350\256\260.md" new file mode 100644 index 0000000000000000000000000000000000000000..0d4806c87fc812d0c330de41ada3fd2d83dc8c82 --- /dev/null +++ "b/24\345\274\240\346\267\221\350\212\263/11-25-jQuery\345\210\235\350\257\206/11-25-jQuery\345\210\235\350\257\206-\347\254\224\350\256\260.md" @@ -0,0 +1,57 @@ + + +**jQuery获取对象(伪数组)** + +```js +$('div'); +``` + +**DOM对象和jQuery对象转换** + +```js +//DOM转jQuery +$(DOM对象); +//jQuery转DOm +$('div')[index]; +$('div').get(index); +``` + +**jQuery选择器** + +$('选择器') + + + +**属性选择器** + +```js +$('li[class]'); //带有class属性的li +``` + +**jQuery修改样式** + +``` +$('div').css('background','pink'); +``` + +**隐式迭代** + +jQuery会把匹配的所有元素内部进行遍历循环,执行相应的方法 + + + + + + + +**层次选择器** + + + +**鼠标经过** + +$().mouseover(fn); + +**鼠标离开** + +$().mouseout(fn); \ No newline at end of file diff --git "a/24\345\274\240\346\267\221\350\212\263/11-25-jQuery\345\210\235\350\257\206/\347\273\203\344\271\2401.html" "b/24\345\274\240\346\267\221\350\212\263/11-25-jQuery\345\210\235\350\257\206/\347\273\203\344\271\2401.html" new file mode 100644 index 0000000000000000000000000000000000000000..6a1adaa6b0357b8039214a21aeaac4f98b8bc9d0 --- /dev/null +++ "b/24\345\274\240\346\267\221\350\212\263/11-25-jQuery\345\210\235\350\257\206/\347\273\203\344\271\2401.html" @@ -0,0 +1,40 @@ + + +
+ + + +第一行 | 第一行 | +
第二行 | 第二行 | +
第三行 | 第三行 | +
第四行 | 第四行 | +
第五行 | 第五行 | +