After following, you can keep track of his dynamic information in a timely manner
Courses in the relevant section:JavaScript JSON
向服务器发出Ajax请求时,可以以两种不同的方式从服务器响应检索数据:一种是使用XMLHttpRequest对象的reponseXML属性访问XML格式的数据;一种是XMLHttpRequest对象的responseText属性访问字符串格式的数据。
2016-11-230个赞
Courses in the relevant section:javascript:void(0) meaning
javascript:void(0) 中最关键的是 void 关键字, void 是 JavaScript 中非常重要的关键字,该操作符指定要计算一个表达式但是不返回值。
2016-11-230个赞
Courses in the relevant section:JavaScript code specifications
var values = ["Volvo", "Saab", "Fiat"]; var person = { firstName: "John", lastName: "Doe", age: 50, eyeColor: "blue" };
2016-11-230个赞
Courses in the relevant section:jQuery DOM operations replaceWith() and replaceAll()
.replaceWith( newContent ):用提供的内容替换集合中所有匹配的元素并且返回被删除元素的集合
2016-11-240个赞
Courses in the relevant section:jQuery DOM manipulation wrap()
wrap( function ) :一个回调函数,返回用于包裹匹配元素的 HTML 内容或 jQuery 对象
2016-11-240个赞
Courses in the relevant section:jQuery DOM operation unwrap() method
<script> $("p").unwrap("<div></div>"); </script>
2016-11-240个赞
Courses in the relevant section:The origin of the $ symbol in jQuery
jQuery把所有功能全部封装在一个全局变量jQuery中,而$也是一个合法的变量名,它是变量jQuery的别名
2016-11-230个赞
Courses in the relevant section:The jQuery object and the dom object call each other's members
jquery对象:$(‘li’) $(‘.apple’) 等选择器使用返回的信息就是jquery对象
2016-11-230个赞
Courses in the relevant section:How jQuery objects encapsulate dom objects
function f1(){ //jquery对象 转化为 dom对象 进而调用dom的成员 $('#apple')[0].style.backgroundColor = "blue"; $('li')[1].style.backgroundColor = "brown"; }
2016-11-230个赞
Courses in the relevant section:jQuery DOM operation wrapAll()
wrapAll( wrappingElement ):给集合中匹配的元素增加一个外面包裹HTML结构
2016-11-240个赞
Courses in the relevant section:Conversion of jQuery objects and dom objects
function f1(){ //jquery对象 转化为 dom对象 进而调用dom的成员 $('#apple')[0].style.backgroundColor = "blue"; $('li')[1].style.backgroundColor = "brown"; }
2016-11-230个赞
Courses in the relevant section:jQuery DOM operation wrapInner()
.wrapInner( wrappingElement ):给集合中匹配的元素的内部,增加包裹的HTML结构
2016-11-240个赞
Courses in the relevant section:jQuery traversal method
$.each(数组/对象,function处理); //$对象 调用的 $(选择器).each(function处理); //jquery对象 调用的
2016-11-230个赞
Courses in the relevant section:jQuery traversal children() method
:.children(selector) 方法是返回匹配元素集合中每个元素的所有子元素(仅儿子辈,这里可以理解为就是父亲-儿子的关系)
2016-11-240个赞
Courses in the relevant section:jQuery traversal find() method
find是遍历当前元素集合中每个元素的后代。只要符合,不管是儿子辈,孙子辈都可以
2016-11-240个赞