Ajaxã®ããã ãã«jQueryã使ãã®ã¯å°ãéãã®ã§ãã«ã¹ã¿ãã¤ãºããåæã§ä½ã£ããªãã¸ã§ã¯ããã¹ããããã¨ãã¦æ²è¼ãã¦ããã¾ãã /* require Prop.js */ var Ajax = { get: function (params) { var key; if (!params.url) { throw 'URLãæå®ãã¦ãã ãã'; } this.method = new Prop('GET'); for (key in params) { this[key] = new Prop(params[key]); } this.sendRequest(); }, post: function (params) { var key; if (!params.url) { throw 'URLãæå®ãã¦ãã ãã'; } if (!params.data) { throw 'éä¿¡ã
{{#tags}}- {{label}}
{{/tags}}