摘要: p107 <<<js //创建cookie function setCookie(cname, cvalue, exday) { var oDay = new Date(); oDay.setDate(oDay.getDate() + exday); var expires = "expires=" 阅读全文
posted @ 2020-04-12 22:38 Logic-铖 阅读(142) 评论(0) 推荐(0)
摘要: p 140 //阻止默认行为(提交转跳)1. //return false;2. //evt.preventDefault();3. //evt.returnValue=false; <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <titl 阅读全文
posted @ 2020-04-09 21:11 Logic-铖 阅读(307) 评论(0) 推荐(0)
摘要: p73 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <div style="width: 300px; height: 300px; background: red;"> <d 阅读全文
posted @ 2020-04-08 18:13 Logic-铖 阅读(311) 评论(0) 推荐(0)
摘要: p70 https://www.w3school.com.cn/jsref/dom_obj_event.asp <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <div sty 阅读全文
posted @ 2020-04-07 15:52 Logic-铖 阅读(290) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script type="text/javascript"> window.onload=function () { var ohistory = docume 阅读全文
posted @ 2020-03-31 15:18 Logic-铖 阅读(167) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script type="text/javascript"> //p81 window.onload=function(){ //open(); 有三个参数 / 阅读全文
posted @ 2020-03-31 14:41 Logic-铖 阅读(221) 评论(0) 推荐(0)
摘要: <script type="text/javascript"> //历遍数组 /* var arr=[3,4,3,43]; //alert(arr[2]); for (var i in arr) { document.write(arr[i]+"&nbsp;"); } */ var arr = [' 阅读全文
posted @ 2020-03-19 11:08 Logic-铖 阅读(272) 评论(0) 推荐(0)
摘要: 函数可以调用自己叫做递归调用,不建议使用,但要清楚原理 实例:实现阶乘 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <script type="text/javascript"> window.onlo 阅读全文
posted @ 2020-03-18 23:02 Logic-铖 阅读(204) 评论(0) 推荐(0)
摘要: “&lt”可以输出“<”, "&gt"可以输出">" 变量:数字 number 0,1,2,100字符串 string 所有带单/双引号 'hi' "hello world!"布尔值 boolean true false特殊数据类型 null空值 undefined未声明 可以用 typeof+变量 阅读全文
posted @ 2020-03-16 20:24 Logic-铖 阅读(146) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>表格实例</title> </head> <body> <form action="https://www.cnblogs.com/" method="post" target=" 阅读全文
posted @ 2020-03-15 12:36 Logic-铖 阅读(226) 评论(0) 推荐(0)