具体请先看我的这一段代码
jsvar request=require('supertest'); app.connect('/foo',function(req,res){ console.log('cao');//not print res.send('hello,world'); }); request(app). connect('/foo'). end(function(err,res){ console.log(res);//undefined });
当然我知道这一段代码有问题,我想问的是,到底Connect请求会执行什么操作,会返回什么,如何来测试connect操作!
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
光阴似箭催人老,日月如移越少年。