我的 JSONP 请求无法正常工作
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
</head>
<body>
<script type="text/javascript">
$(document).ready(function(){
function call_back(data){
console.log("In callback function");
console.log(data);
}
$.ajax({
url: "https://www.test.net",
type: "POST",
dataType: 'jsonp',
jsonp: 'call_back',
crossDomain: true,
data: { user: 'myusername', password: 'mypassword'}
});
});
</script>
</body>
导致错误
{"error": "Missing user and/or password POST parameters"}
我究竟做错了什么?