晴明的博客园 GitHub      CodePen      CodeWars     
摘要: # 1 <!DOCTYPE html> 2 <html> 3 4 <head> 5 <meta charset="UTF-8"> 6 <title></title> 7 </head> 8 9 <body> 10 <script> 11 /* 12 * 数据属性 13 */ 14 var perso 阅读全文
posted @ 2016-02-21 17:17 晴明桑 阅读(259) 评论(0) 推荐(0) 编辑
摘要: # 1 <!DOCTYPE html> 2 <html> 3 4 <head> 5 <meta charset="UTF-8"> 6 <title></title> 7 </head> 8 9 <body> 10 <script> 11 //原理。可能需要规定除了公共方法,或者明确变量名不冲突,其他 阅读全文
posted @ 2016-02-21 16:13 晴明桑 阅读(278) 评论(0) 推荐(0) 编辑
摘要: # 总结 : function x(){}称之为函数声明 var x = function(){} 称之为函数表达式,也就是匿名函数 (function(){})() 立即调用的函数表达式 (IIFE) function x(){}与var x = function(){}的区别在于var x = 阅读全文
posted @ 2016-02-21 11:50 晴明桑 阅读(156) 评论(0) 推荐(0) 编辑
摘要: # 阅读全文
posted @ 2016-02-21 00:34 晴明桑 阅读(182) 评论(0) 推荐(0) 编辑
摘要: #显示到指定时间的剩余时间 # 阅读全文
posted @ 2016-02-19 18:44 晴明桑 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 基本构造器 按照惯例,构造函数以大写字母开头 //构造函数本身可不需要return, //按照惯例的话,构造函数第一个字母大写, //可将实例标识为特定的类型 缺点:不便于继承。 实例化的多种方式 由多个实例化使用同一个方法,反复创建,引出的使用全局函数,然后又引出 使用原型的构造器 使用原型的构造 阅读全文
posted @ 2016-02-19 18:36 晴明桑 阅读(213) 评论(0) 推荐(0) 编辑
摘要: # Date.prototype.valueOf()与 Date.prototype.getTime() 功能相等 总结 new Date() 识别: ① Date.parse() 识别的日期格式 ② Date.UTC() 识别的日期格式 ③ Unix时间 Date.prototype.toTime 阅读全文
posted @ 2016-02-19 02:56 晴明桑 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 目前只有chrome浏览器支持 高度设置似乎是无效的 cursor: pointer; 似乎也是无效的 阅读全文
posted @ 2016-02-18 21:53 晴明桑 阅读(298) 评论(0) 推荐(0) 编辑
摘要: # # # #一般移动动画的实现 #数组分块 array chunking (yielding processes) #函数节流,防止连续重复操作 # 阅读全文
posted @ 2016-02-18 18:02 晴明桑 阅读(227) 评论(0) 推荐(0) 编辑
摘要: <html> <head> <style type="text/css"> .arrow { width: 0; height: 0; font-size: 0; border: solid 10px #000; } .arrow2 { width: 0; height: 0; font-size: 阅读全文
posted @ 2016-02-18 16:01 晴明桑 阅读(849) 评论(0) 推荐(0) 编辑