<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> </head> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript"> $(function() { $("#btn").click(function() { var value = $("#info").val(); $.ajax({ type: "get", url: "https://47.90.63.143/page/google?kw=" + value + "&apikey=这里是我的key", async: true, dataType: "jsonp", success: function(data) { console.log(11); //console.log(JSON.stringify(data)); }, error: function(x, y) { console.log(x.status); }, }); }) }) </script> <body> 请输入搜索关键词:<input type="text" name="info" id="info" value="" /><button id="btn">搜索</button> </body></html>
1 回答
- 1 回答
- 0 关注
- 1187 浏览
添加回答
举报
0/150
提交
取消