不为别的,只为做一个连自己都羡慕的人

摘要: 这种问题的出现是由于,node每次只能返回一次res.send(),如果返回多次就会报这样的错。 阅读全文
posted @ 2020-07-11 13:52 升级打怪 阅读(4632) 评论(0) 推荐(0) 编辑
摘要: // 请求第三方接口 var request = require('sync-request'); let url ='http://localhost:3000/tryack/document/findcontent?desc=true&page=1&content=中文&size=10'; le 阅读全文
posted @ 2020-07-08 09:49 升级打怪 阅读(3082) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-07-07 14:27 升级打怪 阅读(1541) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_34345560/article/details/93578212 阅读全文
posted @ 2020-07-05 11:06 升级打怪 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 这种问题的解决办法是再login.html页面中添加如下代码,便可以解决当前问题。 <script> if(window != top){ top.location.href=location.href; }; </script> 阅读全文
posted @ 2020-07-01 10:23 升级打怪 阅读(1701) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/Bibifeng/article/details/81223215 注意:针对的是表单元素,input select textarea 1.必须给表单体系所在的父元素加上class="layui-form",里层的每一个项目,加上class=‘layui- 阅读全文
posted @ 2020-06-28 10:36 升级打怪 阅读(1742) 评论(0) 推荐(0) 编辑
摘要: 出现的问题:TypeError: write() only accepts bytes, unicode, and dict objects. Lists not accepted for security reasons; see http://www.tornadoweb.org/en/stab 阅读全文
posted @ 2020-06-24 10:09 升级打怪 阅读(847) 评论(0) 推荐(0) 编辑
摘要: 再index中加入如下代码: 1.process.on('uncaughtException', function (err) { //打印出错误 console.log(err); //打印出错误的调用栈方便调试 console.log(err.stack); }); 通过uncaughtExce 阅读全文
posted @ 2020-06-22 09:56 升级打怪 阅读(417) 评论(0) 推荐(0) 编辑
摘要: npm install 时总是报phantomjs-prebuilt@2.1.14安装失败 在npm install时总是报如下错误, 尝试单独安装:npm install phantomjs-prebuilt@2.1.14 还是报错 Please report this full log at h 阅读全文
posted @ 2020-06-22 09:52 升级打怪 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 每个mongodb中只能创建一个全文索引,其他的索引需要输入整个字段,才能够查询出来。 1.创建索引:db.structs.news.ensureIndex({content:"text",publish_time:"text",title:"text"}) 2索引的使用:db.structs.ne 阅读全文
posted @ 2020-05-14 16:10 升级打怪 阅读(1288) 评论(0) 推荐(0) 编辑