ãã®ããã¥ã¡ã³ãã®å 容ã¯ã以ä¸ã®éãã§ãã ajaxã®ä½¿ç¨ä¾ ãµã³ãã«ããã°ã©ã å®è¡ä¾ JavaScriptã©ã¤ãã©ãª jQueryã§JSONPãæ±ãã«ã¯ã $.ajaxãå©ç¨ãã¾ãã ajaxã®ä½¿ç¨ä¾ callbacké¢æ°ã¯ãjQueryãèªåçã«çæãã¦ããã¾ãã <script type="text/javascript"> $.ajax({ url: "https://example.com/jsonapi", dataType: "jsonp", data:{ param1: value1, param2: value2 }, success:function(json){ // æ£å¸¸æã«ãããå®è¡ããã¾ãã }, error:function(){ alert('error'); } }); </script> callbacké¢æ°ãæå®ãããã©ã¡ã¼ã¿ãcallbackã§ãªã
{{#tags}}- {{label}}
{{/tags}}