获得徽章 0
赞了这篇文章
赞了这篇文章
#报错记录
向数据库中添加数据显示如下错误:
1452 - Cannot add or update a child row:
是因为执行下述插入操作时,向数据库插入了一条moment_id为1的数据,moment_id是外键,对应moment表中的id字段,但是此时moment表中没有id为1的行,二者不匹配所以会报错。
向数据库中添加数据显示如下错误:
1452 - Cannot add or update a child row:
是因为执行下述插入操作时,向数据库插入了一条moment_id为1的数据,moment_id是外键,对应moment表中的id字段,但是此时moment表中没有id为1的行,二者不匹配所以会报错。
展开
评论
2
赞了这篇文章
兄弟萌,使用jwt验证token,为什么一直报错TypeError: key must be a string or a buffer or a KeyObject,明明token就是string类型的啊
3
4
兄弟萌,我想问一下。
vue.js设计与实现第86行
oldVNode的最后一个子节点为undefined时,为什么是oldEndVNode=newChildren[--oldEndIndex]?为什么不是oldEndVNode=oldChildren[--oldEndIndex]![[囧]](//lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_70.285ebe9.png)
菜菜带带
vue.js设计与实现第86行
oldVNode的最后一个子节点为undefined时,为什么是oldEndVNode=newChildren[--oldEndIndex]?为什么不是oldEndVNode=oldChildren[--oldEndIndex]
![[囧]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_70.285ebe9.png)
菜菜带带
展开
2
点赞
![[发呆]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_4.28b310a.png)
![[奋斗]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_29.2801857.png)
![[白眼的狗]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_98.9f6d4ad.png)
![[不失礼貌的微笑]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_16.9d17f6d.png)