前端問題——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,再獲取對象下的屬性是有誤的。

 

 

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