Heartsuit的博客使用URLSearchParams构造参数 FrontEnd hex2str(hex) { let that = this; /* method1: send parameter with URLSearchParams (Note: ) * This bring a new compatability problem, can be solved by node ...
m0_49405757的博客在vue项目中更改,使用 new URLSearchParams()构造参数,将参数放到里面,发起请求时直接将params传递到服务器即可 let params = new URLSearchParams(); params.append("account",this.loginForm.account) ...