摘要: 在ios端的Safari中,使用css3的 animation + translate 实现图片从屏幕外滑进屏幕内动画时,发现动画不起作用,而是直接闪现。 阅读全文
posted @ 2016-10-18 18:24 不下 阅读(2443) 评论(0) 推荐(0) 编辑
摘要: 在iPhone 的chrome和UC浏览器中,当使用jsonp的形式跨域时,request的accept会是:*/*;image/webp。在后端没有对content-type做特殊处理时,会直接返回 image/webp,这时,chrome和uc会无法执行jsonp返回的js。解决方案:1、放弃j... 阅读全文
posted @ 2015-09-01 18:22 不下 阅读(715) 评论(0) 推荐(0) 编辑
摘要: html代码Ajax Thread Comet return: start: get: sended: pause: callback: pause2:php代码输出结果 阅读全文
posted @ 2014-09-04 18:34 不下 阅读(1104) 评论(0) 推荐(0) 编辑
摘要: 通过coffeescript如何事件完整的类继承 阅读全文
posted @ 2014-05-09 17:14 不下 阅读(328) 评论(0) 推荐(0) 编辑
摘要: document.head || (document.head = document.getElementsByTagName('head')[0]); function changeFavicon(src) { var link = document.createElement('link'), oldLink = document.getElementById('dynamic-favicon'); link.id = 'dynamic-favicon'; link.rel = 'shortcut icon'; 阅读全文
posted @ 2014-01-13 20:08 不下 阅读(765) 评论(0) 推荐(0) 编辑
摘要: 从菜单 View - Show Console 或者 ctrl + ~ 快捷键,调出 console。将以下 Python 代码粘贴进去并 enter 执行,不出意外即完成安装。以下提供 ST3 和 ST2 的安装代码:Sublime Text 3: import urllib.request,os... 阅读全文
posted @ 2013-12-24 13:59 不下 阅读(421) 评论(0) 推荐(0) 编辑
摘要: chrome localstorage:Windows 7 8: C:\Users\_username_\AppData\Local\Google\Chrome\User Data\Default\Windows XP: C:\Documents and Settings\_username_\Local Settings\Application Data\Google\Chrome\User Data\Default\Mac OS X: ~/Library/Application Support/Google/Chrome/Default/Linux: ~/.config/google-ch 阅读全文
posted @ 2013-12-10 18:40 不下 阅读(641) 评论(0) 推荐(0) 编辑