12345678910111213141516171819202122232425262728293031323334353637 |
- <!doctype html>
- <html lang="zh">
- <head>
- <!-- Required meta tags -->
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- Bootstrap CSS -->
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
- <title>Hello, world!</title>
- </head>
- <body>
- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
- <form role="form" id="form_register">
- <input type="text" class="form-control" id="cellphone" placeholder="手機號碼" name="cellphone">
- <button type="submit" class="btn btn-light">
- <span class="lead font-weight-bold">
- 立即查詢 <i class="ml-1 fas fa-sign-in-alt"></i>
- </span>
- </button>
- </form>
- </body>
- <script>
- $(document).ready(function(){
- axios({
- method: 'get',
- baseURL: 'http://139.162.121.30',
- url: '/users',
- 'Content-Type': 'application/json',
- })
- .then((result) => { console.log(result.data) })
- .catch((err) => { console.error(err) })
- </script>
- </html>
|