After following, you can keep track of his dynamic information in a timely manner
Courses in the relevant section:JavaScript JSON
SON 英文全称 JavaScript Object Notation JSON 是一种轻量级的数据交换格式。 JSON是独立的语言 * JSON 易于理解。
2016-11-230个赞
Courses in the relevant section:jQuery attributes and styles (5)
toggleClass( className ):在匹配的元素集合中的每个元素上用来切换的一个或多个(用空格隔开)样式类名 toggleClass( className, switch ):一个布尔值,用于判断样式是否应该被添加或移除
2016-11-240个赞
Courses in the relevant section:javascript void
javascript:void(0) 中最关键的是 void 关键字, void 是 JavaScript 中非常重要的关键字,该操作符指定要计算一个表达式但是不返回值。
2016-11-230个赞
Courses in the relevant section:jQuery content filter selector
:contains(内容) 包含内容选择器,获得节点内部必须通过标签包含指定的内容 :empty 获得空元素(内部没有任何元素/文本(空) )节点对象 :has(选择器) 内部包含指定元素的选择器 :parent 寻找的节点必须作为父元素节点存在
2016-11-230个赞
Courses in the relevant section:JavaScript comparison and logical operators
比较和逻辑运算符用于测试 true 或 false。
2016-11-230个赞
Courses in the relevant section:JavaScript code specifications
变量和函数的命名规则 空格,缩进,注释的使用规则。 其他常用规范
2016-11-230个赞
Courses in the relevant section:JavaScript If...Else statement
if...else 语句 - 当条件为 true 时执行代码,当条件为 false 时执行其他代码
2016-11-230个赞
Courses in the relevant section:JavaScript switch statement
switch(n) { case 1: 执行代码块 1 break; case 2: 执行代码块 2 break; default: n 与 case 1 和 case 2 不同时执行的代码 }
2016-11-230个赞
Courses in the relevant section:JavaScript function definition
function myFunction(a,b){ return a*b; } document.getElementById("demo").innerHTML=myFunction(4,3);
2016-11-230个赞
Courses in the relevant section:JavaScript for loop
for - 循环代码块一定的次数 for/in - 循环遍历对象的属性 while - 当指定的条件为 true 时循环指定的代码块 do/while - 同样当指定的条件为 true 时循环指定的代码块
2016-11-230个赞
Courses in the relevant section:JavaScript while loop
while (条件){ 需要执行的代码 }
2016-11-230个赞
Courses in the relevant section:JavaScript function parameters
functionName(parameter1, parameter2, parameter3) { // 要执行的代码…… }
2016-11-230个赞
Courses in the relevant section:jQuery attributes and styles (6)
css( propertyName ) :获取匹配元素集合中的第一个元素的样式属性的计算值 css( propertyNames ):传递一组数组,返回一个对象结果 css(propertyName, value ):设置CSS css( propertyName, function ):可以传入一个回调函数,返回取到对应的值进行处理 css( properties ):可以传一个对象,同时设置多个样式
2016-11-240个赞
Courses in the relevant section:JavaScript Break and Continue statements
break语句的作用是立即跳出循环,即不再执行后面的所有循环; continue语句的作用是停止正在执行的循环,直接进入下一次循环。
2016-11-230个赞
Courses in the relevant section:jQuery form field selector
function f1(){ //获得复选框选中情况 //$(:checked) 过滤出被选中的复选框、单选按钮 console.log($("input:lt(4):checked")); //每个过滤选择器使用之前,已经获得的元素节点的下标进行归位(从0开始重新计算) //console.log($("input:gt(3):lt(2)")); //男 女 //console.log($("input:gt(1):lt(3)")); //足球 乒乓球 男 //console.log($("input:even:gt(1)")); //男 保密 //单选按钮: console.log($("input:gt(3):lt(3):checked")); //$(:selected) 获得下拉列表的选中情况 console.log($("option:selected")); }
2016-11-230个赞