摘要:
获取日期和时间 getFullYear () 获取完整年份(浏览器都支持) getMonth () 获取月 0-11 getDate() 获取日 1-31 getDay () 获取星期 0-6 getHours () 获取小时 0-23 getMinutes () 获取分钟 0-59 getSeco 阅读全文
posted @ 2019-12-20 19:04
杨小越
阅读(1596)
评论(0)
推荐(0)
摘要:
1.用引号括起来 2.在外面再套个函数 function f(msg) { console.log(msg); } setTimeout("f('杨越')",2000); setTimeout(function () { f('杨越') },4000); 阅读全文
posted @ 2019-12-20 18:58
杨小越
阅读(979)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style> body { font-size: 30px; text-align: center; color: red; } </sty 阅读全文
posted @ 2019-12-20 18:30
杨小越
阅读(261)
评论(0)
推荐(0)
摘要:
var endTime = new Date(“2015/12/12”); 如果Date 括号里面写日期 就是 自己定义的时间 如果 Date括号里面不写日期 , 就是当前时间 。 new Date(“2015/12/12 17:30:00”); 日期和时分秒中间 有空格隔开 var date = 阅读全文
posted @ 2019-12-20 18:26
杨小越
阅读(261)
评论(0)
推荐(0)
摘要:
1 <!DOCTYPE html> 2 <html> 3 <head lang="en"> 4 <meta charset="UTF-8"> 5 <title></title> 6 <style> 7 .box{ 8 width: 150px; 9 height: 180px; 10 backgro 阅读全文
posted @ 2019-12-20 18:16
杨小越
阅读(192)
评论(0)
推荐(0)
摘要:
console.log(new Date().getTime()); console.log(new Date().valueOf()); console.log(+new Date()); console.log(Date.now()); 阅读全文
posted @ 2019-12-20 18:05
杨小越
阅读(1500)
评论(0)
推荐(0)
摘要:
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <style> 7 *{ 8 margin: 0; 9 padding: 0; 10 } 11 #bo 阅读全文
posted @ 2019-12-20 17:15
杨小越
阅读(261)
评论(0)
推荐(0)
摘要:
1 <!DOCTYPE html> 2 <html> 3 <head lang="en"> 4 <meta charset="UTF-8"> 5 <title></title> 6 </head> 7 <body> 8 <div id="demo" class="one" title="鼠标经过"> 阅读全文
posted @ 2019-12-20 16:32
杨小越
阅读(286)
评论(0)
推荐(0)
摘要:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <div id="div"> <span id="sp">外<span>内</span></sp 阅读全文
posted @ 2019-12-20 15:53
杨小越
阅读(485)
评论(0)
推荐(0)
摘要:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <div> <ul id="ul"> <li>旧节点</li> </ul> </div> <sc 阅读全文
posted @ 2019-12-20 15:41
杨小越
阅读(718)
评论(0)
推荐(0)
摘要:
<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body><div><ul id="ul"> <li>旧节点</li></ul></div><script> let 阅读全文
posted @ 2019-12-20 15:32
杨小越
阅读(903)
评论(0)
推荐(0)
摘要:
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 </head> 7 <body> 8 <div> 9 10 </div> 11 <script> 12 阅读全文
posted @ 2019-12-20 15:21
杨小越
阅读(4713)
评论(0)
推荐(0)
摘要:
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 </head> 7 <body> 8 <div> 9 <ul id="ul"> 10 <li>1</l 阅读全文
posted @ 2019-12-20 15:15
杨小越
阅读(264)
评论(0)
推荐(0)
摘要:
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 7 </head> 8 <body> 9 <div> 10 <ul> 11 <li>123</li> 阅读全文
posted @ 2019-12-20 15:06
杨小越
阅读(280)
评论(0)
推荐(0)
摘要:
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <style> 7 div { 8 width: 400px; 9 height: 400px; 10 阅读全文
posted @ 2019-12-20 14:59
杨小越
阅读(221)
评论(0)
推荐(0)
摘要:
1. push() 后面推进去 push() 方法可向数组的末尾添加一个或多个元素,并返回新的长度。 var arr =[1,3,5] → arr.push(7,9) → 结果变成 : [1,3,5,7,9]; 2. unshift() 从数组的前面放入 unshift() 方法可向数组的开头添加一 阅读全文
posted @ 2019-12-20 14:25
杨小越
阅读(162)
评论(0)
推荐(0)
摘要:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <script> let a = '2'; switch (a) { case 1: conso 阅读全文
posted @ 2019-12-20 14:12
杨小越
阅读(287)
评论(0)
推荐(0)
摘要:
1.oninput 事件在元素值发生变化是立即触发, onchange 在元素失去焦点时触发; 2.onchange 事件也可以作用于<select> 元素。 注:IE 6 7 8 支持的 : onpropertychange而不是oninput。 阅读全文
posted @ 2019-12-20 13:51
杨小越
阅读(683)
评论(0)
推荐(0)
摘要:
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 <style> 7 section { 8 width: 300px; 9 margin: 100px 阅读全文
posted @ 2019-12-20 13:40
杨小越
阅读(482)
评论(0)
推荐(0)
摘要:
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Document</title> 6 </head> 7 <script> 8 window.onload = function () { 阅读全文
posted @ 2019-12-20 12:58
杨小越
阅读(447)
评论(0)
推荐(0)
摘要:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> # 阅读全文
posted @ 2019-12-20 11:36
杨小越
阅读(495)
评论(0)
推荐(0)
摘要:
常见标签分类在平常的学习中,我们应该都知道 html 标签可以分为块级标签和行内标签常见的块级标签有:ul、ol、li、form、h1-h6、hr、p、table、div 等常见的行内标签有:a、button、br、img、input、label、select、span 等但细心的同学就会发现,尽管 阅读全文
posted @ 2019-12-20 11:07
杨小越
阅读(734)
评论(0)
推荐(0)

浙公网安备 33010602011771号