diff --git a/Bench4Q-Web/src/main/webapp/bench4q-css/plugin.css b/Bench4Q-Web/src/main/webapp/bench4q-css/plugin.css index a485e895..52b88c4d 100644 --- a/Bench4Q-Web/src/main/webapp/bench4q-css/plugin.css +++ b/Bench4Q-Web/src/main/webapp/bench4q-css/plugin.css @@ -48,7 +48,6 @@ table, th, td,thead,tbody #pluginArea{ width:280px; height:340px; - border:solid #A0D0EC thin ; margin-bottom:15px; outline-style: outset; @@ -57,7 +56,6 @@ table, th, td,thead,tbody #behaviorArea{ width:280px; height:340px; - border:solid #A0D0EC thin ; margin-bottom:15px; outline-style: inset; } diff --git a/Bench4Q-Web/src/main/webapp/script/plugin-new.js b/Bench4Q-Web/src/main/webapp/script/plugin-new.js index fdd1a56c..68a40927 100644 --- a/Bench4Q-Web/src/main/webapp/script/plugin-new.js +++ b/Bench4Q-Web/src/main/webapp/script/plugin-new.js @@ -212,6 +212,7 @@ function loadMethodParams(behaviorData, behaviorIndex) { for (var i = 0; i < data.length; i++) { methodParams.push(data[i]); } + alert(methodParams.length); for (var j = 0; j < methodParams.length; j++) { var methodParamModel = new MethodParamModel( methodParams[j].name, @@ -220,6 +221,10 @@ function loadMethodParams(behaviorData, behaviorIndex) { methodParams[j].fieldSeperator, methodParams[j].paramType, methodParams[j].methodParamProperties); + if(methodParamModel!=null){ + alert("load methodParam..."); + alert("name="+methodParamModel.name); + } var methodParamProperties=new Array(); for(var q=0;q" + fieldHTML + "
"; + if(documentHtml==""){ + alert("documentHtml is null"); + } document.getElementById("showPluginMethod").innerHTML += documentHtml; }); + return } // 创建一个label加一个input的域 @@ -426,21 +435,21 @@ function createTable(methodParamModel, cols, behaviorIndex) { * document.createTextNode(name); */ - var th = document.createElement("th"); + var tr = document.createElement("tr"); var tr_content = document.createElement("tr"); for (var i = 0; i < table_content.length; i++) { - var td = document.createElement("td"); + var th = document.createElement("th"); var text = document.createTextNode(table_content[i]); var td_content = document.createElement("td"); var text_content = document.createTextNode(""); - td.appendChild(text); - th.appendChild(td); + th.appendChild(text); + tr.appendChild(td); td_content.appendChild(text_content); tr_content.appendChild(td_content); } - var tableHead = th.innerHTML + tr_content.innerHTML; + var tableHead = tr.innerHTML + tr_content.innerHTML; var tableHtml = "