nodejs基础(三)

apache是web服务器,tomcat是应用(java)服务器

###  开源中国  查找http中加载不同类型文件所需要的Content-type:http://tool.oschina.net/commons 

js加载html文件和图片,加载不同类型的文件,设置不同类型的编码

 读取外部文件的更多方式

 读取目录

 下载art_template

使用案例如下:

在node中使用模板引擎

解析请求地址(url)

在命令行测试

执行两次ctrl+c 即可退出

原文地址:https://www.cnblogs.com/xiaoxiaodevlog/p/10559478.html