摘要: 早餐是人生的一半,今天也要元气满满……晚安!!! 阅读全文
posted @ 2017-09-13 00:49 匿名的girl 阅读(101) 评论(0) 推荐(0)
摘要: css: <style> body{ text-align: center; } canvas{ background: #ddd; } </style>canvas标签:<canvas id="canvas" width="500" height="400"></canvas>js: var el 阅读全文
posted @ 2017-09-12 12:54 匿名的girl 阅读(584) 评论(0) 推荐(0)
摘要: css样式: body{ text-align: center; } canvas{ background: #ddd; } canvas标签: <canvas id="canvas" width="500" height="400"></canvas>js: var elem = document 阅读全文
posted @ 2017-09-12 12:51 匿名的girl 阅读(177) 评论(0) 推荐(0)
摘要: css样式: <style> body{ text-align: center; } canvas{ background:#ddd; } </style> body中添加标签canvas: <canvas id="c3"></canvas> js: //创建两个变量保存验证码的宽度和高度 var 阅读全文
posted @ 2017-09-12 12:45 匿名的girl 阅读(167) 评论(0) 推荐(0)
摘要: 1.封装 2.继承 3.多态 创建对象的三种方法: 1. 待续…… 阅读全文
posted @ 2017-08-18 00:06 匿名的girl 阅读(141) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-08-17 00:14 匿名的girl 阅读(117) 评论(0) 推荐(0)
摘要: <body> 赞:<button id="btn_zan">0</button> 踩:<button id="btn_cai">0</button> <script> function dianZan(){ var i = 0; return function(){ this.innerHTML = 阅读全文
posted @ 2017-08-16 23:55 匿名的girl 阅读(145) 评论(0) 推荐(0)
摘要: 好难啊! 虽然感觉懂了,但是又感觉不懂…… 什么时候使用闭包: 只要重用一个变量,又保护变量不被污染时 步骤: 3步: 1. 用外层函数包裹要保护的变量和操作变量的函数 2. 外层函数将内层函数的对象返回到外部 3. 使用者调用外层函数,获得内层函数对象 闭包的形成原因: 外层函数的作用域对象(AO 阅读全文
posted @ 2017-08-16 23:48 匿名的girl 阅读(135) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-02-28 22:45 匿名的girl 阅读(293) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html lang="zh-CN"><head><meta charset="UTF-8"><title>Pure CSS corner ribbon</title><style type="text/css">@import url(https://fonts.go 阅读全文
posted @ 2016-10-21 21:59 匿名的girl 阅读(523) 评论(3) 推荐(0)