Jquery - Invalid label error
i get the error
invalid label
{"ok" : 1, "msg" : "Uh, we had a sligh...ne here now, thank you. How are you?"}
my js code
$.aj开发者_高级运维ax({
url:"http://my.doomain.com:27080/_hello",
success:function(data)
{
alert('Load was performed. '+data+'');
},
dataType:'jsonp',
error:function()
{
alert('error');
}
});
Hope someone can help me.
Thanks in advance! Peter
PS: I use the rest api from mongo.db (sleepy mongoose)
Try wrapping the JSON string in parenthesis as suggested here: Solving the Invalid Label Error with JSON
精彩评论