Skip to content

Instantly share code, notes, and snippets.

@junpeitsuji
Created September 21, 2013 10:31
Show Gist options
  • Save junpeitsuji/6649260 to your computer and use it in GitHub Desktop.
Save junpeitsuji/6649260 to your computer and use it in GitHub Desktop.
// 同じドメインの test.cgi に test.cgi?param1=value1&param2=value2 としてリクエストをかけ、
// JSONデータを取得して表示
$.getJSON("test.cgi",
{
param1: "value1",
param2: "value2"
},
function(data){
alert("key1:" + data.key1);
alert("key2:" + data.key2);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment