star7th 4 years ago
parent
commit
1a14ba64be
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mock/index.js

+ 2 - 2
mock/index.js

@@ -8,7 +8,7 @@ var server = http.createServer();
 var Mock = require('mockjs');
 var util = require('util');
 
-// 7. 监听客服端请求
+// 监听客服端请求
 server.on('request',function (req,res) {
     //console.log(req.url + req.method);
 	if (req.url.indexOf('/mock') === 0 && req.method === 'POST') {
@@ -50,4 +50,4 @@ server.on('request',function (req,res) {
 })
 
 // n. 启用服务器
-server.listen(7123,function () { console.log('mock服务启用成功'); })
+server.listen(7123,function () { console.log('mock服务启用成功'); })