json属性undefind

let employee1 = sessionStorage.getItem("employee");
let employee =eval( "(" +employee1+ ")" );

employee.name即可正常取出数据了

posted @ 2021-04-04 22:08  Kurie  阅读(56)  评论(0编辑  收藏  举报