我正在尝试获取值“shortmessage”并将其显示在我的 HTML 正文中。下面我一直在搞砸。谢谢您的帮助!
JQUERY(我正在尝试使用)
$.ajax({
url: 'http://www.myURL.com',
type: 'GET',
crossDomain: true,
dataType: 'jsonp',
success: function(data){
//What I am trying
$("body").append(JSON.stringify(010017.shortmessage));
}
});
JSON URL 响应
{"010017":{"shortmessage":"Jeans On Sale!","enddate":"10\/15\/2013 23:59:59","longmessage":"Save on your favorite Levi Jeans!","style":"010017"}}