如res.header.content-type,含“-”的名字无法直接使用发布于 8 年前作者 yan351990 次浏览最后编辑 8 年前来自 ask比如: that.setData({ myUserInfo: res.header.content-type //报错 })