getJSON ("data.json", function(data) { // Now data is the object {x:1, y:2} }); Unlike jQuery.getScript(), jQuery.getJSON() accepts an optional data argument ...
確定! 回上一頁