美文网首页
[解决].val is not a function

[解决].val is not a function

作者: 2远 | 来源:发表于2017-06-14 21:33 被阅读0次

用sequelize操作数据库,在写一个查询方法的时候报了这个错误,后来debug发现原来是查询条件多嵌套了一层,本来是

filter:{
type:'xx'
}

结果写成:

filter:{
   filter:{
      type:'xx'
   }
}

相关文章

网友评论

      本文标题:[解决].val is not a function

      本文链接:https://www.haomeiwen.com/subject/uhveqxtx.html