-2
$("#teacher-form").dialog({
autoOpen: false,
height: 300,
width: 350,
modal: true,
buttons: {
"Create an account":function(){
$.ajax({
url: 'newteacher',
type: 'POST',
contentType: 'application/json',
data: { json: JSON.stringify({
name:"Bob",
email:"[email protected]"
})
},
});
가 두 번째 마지막 줄에') 보이는보십시오. 415 에러가 서버에서 돌아오고 있는데, 'newteacher'는 어떻게됩니까? –