jquery发送jsonp请求

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script src="jquery.js"></script>
	<script>
		$.ajax({
			url:'http://localhost/jsonp/server.php',
			dataType: 'jsonp',
			success: function(res){
				console.log(res)
			}
		})
	</script>
</body>
</html>
发布了43 篇原创文章 · 获赞 1 · 访问量 3145

猜你喜欢

转载自blog.csdn.net/u011523953/article/details/104325198