504efe8f by wang

init

1 parent 05732fbd
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
35 35
36 <div class="row cl col-sm-12"> 36 <div class="row cl col-sm-12">
37 <div class="col-sm-2"> 37 <div class="col-sm-2">
38 <button class="btn btn-primary btn-block" onclick="pass();">保存</button> 38 <button class="btn btn-primary btn-block" onclick="pass(<?=$id?>);">保存</button>
39 </div> 39 </div>
40 </div> 40 </div>
41 41
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
43 </body> 43 </body>
44 <script> 44 <script>
45 45
46 function pass() { 46 function pass(id) {
47 var data = $("#form1").serializeJson(); 47 var data = $("#form1").serializeJson();
48 $.ajax({ 48 $.ajax({
49 type: 'patch', 49 type: 'patch',
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!