1. 首页
  2. 考试认证
  3. 其它
  4. request nids test 试图显示浏览器和服务器端请求之间的差异

request nids test 试图显示浏览器和服务器端请求之间的差异

上传者: 2024-08-29 17:58:54上传 ZIP文件 997.27KB 热度 9次
这显示了在浏览器中使用时请求模块的一个非常特殊的问题。用法npm install node index.js //to start the web server node test.js //this runs a readFileSync and request on the data file. //The output is the length of each response在浏览器中打开并打开控制台以查看相同的输出。如果你想改变test.js文件中的一些东西运行来更新bundle.js文件browserify -t brfs test.js > bundle.js我看到的问题是浏览器中似乎对请求的数据进行了一些压缩。以下是测试的一些基本统计数据原始文件大小: 340968字节##服务器端:读取文件同步:34
下载地址
用户评论