#HTTP 记录HTTP标准的一些基础概念和参考。 ##基础
###TCP/IP __TCP/IP__指与互联网相关连的协议的集合。
####分层管理模型 好处 :分好层次,规划好每层之间接口后,方便维护和更改具体设计。
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); | |
/** | |
* 用于删除翻译完的稿子中英文部分的脚本 | |
*/ | |
var resultFileName = 'r.txt'; | |
var inputFileName = 'raw.txt'; | |
var fs = require('fs'); |
#HTTP 记录HTTP标准的一些基础概念和参考。 ##基础
###TCP/IP __TCP/IP__指与互联网相关连的协议的集合。
####分层管理模型 好处 :分好层次,规划好每层之间接口后,方便维护和更改具体设计。
#API: history
##Specification w3文档:html5/spec-LC/history.html#the-history-interface
###history api interface
interface History {
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
.shine{ | |
height:100px; | |
width:100px; | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 10 |
(function(window, document, undefined){ | |
})(this, document) | |
//anything apart from window and document get passed into it will be treated as undefined; | |
//this could forbidden the undefined asserssments error |
var someDate = new Date(); | |
var numberOfDaysToAdd = 6; | |
someDate.setDate(someDate.getDate() + numberOfDaysToAdd); |
/* | |
Base.js, version 1.1a | |
Copyright 2006-2010, Dean Edwards | |
License: http://www.opensource.org/licenses/mit-license.php | |
*/ | |
var Base = function() { | |
// dummy | |
}; |
####本文编译自Rendering: repaint, reflow/relayout, restyle 所有权利保留为原作者所有
##渲染: 重绘,回流/重布局,重设样式 ###渲染过程
不同的浏览器实现不同,但下面图表所示过程基本都足以表示各个浏览器一旦下载完毕代码,接下来做了些什么。
(function () { | |
var a = window.a = { | |
name : 'a' | |
}; | |
var aStr = window.aStr = 'stringA'; | |
window.a.name = 'b'; | |
window.aStr = 'stringB'; | |