会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
金成子
韵韵是一只猪
博客园
首页
新随笔
联系
订阅
管理
2020年4月12日
cookie简单应用
摘要: 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)
2020年4月9日
阻止默认行为
摘要: 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)
2020年4月8日
阻止冒泡和事件委托
摘要: 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)
2020年4月7日
鼠标键盘监听事件
摘要: 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)
2020年3月31日
history
摘要: <!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)
open/location
摘要: <!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)
2020年3月19日
一元数组的一些方法
摘要: <script type="text/javascript"> //历遍数组 /* var arr=[3,4,3,43]; //alert(arr[2]); for (var i in arr) { document.write(arr[i]+" "); } */ var arr = ['
阅读全文
posted @ 2020-03-19 11:08 Logic-铖
阅读(272)
评论(0)
推荐(0)
2020年3月18日
函数的递归调用
摘要: 函数可以调用自己叫做递归调用,不建议使用,但要清楚原理 实例:实现阶乘 <!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)
2020年3月16日
js补充
摘要: “<”可以输出“<”, ">"可以输出">" 变量:数字 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)
2020年3月15日
get请求和post请求的区别
摘要: <!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)
下一页
公告