为你而疯

导航

2018年11月19日 #

事件 +-*/

摘要: function count(){ //获取第一个输入框的值 //获取第二个输入框的值 //获取选择框的值 获取元素的值设置和获取方法为:例:赋值:document.getElementById(“id”).value = 1; 取值:var = document.getElementById(“i 阅读全文

posted @ 2018-11-19 15:56 为你而疯 阅读(129) 评论(0) 推荐(0)

函数function

摘要: function ds(x,y){ if(x>y){ return x; }else{ return y;//返回值 } }var b= ds(8,9);document.write(b); 阅读全文

posted @ 2018-11-19 11:17 为你而疯 阅读(141) 评论(0) 推荐(0)

2018年11月16日 #

流程新随笔

摘要: switch 语句用于基于不同的条件来执行不同的动作。 var myscos = 6; switch( myscos){ case 1: document.write("周一"); break; case 2: document.write("周二"); break; case 6: documen 阅读全文

posted @ 2018-11-16 17:43 为你而疯 阅读(97) 评论(0) 推荐(0)

2018年11月15日 #

border三角形

摘要: border:100px solid ; box-shadow: inset 0 1px,inset 1px 0px,inset 0 -1px,inset -1px 0px; width:0px; height: 0px; margin:0 auto; /*transparent 透明*/ border-color:red transparent transparent ... 阅读全文

posted @ 2018-11-15 17:33 为你而疯 阅读(79) 评论(0) 推荐(0)

2018年11月7日 #

数组

摘要: 一维数组定义 二级数组 阅读全文

posted @ 2018-11-07 17:30 为你而疯 阅读(91) 评论(0) 推荐(0)

DOM访问和处理HTML文档的标准方法

摘要: innerHTML获取或替换HTML元素的内容 显示与隐藏 阅读全文

posted @ 2018-11-07 16:01 为你而疯 阅读(183) 评论(0) 推荐(0)

2018年11月5日 #

js基础1

摘要: 输出内容 确认 confirm 提问框prompt 阅读全文

posted @ 2018-11-05 11:19 为你而疯 阅读(121) 评论(0) 推荐(0)