单击表单上的“创建”按钮时出现以下错误消息。创建选项在RestClient上正常工作。
在Web控制台中“Child create error:error index.html:74:17”。从Visual Studios运行时没有错误消息:
// Called with "createForm" onSubmit
function createChild() {
$.ajax({
type: "POST",
contentType: "application/json",
url: rootURL,
dataType: "json",
data: formToJSONCreate(),
success: function (data, textStatus, jqXHR) {
console.log('Child created successfully');
clearCreateForm();
displayList();
},
error: function (jqXHR, textStatus, errorThrown) {
console.log('Child create error: ' + textStatus + "" + errorThrown);
}
});
}