2015-05-07から1日間の記事一覧

jQueryのajaxで戻り値がundefinedになる

あれれ?となった。 function getText(xml){ console.log(xml) //Object } function xmlHoge(xml){ $.ajax({ url: "data.xml", dateType: "xml", success: function(xml){ hoge = getText(xml);} error: function(){ alert("xml読めねー"}; }); cosole.log(h…