摘要: 出处: https://github.com/substack/point-in-polygon/blob/master/index.js github: https://github.com/substack/point-in-polygon 判断一个点是否在一个圆这内: 阅读全文
posted @ 2016-11-08 11:18 roseforyou 阅读(8141) 评论(0) 推荐(0) 编辑
摘要: 前提是你有编辑这个跨域的iframe的权限!! 阅读全文
posted @ 2016-11-07 10:19 roseforyou 阅读(373) 评论(0) 推荐(0) 编辑
摘要: demo: http://output.jsbin.com/davixatona demo: http://output.jsbin.com/davixatona 阅读全文
posted @ 2016-10-25 17:15 roseforyou 阅读(277) 评论(0) 推荐(0) 编辑
摘要: SlidesJS 3.0.4 http://slidesjs.com 在手机上遇到的一些问题及解决办法 1.手机上打开有sliderjs的页面后, 切换到别的页面再回来时, sliderjs部分不能滑动了2.手机上打开有sliderjs的页面后, 在sliderjs部分不断的进行上下滑动时, 会出现 阅读全文
posted @ 2016-10-25 11:07 roseforyou 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 1 var tag = document.createElement('script'); 2 tag.src = "https://www.youtube.com/iframe_api"; 3 var firstScriptTag = document.getElementsByTagName('script')[0]; 4 firstScriptTag.parentNode.inse... 阅读全文
posted @ 2016-10-12 13:31 roseforyou 阅读(2618) 评论(0) 推荐(0) 编辑
摘要: https://clipboardjs.com/dist/clipboard.min.js 用clipboard实现复制时, 想让复制的文本换行, 有两种方法: 第一种, HTML实现: 第二种, js实现(以jQuery为例): 阅读全文
posted @ 2016-09-01 15:38 roseforyou 阅读(4615) 评论(0) 推荐(0) 编辑
摘要: sublime 正则搜索日语字符 [\x{3041}-\x{3096}\x{30A0}-\x{30FF}\x{3400}-\x{4DB5}\x{4E00}-\x{9FCB}\x{F900}-\x{FA6A}\x{2E80}-\x{2FD5}\x{FF5F}-\x{FF9F}\x{3000}-\x{3 阅读全文
posted @ 2016-08-03 17:13 roseforyou 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 目的: 手机webview中, js ajax请求, success后, 进行window.open 操作 问题: 在Android, IOS均不能执行window.open 解决办法: 设置ajax的async: false后, 问题解决了. 原因: webview在异步时, 阻止了弹出 阅读全文
posted @ 2016-08-03 13:12 roseforyou 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 发现一个更详细的: Apache下开启SSI配置使html支持include包含 重要一句: Options Indexes FollowSymLinks INCLUDES IncludesNOEXEC 原文: http://www.cnblogs.com/zichi/p/4889075.html 阅读全文
posted @ 2016-05-20 13:18 roseforyou 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 原文: How to use package installed locally in node_modules http://stackoverflow.com/questions/9679932/how-to-use-package-installed-locally-in-node-modul 阅读全文
posted @ 2016-05-06 12:23 roseforyou 阅读(135) 评论(0) 推荐(0) 编辑