跟微信开发文档写的一样的 code 并没有获取到 注意点: 1. 一定要用 encodeURIComponent 进行 转码! 2.在redirect_uri 末尾 加上 +%0A 这样就好了 ! 代码小白 不喜勿喷 欢迎大家点评!