06 2015 档案

摘要:http://www.zhihu.com/question/26717343问:用hexo搭了个blog,之前一直正常,最近在deploy的时候无法连接到github了。fatal: unable to access ‘https://github.com/xxxxx’: Empty reply f... 阅读全文
posted @ 2015-06-24 13:31 林大勇 阅读(7582) 评论(0) 推荐(0) 编辑
摘要:1. 使用【360安全卫士】->【安全防护中心】->【信任与阻止】->【阻止的网站】不足:http://www.baidu.com/具有反屏蔽的功能,使用这种方法无法进行屏蔽 ;2. 修改hosts文件,具体怎么修改自行谷歌不足:使用FQ代理仍然可以访问被屏蔽的网站3. 使用广告屏蔽插件,例如【ad... 阅读全文
posted @ 2015-06-13 13:39 林大勇 阅读(400) 评论(0) 推荐(0) 编辑
摘要:Professional JavaScript for Web Developers P552Basic Usage The element requires at least its width and height attributes to be set in order to indi... 阅读全文
posted @ 2015-06-11 17:39 林大勇 阅读(197) 评论(0) 推荐(0) 编辑
摘要:Ajax操作的四个步骤:创建Ajax对象连接服务器发送请求接收返回信息 1 2 3 4 5 6 39 40 41 42 43 View Code 阅读全文
posted @ 2015-06-11 12:13 林大勇 阅读(747) 评论(0) 推荐(0) 编辑
摘要:1 2 3 4 5 6 13 14 15 16 17 阅读全文
posted @ 2015-06-11 11:53 林大勇 阅读(124) 评论(0) 推荐(0) 编辑
摘要:运行效果图:[点击这里] 1 2 3 4 5 6 22 66 67 68 69 70 View Code 阅读全文
posted @ 2015-06-10 16:38 林大勇 阅读(140) 评论(0) 推荐(0) 编辑
摘要:addEventListener() and removeEventListener();These methods exist on all DOM nodes and accept three arguments: the event name to handle, the event hand... 阅读全文
posted @ 2015-06-10 11:50 林大勇 阅读(183) 评论(0) 推荐(0) 编辑
摘要:http://bbs.zhinengshe.com/thread-1200-1-1.html要求:实现div块的拖拽原理:拖拽过程中鼠标点和div块的相对位置保持不变。需要理解三点:1. 为什么要把onmousemove,onmouseup加在document上面 ?2. onmouseup要怎么使... 阅读全文
posted @ 2015-06-10 10:19 林大勇 阅读(247) 评论(0) 推荐(0) 编辑
摘要:MDN :The Document.documentElement read-only property returns the Element that is the root element of the document (for example, the element for HTML ... 阅读全文
posted @ 2015-06-08 17:09 林大勇 阅读(205) 评论(0) 推荐(0) 编辑
摘要:思路:使用keyCode,阻止浏览器默认行为.运行效果:[点击这里] 1 2 3 4 5 6 21 22 23 24 25 View Code 阅读全文
posted @ 2015-06-08 16:29 林大勇 阅读(189) 评论(0) 推荐(0) 编辑
摘要:clientX和clientY为可视区鼠标的位置。1. 随鼠标移动的div块[runjs]当document有多个页面时,会出现问题。[runjs]2. 解决方案:scrollTop, scrollLeft需要注意scrollTop/scrollLeft的兼容性获取;scrollTop = docu... 阅读全文
posted @ 2015-06-08 15:40 林大勇 阅读(845) 评论(0) 推荐(0) 编辑
摘要:要求:点击按钮时,下拉框显示;点击页面其他部分时,下拉框消失;1. 不靠谱代码 1 2 3 4 5 6 14 27 28 29 30 31 32 不靠谱原因:当点击按钮时,(1)点击事件在btn上触发并执行,此时下拉框显示;(2)事件一直向上... 阅读全文
posted @ 2015-06-08 15:19 林大勇 阅读(335) 评论(0) 推荐(0) 编辑
摘要:http://bbs.zhinengshe.com/thread-1199-1-1.html1. 在空白的页面加点击事件,是加在body上么 ? 1 2 3 4 5 6 13 14 15 16 2. document是什么 ? 1 2 3 4 5 ... 阅读全文
posted @ 2015-06-08 15:06 林大勇 阅读(271) 评论(0) 推荐(0) 编辑
摘要:1 /** 2 * Created by linxd on 2015/6/6. 3 */ 4 5 6 function getStyle(obj, name) { 7 if (getComputedStyle) { 8 return getComputedStyle... 阅读全文
posted @ 2015-06-07 15:33 林大勇 阅读(154) 评论(0) 推荐(0) 编辑
摘要:github地址: [https://github.com/linxd5/pictureShow]PS: 新建一个github项目很简单,只要new一个repo,后面按照提示做就可以了~项目思路:1. 左右按钮巧妙的应用了opacity属性,并使用两个div来简化计算;2. 大图切换使用了z-ind... 阅读全文
posted @ 2015-06-07 12:36 林大勇 阅读(147) 评论(0) 推荐(0) 编辑
摘要:[智能社视频]1. 相比于单物体运动框架,多物体运动框架多了一个参数obj,用来指明需要哪个物体运动 ~运行效果图:点击这里问题一:但鼠标快速在多个div中移动时,会出现问题原因:共用一个计数器解决方案:把计时器作为obj的属性,每个obj上有且仅有一个计时器。运行效果图:点击这里2. 在单物体运动... 阅读全文
posted @ 2015-06-06 18:22 林大勇 阅读(179) 评论(0) 推荐(0) 编辑
摘要:The styleobject offers no information about the styles that have cascaded from style sheets and affect the element. DOM Level 2 provide a method calle... 阅读全文
posted @ 2015-06-06 16:26 林大勇 阅读(234) 评论(0) 推荐(0) 编辑
摘要:1. 右侧底部悬浮框运行效果图: [http://runjs.cn/code/zvjocat0]要点:oDiv.style.top=document.documentElement.clientHeight-oDiv.offsetHeight+scrollTop;2. 右侧中部悬浮框运行效果图:[h... 阅读全文
posted @ 2015-06-06 11:31 林大勇 阅读(300) 评论(0) 推荐(0) 编辑
摘要:这次笔试真的是越写越烦躁。出乎意料的是,里面考的全都是基础知识,而我几乎都快忘光了。 之前一直想找个时间来复习基础知识。但是不知道为什么要复习基础知识,为了笔试? 进度太慢了,学了3个月的前端,却一直还是在做一些简单的界面显示 。。。 暑假吧,用Web把基础知识串起来,用JS实现基本的数据... 阅读全文
posted @ 2015-06-04 17:01 林大勇 阅读(137) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/questions/22675126/what-is-offsetheight-clientheight-scrollheighthttp://www.jb51.net/article/17719.htm 阅读全文
posted @ 2015-06-04 12:37 林大勇 阅读(142) 评论(0) 推荐(0) 编辑
摘要:http://bbs.zhinengshe.com/thread-1195-1-1.html要求:速度逐渐变慢,直到停止。运行效果:[http://runjs.cn/code/wju7kucq]问题:物体无法运动到准确的位置[http://runjs.cn/code/i5cbxnxn]原因:像素不能... 阅读全文
posted @ 2015-06-04 12:21 林大勇 阅读(150) 评论(0) 推荐(0) 编辑
摘要:前篇:[运动基础 学习笔记]示例一:“分享到”运行效果:[http://runjs.cn/detail/xqyf5jlo]实例二:“淡入淡出”运行效果:[http://runjs.cn/detail/lbomhqln] 阅读全文
posted @ 2015-06-04 12:06 林大勇 阅读(156) 评论(0) 推荐(0) 编辑
摘要:http://bbs.zhinengshe.com/thread-1194-1-1.html运行效果:[http://runjs.cn/code/riwpoev9]问题1:不会在特定的位置停止 ~解决方案:添加if判断条件,达到特定位置时关闭定时器 ;运行效果:[http://runjs.cn/co... 阅读全文
posted @ 2015-06-04 11:50 林大勇 阅读(336) 评论(0) 推荐(0) 编辑
摘要:要点:getElementsByTagName("li")返回的是HTMLCollection对象,这个对象不同于Array对象,不能使用sort()方法进行排序~下面方法的要点是借壳Array对象,同时使用了appendChild的特性~ 1 2 3 4 5 6 ... 阅读全文
posted @ 2015-06-03 12:38 林大勇 阅读(668) 评论(0) 推荐(0) 编辑
摘要:表格的便捷操作:tBodies, tHead, tFoot, rows, cells; 1 2 3 4 5 6 12 13 14 15 16 ID17 Name18 ag... 阅读全文
posted @ 2015-06-02 17:14 林大勇 阅读(222) 评论(0) 推荐(0) 编辑
摘要:1. childNodes also includes e.g. text nodes and comments. To skip them, use childreninstead ~2. parentNodereturns directly containing element, while o... 阅读全文
posted @ 2015-06-02 12:02 林大勇 阅读(120) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示