![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
项目
爱吹泡泡的小四
一个热爱生活,积极生活,认真学习的初生牛犊码农一枚。
展开
-
jquery报错cannot read property ‘length‘ of undefined
写spring MVC项目时控制台报错:jquery报错cannot read property 'length' of undefined 查看一下自己的controller层传递的参数是json字符串:JSONArray array = new JSONArray() 打印一下success:function(a)中获取的a,发现可以获取到json字符串并且数据正确[{name:"苹果1.jpg"}],就是console.log(a.name)时会undefined 再检查一下自己ajax方法:.原创 2021-03-29 16:35:53 · 881 阅读 · 1 评论 -
spring MVC报错You have an error in your SQL syntax; check the manual...的解决笔记
做spring MVC项目的时候报错:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near.... 然后根据控制台执行的流程去查找的对应的SQL映射文件: insert into comment (item_id,users_id,content,c_date,c_rank,c_images原创 2021-03-28 17:41:20 · 331 阅读 · 0 评论