Browse code

수정 내용 추가

Kang IkSeon authored on15/03/2018 08:55:23
Showing2 changed files

... ...
@@ -1 +1,5 @@
1
-alert('hello, world');
1
+(function($){
2
+  jQuery.get(ajax_object.ajax_url, {'action':'callme'}, function(response) {
3
+    alert(response);
4
+  });
5
+})(jQuery);
... ...
@@ -12,7 +12,7 @@ add_action('wp_ajax_callme', 'callme_func');
12 12
 add_action('wp_ajax_nopriv_callme', 'callme_func');
13 13
 
14 14
 function callme_func() {
15
-	echo "hello, world";
15
+	echo "hello, world :-)";
16 16
 	wp_die();
17 17
 }
18 18