摘要:
在ios端的Safari中,使用css3的 animation + translate 实现图片从屏幕外滑进屏幕内动画时,发现动画不起作用,而是直接闪现。 阅读全文
摘要:
在iPhone 的chrome和UC浏览器中,当使用jsonp的形式跨域时,request的accept会是:*/*;image/webp。在后端没有对content-type做特殊处理时,会直接返回 image/webp,这时,chrome和uc会无法执行jsonp返回的js。解决方案:1、放弃j... 阅读全文
摘要:
html代码Ajax Thread Comet return: start: get: sended: pause: callback: pause2:php代码输出结果 阅读全文
摘要:
通过coffeescript如何事件完整的类继承 阅读全文
摘要:
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'; 阅读全文
摘要:
从菜单 View - Show Console 或者 ctrl + ~ 快捷键,调出 console。将以下 Python 代码粘贴进去并 enter 执行,不出意外即完成安装。以下提供 ST3 和 ST2 的安装代码:Sublime Text 3: import urllib.request,os... 阅读全文
摘要:
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 阅读全文