-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'發生了什麼? –