diff --git "a/24\345\274\240\346\267\221\350\212\263/11-2-call&apply&bind/11-2-\344\275\234\344\270\232.html" "b/24\345\274\240\346\267\221\350\212\263/11-02-call&apply&bind/11-2-\344\275\234\344\270\232.html" similarity index 100% rename from "24\345\274\240\346\267\221\350\212\263/11-2-call&apply&bind/11-2-\344\275\234\344\270\232.html" rename to "24\345\274\240\346\267\221\350\212\263/11-02-call&apply&bind/11-2-\344\275\234\344\270\232.html" diff --git "a/24\345\274\240\346\267\221\350\212\263/11-2-call&apply&bind/11-2-\347\254\224\350\256\260-call&apply&bind.md" "b/24\345\274\240\346\267\221\350\212\263/11-02-call&apply&bind/11-2-\347\254\224\350\256\260-call&apply&bind.md" similarity index 100% rename from "24\345\274\240\346\267\221\350\212\263/11-2-call&apply&bind/11-2-\347\254\224\350\256\260-call&apply&bind.md" rename to "24\345\274\240\346\267\221\350\212\263/11-02-call&apply&bind/11-2-\347\254\224\350\256\260-call&apply&bind.md" diff --git "a/24\345\274\240\346\267\221\350\212\263/11-28-jQuery\346\223\215\344\275\234\345\261\236\346\200\247/11-28-jQuery\346\223\215\344\275\234\345\261\236\346\200\247-\347\254\224\350\256\260.md" "b/24\345\274\240\346\267\221\350\212\263/11-28-jQuery\346\223\215\344\275\234\345\261\236\346\200\247/11-28-jQuery\346\223\215\344\275\234\345\261\236\346\200\247-\347\254\224\350\256\260.md" new file mode 100644 index 0000000000000000000000000000000000000000..476d6397e64afc0409292a52a1a002e7d20eaf32 --- /dev/null +++ "b/24\345\274\240\346\267\221\350\212\263/11-28-jQuery\346\223\215\344\275\234\345\261\236\346\200\247/11-28-jQuery\346\223\215\344\275\234\345\261\236\346\200\247-\347\254\224\350\256\260.md" @@ -0,0 +1,76 @@ +## jQuery操作属性 + + + +#### 1、增删改查 + +```js +//attr--获取指定属性值 + $('#name').attr('要查询的属性'); + //设置属性 + $('属性名').attr('属性值'); + //移除属性 + removeAttr('属性名') +//prop--获取bool类属性值 + $('#name').prop('要查询的属性'); +``` + +**属性分类:** + + 1、固有属性 + + 2、返回值是bool类型(checked ,selected, disabled) + + 3、自定义属性 + +#### 添加样式 + +```js +$('').css({'样式名','样式值'}) +``` + +#### 操作属性内容 + +```js +//dom--innerHTML +$('').html(); +//dom--innerText +$('').text(); +//获取表单元素的值 +$('').val(); +``` + +#### 创建元素 + +```js +//创建 +var $h1 = $('
| 留言 | +0 | +
| + + | +|