💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` <!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>API demo</h2> <div> <div class="form-group"> <label for="pwd">短信驗證碼:</label> <input type="text" class="form-control" id="user_sms_code"> </div> <input class="submit btn btn-info" type="submit" value="Submit"> </div> </div> <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script> <script> $(".submit").click(function(){ var user_sms_code = document.getElementById('user_sms_code').value; // postman start var settings = { "async": true, "crossDomain": true, "url": "http://xmascolor.k11.dev.r34.vp.as1.in/mobile/check_sms_code", "method": "POST", "headers": { "content-type": "application/json", "cache-control": "no-cache" }, "processData": false, "data": "{\"user_sms_code\":\""+user_sms_code+"\"}" } $.ajax(settings).done(function (response) { console.log(response); console.log(user_sms_code); }); // postman end }); </script> </body> </html> ```