01-nodejs介绍 1.什么是nodejs 1.(javascript跑在机器端,服务端)Javascript on the machine 2.(跑在谷歌v8引擎上)A runtime for Google Chrome's V8 Javascript engine 2.nodejs的使用 1.构建工具(gulp,webpack都要依赖nodejs)Build Tools and Utilities 2.(web应用,web服务端)Web Applications / Web Servic
比较理想的解释方法应该以"状态:任务(目标)+过程+表现(或特征)"的表达模式来对这几个状态进行定义 [全文] 在<Pragmatic Ajax A Web 2.0 Primer >中偶然看到对readyStae状态的介绍,感觉这个介绍很实在,摘译如下: 0: (Uninitialized) the send( ) method has not yet been invoked. 1: (Loading) the send( ) method has been in
设定端口和 虚拟目录 在server.xml <?xml version='1.0' encoding='utf-8'?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional informat
var t = new Thread(new ThreadStart(() => { HttpListener listener = new HttpListener(); var prefix = string.Format("http://localhost:{0}/", port); listener.Prefixes.Add(prefix); listener.Start(); HttpListenerContext context = listener.GetConte