前端问题——table:191 Uncaught TypeError: Cannot read property 'username' of null

table:191 Uncaught TypeError: Cannot read property 'username' of null:

表:191未捕获的类型错误:无法读取属性“username”的null:

背景:使用layui初始化表格:

 出错原因:

获取到的数据中user对象是null,再获取对象下的属性是有误的。

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章