为了账号安全,请及时绑定邮箱和手机立即绑定

麻烦帮我看一下这段代码,一直报 Uncaught SyntaxError: Unexpected token,打印出的状态码是200

麻烦帮我看一下这段代码,一直报 Uncaught SyntaxError: Unexpected token,打印出的状态码是200

劲哥哥 2017-11-14 11:53:23
<!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 关注
  • 1145 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信