代码改变世界

随笔档案-2013年01月

转载:JQueryMobile + PhoneGap 经验总结

2013-01-25 15:26 by Paddle Zhou, 776 阅读, 收藏,
摘要: 原文链接:JQueryMobile + PhoneGap 经验总结http://imyelo.com/?p=2361. pageinit & pageshowJQM的官方手册重点提醒了使用$(document).bind(‘pageinit’)代替$(document).ready()。但当你需要对某一个页面(page)编写其独享的Javascript脚本时, 选择器应该选择的是该page层, 而不是document, 并使用live()添加事件处理器。这在ajaxEnable=true的情况下尤为重要。View DemoJS :$(document).bind('pagein 阅读全文

Html5 Web worker 不能使用 web sql

2013-01-21 16:59 by Paddle Zhou, 329 阅读, 收藏,
摘要: 因为安全原因,现在Web worker只能用postMessage与主线程通讯,使用XMLHttpRequest,其他的诸如DOM操作,Web sql,LocalStorage都操作不了 阅读全文

HTML5 Databases 详解

2013-01-11 16:25 by Paddle Zhou, 332 阅读, 收藏,
摘要: 4.1DatabasesEachoriginhas an associated set of databases. Each database has a name and a current version. There is no way to enumerate or delete the databases available for an origin from this API.Each database has one version at a time; a database can't exist in multiple versions at once. Versi 阅读全文
点击右上角即可分享
微信分享提示