this.state.menuList.toArray()[0].get('id')

 用toArray()处理传过来的list用get(")获取里面的值

而我用的是attributes得方法

posted @ 2017-07-04 15:14  天才老王1993  阅读(246)  评论(0)    收藏  举报