Uncaught TypeError: Cannot read property 'length' of null

错误怎么处理?

1.可能是返回的datagrid数据格式有问题,比如{"total":0,"rows":null},改为{"total":0,"rows":"[]"}就可以了

 

if (capital != null && capital.length < 1) {

相关文章:

  • 2022-01-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2021-11-03
猜你喜欢
  • 2022-12-23
  • 2021-06-06
  • 2021-07-26
  • 2022-12-23
  • 2021-05-09
  • 2021-12-01
  • 2021-04-09
相关资源
相似解决方案