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