2019年1月11日

摘要: 阅读全文
posted @ 2019-01-11 17:18 0C° 阅读(154) 评论(0) 推荐(0) 编辑

2019年1月10日

摘要: <!DOCTYPE html><html><head> <title></title></head><body> <script> table();//此处为首次调用 table();//此处为第二次调用 function table(){//此处将下面的代码封装成函数 document.write 阅读全文
posted @ 2019-01-10 21:48 0C° 阅读(110) 评论(0) 推荐(0) 编辑
 
摘要: 阅读全文
posted @ 2019-01-10 20:07 0C° 阅读(144) 评论(0) 推荐(0) 编辑
 
摘要: 1、简单选择器 #box{ #使用ID选择器的css规则 color:red; #将ID为box的元素字体颜色变红 } 在jquery中,如下方式可获得相同的结果: $('#box').css('color','red'); //元素选择器,返回多个元素 $('#box').css('color', 阅读全文
posted @ 2019-01-10 19:09 0C° 阅读(141) 评论(0) 推荐(0) 编辑
 
摘要: <!DOCTYPE html><html><head> <title></title></head><body> <script type="text/javascript"> document.write('<table border="1" width="800" align="center"> 阅读全文
posted @ 2019-01-10 17:42 0C° 阅读(158) 评论(0) 推荐(0) 编辑
 
摘要: 流程控制 1、顺序结构 条件结构——分支结构——选择结构 1)单路分支 if(bool){ } 2)双路分支 if(bool){ }else{ } 3)多路分支 if(bool){ //用于范围 }else if(){ .... }else{ } } switch(变量1){ //用于单个匹配 ca 阅读全文
posted @ 2019-01-10 17:12 0C° 阅读(102) 评论(0) 推荐(0) 编辑
 
摘要: for循环 利用for循环制作乘法表 代码如下: <script type="text/javascript"> for( var i=1;i<10;i++){ for( var j=1;j<10;j++){ //var i=1;为定义i的值 document.write(j+"x"+i+"="+( 阅读全文
posted @ 2019-01-10 16:49 0C° 阅读(99) 评论(0) 推荐(0) 编辑

2019年1月8日

摘要: 阅读全文
posted @ 2019-01-08 20:40 0C° 阅读(75) 评论(0) 推荐(0) 编辑
 
摘要: 阅读全文
posted @ 2019-01-08 20:27 0C° 阅读(97) 评论(0) 推荐(0) 编辑
 
摘要: 阅读全文
posted @ 2019-01-08 20:26 0C° 阅读(156) 评论(0) 推荐(0) 编辑