jQuery.ajax({
type: "POST",
dataType: 'json',
url: "https://api.github.com/repos/"+name+"/milestones" ,
data: { title:milestone_val , state:"open", description:"test"} ,
success: function(data) {
console.log(data);
},
error: function(data) {
milestone_val = null;
console.log("error");
},
async: false
});
总是响应错误。
response :
{
"message": "Not Found",
"documentation_url": "http://developer.github.com/v3"
}