teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

追記

2020/03/04 02:22

投稿

u-sukesan
u-sukesan

スコア161

title CHANGED
File without changes
body CHANGED
@@ -23,21 +23,26 @@
23
23
 
24
24
  呼び出し部分
25
25
  ```ここに言語を入力
26
+
27
+
28
+ jQuery(function($){
29
+ ajax_form();
30
+
26
- function ajax_form(){
31
+ function ajax_form(){
27
- $.ajax({
32
+ $.ajax({
28
- type: 'post',
33
+ type: 'post',
29
- url: ajaxurl,
34
+ url: ajaxurl,
30
- dataType:'json',
35
+ dataType:'json',
31
- async: false,
36
+ async: false,
32
- data: {
37
+ data: {
33
- 'action':'get_obj',
38
+ 'action':'get_obj',
34
- },
39
+ },
35
- success: function( response ){
40
+ success: function( response ){
36
-                 console.log('成功');
41
+ console.log('成功');
37
- }
42
+ }
38
- });
43
+ });
39
-
40
- }
44
+ }
45
+ });
41
46
  ```
42
47
 
43
48
 

1

記述ミス

2020/03/04 02:22

投稿

u-sukesan
u-sukesan

スコア161

title CHANGED
File without changes
body CHANGED
@@ -23,7 +23,7 @@
23
23
 
24
24
  呼び出し部分
25
25
  ```ここに言語を入力
26
- function ajax_form(req,param){
26
+ function ajax_form(){
27
27
  $.ajax({
28
28
  type: 'post',
29
29
  url: ajaxurl,