After following, you can keep track of his dynamic information in a timely manner
Courses in the relevant section:jQuery inserts prepend() and prependTo()
append()向每个匹配的元素内部追加内容 prepend()向每个匹配的元素内部前置内容 appendTo()把所有匹配的元素追加到另一个指定元素的集合中 prependTo()把所有匹配的元素前置到另一个指定的元素集合中
2016-11-240个赞
Courses in the relevant section:jQuery insert insertAfter() and insertBefore()
before()和.insertBefore()实现同样的功能。主要的区别是语法——内容和目标的位置
2016-11-240个赞
Courses in the relevant section:JavaScript variable hoisting
JavaScript 中,函数及变量的声明都将被提升到函数的最顶部。 JavaScript 中,变量可以在使用后声明,也就是变量可以先使用再声明。
2016-11-230个赞
Courses in the relevant section:jQuery class attribute value manipulation
$().addClass(值); //给class属性追加信息值 $().removeClass(值); //删除class属性中的某个信息值 $().toggleClass(值); //开关效果,有就删除,没有就添加
2016-11-230个赞
Courses in the relevant section:Basic usage of empty() for DOM node deletion
empty 顾名思义,清空方法,但是与删除又有点不一样,因为它只移除了 指定元素中的所有子节点
2016-11-240个赞
Courses in the relevant section:jQuery DOM node deletion
remove与empty一样,都是移除元素的方法,但是remove会将元素自身移除,同时也会移除元素内部的一切,包括绑定的事件及与该元素相关的jQuery数据
2016-11-240个赞
Courses in the relevant section:JavaScript strict mode (use strict)
消除代码运行的一些不安全之处,保证代码运行的安全; 提高编译器效率,增加运行速度; 为未来新版本的Javascript做好铺垫
2016-11-230个赞
Courses in the relevant section:jQuery tag contains content actions
dvnode.innerHTML 获得div包含的信息 dvnode.innerHTML = XXX; 设置div包含的内容
2016-11-230个赞
Courses in the relevant section:The difference between jQuery DOM operation empty and remove
empty不能删除自己本身这个节点 该节点与该节点所包含的所有后代节点将同时被删除 提供传递一个筛选的表达式,删除指定合集中的元素
2016-11-240个赞
Courses in the relevant section:jQuery css style manipulation
$().css(name,value); //设置 $().css(name); //获取 $().css(json对象); //同时修改多个css样式
2016-11-230个赞
Courses in the relevant section:jQuery DOM operation detach()
detach从字面上就很容易理解。让一个web元素托管。即从当前页面中移除该元素,但保留这个元素的内存模型对象
2016-11-240个赞
Courses in the relevant section:The difference between jQuery DOM operations detach() and remove()
无参数,移除自身整个节点以及该节点的内部的所有节点,包括节点上事件与数据 有参数,移除筛选出的节点以及该节点的内部的所有节点,包括节点上事件与数据
2016-11-240个赞
Courses in the relevant section:jQuery DOM operation copy
.clone() 方法深度 复制所有匹配的元素集合,包括所有匹配元素、匹配元素的下级元素、文字节点
2016-11-240个赞
Courses in the relevant section:JavaScript form validation
假如必填或必选项为空,那么警告框会弹出,并且函数的返回值为 false,否则函数的返回值则为 true(意味着数据没有问题)
2016-11-230个赞
Courses in the relevant section:JavaScript reserved keywords
Javascript 的保留关键字不可以用作变量、标签或者函数名。有些保留关键字是作为 Javascript 以后扩展使用。
2016-11-230个赞