标签: javascript
我需要在现有的javasript哈希中添加一个键值对。
let token = { name: "abc", id: '3' }
我需要在令牌哈希中添加{type: 'random'}才能访问token.type
{type: 'random'}