我是 ajax 新手,我有一个任务是从 url 获取 json 对象,但我无法得到它
getNews : function() {
$.ajax = ({
url : corporate.newsService,
header : {
Accept : 'application/json',
'Content-Type' : 'application/json'
},
success : function success(jsonData) {
console.log("hello Json");
}
})
// console.log(corporate.newsService);
},
Ps 甚至无法获得 console.log 消息