随笔分类 -  花开手记

随笔记录
摘要:转自:https://www.cnblogs.com/imwtr/p/7786204.html 阅读全文
posted @ 2018-06-04 09:42 二月花开 阅读(109) 评论(0) 推荐(0)
摘要:(1)关闭特定iframe //当在iframe页面关闭自身时,在iframe页执行以下js脚本 var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引 parent.layer.close(index); //再 阅读全文
posted @ 2018-06-01 15:45 二月花开 阅读(14634) 评论(0) 推荐(3)
摘要:stylus介绍 Stylus 是一个CSS的预处理框架,2010年产生,来自Node.js社区,主要用来给Node项目进行CSS预处理支持,所以 Stylus 是一种新型语言,可以创建健壮的、动态的、富有表现力的CSS。比较年轻,其本质上做的事情与 SASS/LESS 等类似,应该是有很多借鉴,所 阅读全文
posted @ 2018-06-01 10:45 二月花开 阅读(5920) 评论(0) 推荐(0)
摘要:function Foo(){ getName = function(){console.log(1);}; return this; }Foo.getName = function(){console.log(2);}; Foo.prototype.getName = function(){console.log(3);}; var getName = function(){con... 阅读全文
posted @ 2018-05-29 17:33 二月花开 阅读(271) 评论(0) 推荐(0)
摘要:一、AMD是RequireJs在推广过程中对模块定义的规范化产出。 特点是:依赖前置,异步模块定义 二、CMD是SeaJs在推广过程中对模块定义的规范化产出。 特点是:淘宝团队提供,依赖就近,同步概念即用即加载模块。 三、CommonJs规范,module.exports 特点是nodeJs后台采用 阅读全文
posted @ 2018-05-27 15:11 二月花开 阅读(1073) 评论(0) 推荐(0)
摘要:import('../../index.js') 阅读全文
posted @ 2018-05-27 14:53 二月花开 阅读(5443) 评论(0) 推荐(0)
摘要:在网上找了很多种方法,大多都没有成功 一下是一种成功的 配置方法: 1) First, you need to install the ESLint extension in the VS code. This extension uses the ESLint library.If you hav 阅读全文
posted @ 2018-05-26 22:56 二月花开 阅读(13536) 评论(2) 推荐(3)
摘要:1:注册码云2:点击个人主页创建私有项目3:下载git4:点击码云 头像 选择下方的设置--》点击左侧的SSH公钥--》怎样生成公钥(linux操作) window系统可以右击选择 git-bash,不要用cmd命令行5:按照码云指导方法 ssh-keygen -t rsa -C "xxxxx@xx 阅读全文
posted @ 2018-05-25 13:08 二月花开 阅读(255) 评论(0) 推荐(0)
摘要:代码 index.html 脚本 script.js css common.css css data.css 阅读全文
posted @ 2018-05-15 14:23 二月花开 阅读(232) 评论(0) 推荐(0)
摘要:本示例可实现点击全屏效果,但是这个API接口不能实现,页面加载完成就执行全屏的效果 阅读全文
posted @ 2018-05-15 14:09 二月花开 阅读(317) 评论(0) 推荐(0)
摘要:点聚合提高加载效率 百度示例上面的点聚合功能加载到一万个点就有点卡了,下面进入代码部分 map_juhe.html js.js untitled.js 阅读全文
posted @ 2018-05-15 14:03 二月花开 阅读(4925) 评论(0) 推荐(0)
摘要:Document 阅读全文
posted @ 2018-05-15 12:58 二月花开 阅读(628) 评论(0) 推荐(0)
摘要:穿墙效果附加注释,附加鼠标进入方向算法 阅读全文
posted @ 2018-05-15 12:50 二月花开 阅读(168) 评论(0) 推荐(0)