发送var annotation_id:
echo $json = json_encode(array('annotation_id'=>$save[0]));
获取var annotation_id:
if (image.useAjax) {
$.ajax({
url: image.saveUrl,
data: form.serialize(),
error: function(e) {
alert("An error occured saving that note.");
},
success: function(data) {
if (data.annotation_id != undefined) {
editable.note.id = data.annotation_id;
alert(editable.note.id);
}
},
dataType: "json"
});
}
那么......我的代码出了什么问题? 没有得到这个变量的值。