123456789101112131415161718192021222324252627282930313233 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title></title>
- <script src="jquery-3.4.1.js" type="text/javascript"></script>
- </head>
- <script type="text/javascript">
- function test() {
- const data = {
- "tenantId": "000000",
- "username": "supplier",
- "password": "e10adc3949ba59abbe56e057f20f883e",
- }
- $.ajax({
- url: 'http://192.168.66.190:81/api/blade-auth/oauth/token',
- method: "POST",
- data: data,
- headers: {
- "Authorization": "Basic c2FiZXI6c2FiZXJfc2VjcmV0"
- },
- success: function(res) {
- consol.log(res);
- }
- });
- }
- </script>
- <body>
- <button onclick="test()">哈哈</button>
- </body>
- </html>
|