摘要:
<!DOCTYPE html><html><head> <title></title></head><body> <script> table();//此处为首次调用 table();//此处为第二次调用 function table(){//此处将下面的代码封装成函数 document.write 阅读全文
2019年1月10日
摘要:
1、简单选择器 #box{ #使用ID选择器的css规则 color:red; #将ID为box的元素字体颜色变红 } 在jquery中,如下方式可获得相同的结果: $('#box').css('color','red'); //元素选择器,返回多个元素 $('#box').css('color', 阅读全文
摘要:
<!DOCTYPE html><html><head> <title></title></head><body> <script type="text/javascript"> document.write('<table border="1" width="800" align="center"> 阅读全文
摘要:
流程控制 1、顺序结构 条件结构——分支结构——选择结构 1)单路分支 if(bool){ } 2)双路分支 if(bool){ }else{ } 3)多路分支 if(bool){ //用于范围 }else if(){ .... }else{ } } switch(变量1){ //用于单个匹配 ca 阅读全文