坏小仔

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年9月17日

摘要: In JavaScript,scope iskept within functions, but not within blocks (such as while, if, and for statements).// Set a global variable, foo, equal to testvar foo = "test";// Within an if blockif ( true ) {// Set foo equal to 'new test'// NOTE: This is still within the global scope!var 阅读全文
posted @ 2012-09-17 10:40 坏小仔 阅读(106) 评论(0) 推荐(0) 编辑

2012年9月6日

摘要: The following values are considered false:NoneFalsezero of any numeric type, for example, 0, 0L, 0.0, 0j.any empty sequence, for example, '', (), [].any empty mapping, for example, {}.instances of user-defined classes, if the class defines a __nonzero__() or __len__() method, when that metho 阅读全文
posted @ 2012-09-06 22:05 坏小仔 阅读(220) 评论(0) 推荐(0) 编辑

摘要: 字符表 如:ABC编码字符集 字符(C)-码位(非负整数N) 如:A-65 B-66字符编码表 将编码字符集的非负整数值(即码位)转换成有限比特长度的整数值,以利于计算机系统使用固定比特长度的二进制形式表示该整数。字符编码方案定义如何将定长的整数码对应到8位元组的序列,以便编码后的数据的文件存储或网络传输。在使用Unicode的场合,使用一个简单的字符来指定字节顺序是大端序或者小端序(但对于UTF-8来说并不需要专门指明字节序)。 阅读全文
posted @ 2012-09-06 14:58 坏小仔 阅读(117) 评论(0) 推荐(0) 编辑

2012年8月25日

摘要: 4.1.1 TCP Reliable Data Pipes HTTP connections really are nothing more than TCP connections, plus a few rules about how to use them. TCP connections are the reliable connections of the Internet. To... 阅读全文
posted @ 2012-08-25 16:45 坏小仔 阅读(215) 评论(0) 推荐(0) 编辑

摘要: · How HTTP uses TCP connections · Delays, bottlenecks and clogs in TCP connections · HTTP optimizations, including parallel, keep-alive, and pipelined connections · Dos and don'ts for managing con... 阅读全文
posted @ 2012-08-25 16:42 坏小仔 阅读(123) 评论(0) 推荐(0) 编辑

摘要: 3.3 Methods 3.4 Status Codes 3.5 Headers Headers and methods work together to determine what clients and servers do. This section quickly sketches the purposes of the standard HTTP headers and some... 阅读全文
posted @ 2012-08-25 16:30 坏小仔 阅读(118) 评论(0) 推荐(0) 编辑

摘要: HTTP messages are simple, formatted blocks of data. Take a peek at Figure 3-3 for an example. Each message contains either a request from a client or a response from a server. They consist of three pa... 阅读全文
posted @ 2012-08-25 16:13 坏小仔 阅读(440) 评论(0) 推荐(0) 编辑

摘要: HTTP messages are the blocks of data sent between HTTP applications. These blocks of data begin with some text meta-information describing the message contents and meaning, followed by optional data. ... 阅读全文
posted @ 2012-08-25 16:02 坏小仔 阅读(127) 评论(0) 推荐(0) 编辑

摘要: · How messages flow · The three parts of HTTP messages (start line, headers, and entity body) · The differences between request and response messages · The various functions (methods) that request... 阅读全文
posted @ 2012-08-25 15:57 坏小仔 阅读(115) 评论(0) 推荐(0) 编辑

摘要: http The Hypertext Transfer Protocol scheme conforms to the general URL format, except that there is no username or password. The port defaults to 80 if omitted. Basic form: http://<host>:<port>/<... 阅读全文
posted @ 2012-08-25 15:55 坏小仔 阅读(184) 评论(0) 推荐(0) 编辑