0e2defe1 by yangjianbin

init

1 parent 75df1306
...@@ -58,14 +58,14 @@ ...@@ -58,14 +58,14 @@
58 } 58 }
59 }); 59 });
60 $("#work_add_btn").click(function(){ 60 $("#work_add_btn").click(function(){
61 var targetUrl = $("#addForm").attr("action"); 61 var targetUrl = $("#work_add").attr("action");
62 var data = $("#addForm").serialize(); 62 var data = $("#work_add").serialize();
63 $.ajax({ 63 $.ajax({
64 type:'post', 64 type:'post',
65 url:apiBaseUrl + targetUrl, 65 url:apiBaseUrl + targetUrl,
66 cache: false, 66 cache: false,
67 data:data, 67 data:data,
68 dataType:'json', 68 // dataType:'json',
69 success:function(data){ 69 success:function(data){
70 alert('success'); 70 alert('success');
71 }, 71 },
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!