再加个JSON.parse,就可以获取了
var res = JSON.parse(mytoken.result) console.log(res.access_token)
1)和上面一样,先把json字符串转为Json对象:var _new=JSON.parse(mytoken.result)2)再输出:_new.access_token
跟你获取result一样
谢谢前端大佬