上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: 安装 Ant Design Vue 时报错: npm install ant-design-vue --save ant-design-vue @ latest(sha1-qsf / gCIFcRYxyGmOKgx7TmHf1z4 =)的npm WARN tarball tarball数据似乎已损坏 阅读全文
posted @ 2020-11-25 17:48 JaceyKan 阅读(3270) 评论(0) 推荐(0)
摘要: 运行npm run dev遇到的问题:Error: Cannot find module 'webpack-cli/bin/config-yargs' // 当前package.json 文件 ​ "devDependencies": { "webpack": "^5.2.0", "webpack- 阅读全文
posted @ 2020-10-23 15:34 JaceyKan 阅读(40571) 评论(7) 推荐(17)
摘要: 问题: mongoose 更新数据时不验证数据(忽略设定的集合规则)的问题 参考: http://www.mongoosejs.net/docs/api.html#updateone_updateOne https://mongoosejs.com/docs/validation.html#upda 阅读全文
posted @ 2020-09-02 20:03 JaceyKan 阅读(432) 评论(0) 推荐(0)
摘要: 原文:js清空input file的值 在做选择本地图片上传的功能时遇到一个问题,第一次点file按钮选择图片完成会触发onchange事件,获取文件后动态在界面上创建img标签展示,但把创建的img元素节点删除后,再点file按钮选择同一个文件后发现图片并没有被重新创建出来。 分析了原因: 因为上 阅读全文
posted @ 2020-09-01 11:49 JaceyKan 阅读(2087) 评论(0) 推荐(0)
摘要: 参考:input file控件限制上传文件类型 HTML <input> 标签的 accept 属性 网页上添加一个input file HTML控件: <input id="File1" type="file" /> 默认是这样的,所有文件类型都会显示出来,如果想限制它只显示我们设定的文件类型呢, 阅读全文
posted @ 2020-09-01 10:59 JaceyKan 阅读(2788) 评论(0) 推荐(0)
摘要: 参考:mongoose报错:DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead mongoose报错:(node:9716)DeprecationWarning: collection 阅读全文
posted @ 2020-08-29 11:07 JaceyKan 阅读(413) 评论(0) 推荐(0)
摘要: MongoDB使用命令创建用户权错误分析 错误一:权限不够Error:couldn't add user:command createUser requires authentication、 解决方案:先使用超级管理员登录,再进行其他数据库用户创建的创建。 阅读全文
posted @ 2020-08-28 18:02 JaceyKan 阅读(12246) 评论(1) 推荐(0)
摘要: 参考:https://blog.csdn.net/qq_40659195/article/details/88411838 最近尝试用Node写一个小案例,使用到了MongoDB,使用过的人可以知道,Node-js操作MongoDB的官方包实在有些麻烦,为了方便开发,使用了mongoose这样的一个 阅读全文
posted @ 2020-08-25 16:23 JaceyKan 阅读(941) 评论(1) 推荐(0)
摘要: 遇到的问题 参考:mongo中时间跟实际时间相差8小时 Mongo中一个Collection有一个字段用来存放数据的插入时间,但记录的时间比实际时间晚了8小时。 查询得知存储在mongodb中的时间是标准时间UTC +0:00,而中国时区是+8.00, 请问有什么办法保证Collection中的插入 阅读全文
posted @ 2020-08-18 11:57 JaceyKan 阅读(12879) 评论(0) 推荐(0)
摘要: 参考: https://www.itranslater.com/qa/details/2325714161562551296 是否可以将模板字符串创建为常用字符串 let a="b:${b}"; 然后将其转换为模板字符串 let b=10; console.log(a.template());//b 阅读全文
posted @ 2020-08-16 20:24 JaceyKan 阅读(2694) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页