diff --git a/src/views/tool.blade.php b/src/views/tool.blade.php
index c93ce2b..c84092b 100644
--- a/src/views/tool.blade.php
+++ b/src/views/tool.blade.php
@@ -179,27 +179,27 @@
params.param.map(function (val, index) {
var $trTemp = $("
");
//往行里面追加 td单元格
- $trTemp.append(""+ data[i].param_name +" | ");
- $trTemp.append(""+ data[i].param_type +" | ");
- $trTemp.append(""+ data[i].param_title +" | ");
- $trTemp.append(""+ data[i].param_default +" | ");
- $trTemp.append(""+ data[i].param_require +" | ");
- $trTemp.appendTo("#methodRequird");
+ $trTemp.append(""+ val.param_name +" | ");
+ $trTemp.append(""+ val.param_type +" | ");
+ $trTemp.append(""+ val.param_title +" | ");
+ $trTemp.append(""+ val.param_default +" | ");
+ $trTemp.append(""+ val.param_require +" | ");
+ $trTemp.appendTo("#paramRequird");
})
params.return.map(function (val, index) {
var $trTemp = $("
");
//往行里面追加 td单元格
- $trTemp.append(""+ data[i].return_name +" | ");
- $trTemp.append(""+ data[i].return_type +" | ");
- $trTemp.append(""+ data[i].return_title +" | ");
- $trTemp.appendTo("#methodRequird");
+ $trTemp.append(""+ val.return_name +" | ");
+ $trTemp.append(""+ val.return_type +" | ");
+ $trTemp.append(""+ val.return_title +" | ");
+ $trTemp.appendTo("#returnRequird");
})
params.code.map(function (val, index) {
var $trTemp = $("
");
//往行里面追加 td单元格
- $trTemp.append(""+ data[i].code +" | ");
- $trTemp.append(""+ data[i].content +" | ");
- $trTemp.appendTo("#methodRequird");
+ $trTemp.append(""+ val.code +" | ");
+ $trTemp.append(""+ val.content +" | ");
+ $trTemp.appendTo("#codeRequird");
})
}