Last active
January 18, 2019 05:22
-
-
Save MikeCheng1208/0ae06c02bfa5425c0be1a1113cb2e103 to your computer and use it in GitHub Desktop.
api demo2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//引入api.js 可以確保你網站的來源都是同一個進入點 | |
import { apiUserLogin, apiUserLogout, apiUserSignUp } from "api.js"; | |
apiUserLogin({ | |
email: "mike@gmail.com", | |
password: "123456789" | |
}) | |
.then(res=> { | |
console.log(res); | |
}) | |
.catch(err=> { | |
console.log(err); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment