以下为开发希望英语游戏的时候遇到的各种问题。
##IOS下click不正常冒泡
理论上click事件触发后会一直冒泡到document。但IOS上情况不一样。
在IOS上,click事件通常只会冒泡到body以下的节点;也就是说,不会触发body和document的click事件,把handler绑到这两者上面是没有用的。
只有在下列三种情况,click事件才会冒泡到body和document:
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</ke<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>One Light</string> |
以下为开发希望英语游戏的时候遇到的各种问题。
##IOS下click不正常冒泡
理论上click事件触发后会一直冒泡到document。但IOS上情况不一样。
在IOS上,click事件通常只会冒泡到body以下的节点;也就是说,不会触发body和document的click事件,把handler绑到这两者上面是没有用的。
只有在下列三种情况,click事件才会冒泡到body和document:
#API: history
##Specification w3文档:html5/spec-LC/history.html#the-history-interface
###history api interface
interface History {
#HTTP 记录HTTP标准的一些基础概念和参考。 ##基础
###TCP/IP __TCP/IP__指与互联网相关连的协议的集合。
####分层管理模型 好处 :分好层次,规划好每层之间接口后,方便维护和更改具体设计。
/** | |
* 用于删除翻译完的稿子中英文部分的脚本 | |
*/ | |
var resultFileName = 'r.txt'; | |
var inputFileName = 'raw.txt'; | |
var fs = require('fs'); |
try { | |
if (!window.openDatabase) { | |
alert('not supported'); | |
} else { | |
var shortName = 'mydatabase'; | |
var version = '1.0'; | |
var displayName = 'My Important Database'; | |
var maxSize = 65536; // in bytes | |
var db = openDatabase(shortName, version, displayName, maxSize); | |
看Node Js in Action
这本书的时候看到的一个用node http
模块写的一个非常基础Restful API
实现;附上使用curl
命令的测试
####实现代码如下
var http = require('http');
var url = require('url');
var items = [];
var server = http.createServer(function(req, res){
switch (req.method) {
###webfront refferences | |
####Javascript Standard Relevent | |
+ [ECMA 3 pdf online](http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%203rd%20edition,%20December%201999.pdf) | |
+ [ECMA 5 中文手册online](http://www.ecmascript.cn/) | |
+ [es5-compat-table By Kangax](http://kangax.github.io/es5-compat-table/) |
#GPU & Composting in Blink and Chrome
summaried from Chromium documents and other resources
##Background
###Stacking Contexts Positioned elements(relative, absolute, fixed) with a z-index group of layers into a isolated layer
###兼容性
Internet Explorer 8 and 9 are also supported, however, please be aware that many CSS3 properties—e.g., rounded corners and shadows—are not supported by IE8. The placeholder attribute is also not supported in either of these versions.
>In addition, Internet Explorer 8 requires the use of respond.js
to enable media query support.