encapsulate a request module with axios. Except for registering and obtaining CAPTCHA, other APIs need to pass token, in headers. Headers can be picked up and written, for example: axios.defaults.headers = { "appId": APPID, "...
< html lang= "en " > < head > <meta charset="UTF-8"> <title>Vue< title> <link rel="stylesheet" href=". main.css"> <script src= . vue.js >< script> <style> .v-enter,.v-lea...
question: OAuth2 authentication and authorization is an internal project of the company, so I want to follow the password mode of OAuth2 . Now my authentication server is configured. When the client requests API, it defaults to request authentication...
for example, this class: function Foo() { this.Field1 = "aaa"; } Foo.prototype = { Start: function () { window.addEventListener( scroll , this._handler); }, _handler: function () { Field1 this.Field1 ...
two-- what do you mean blame me for having little knowledge at ordinary times. I haven t seen many people who write two bars. I didn t recognize them for a while. Alas ...