摘要:
// http.js //引入内置http模块 var http = require("http") // 创建服务器 var server = http.createServer(function(req,res){ // //设置响应状态码,响应头(编码格式) res.writeHead(200 阅读全文
posted @ 2019-08-11 22:35
Silence_1018
阅读(6)
评论(0)
推荐(0)
摘要:
<script type="text/javascript"> //自定义一个构造函数 function Fun(){} //利用上面的构造函数构造一个实例 var fun1 = new Fun() console.log(fun1 instanceof Fun) //true console.lo 阅读全文
posted @ 2019-08-11 22:19
Silence_1018
阅读(23)
评论(0)
推荐(0)