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

<!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>


劲哥哥
浏览 1151回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JQuery