2016-12-14 82 views

回答

0

你可以用愛可信:https://github.com/mzabriskie/axios

axios.post(' https://api.mmitnetwork.com/Token', { 
    grant_type: 'password', 
    username: 'yourusername', 
    password: 'yourpassword', 
}).then((response) => { 
    console.log('success!') 
}).catch((error) => { 
    console.log('something went wrong :(') 
}) 
+0

我仍然得到一個400錯誤。這是我的代碼: – jpdesigning