diff --git a/Bench4Q-Web/src/main/webapp/script/editor/createScript.js b/Bench4Q-Web/src/main/webapp/script/editor/createScript.js index b303d29a..5c9f5c1d 100644 --- a/Bench4Q-Web/src/main/webapp/script/editor/createScript.js +++ b/Bench4Q-Web/src/main/webapp/script/editor/createScript.js @@ -1,6 +1,7 @@ $(function() { $("#tabs").tabs(); var usePlugin = new UsePlugin(); + //初始化所有可选的插件 usePlugin.getPluginList(); var behavior = new Behavior(); var collectScriptData = new CollectScriptData(usePlugin, behavior); diff --git a/Bench4Q-Web/src/main/webapp/script/editor/uiFactory.js b/Bench4Q-Web/src/main/webapp/script/editor/uiFactory.js index 8a3acbed..96696b3e 100644 --- a/Bench4Q-Web/src/main/webapp/script/editor/uiFactory.js +++ b/Bench4Q-Web/src/main/webapp/script/editor/uiFactory.js @@ -1,10 +1,16 @@ function createRadioGroup(items,name,containerId){ for ( var i = 0; i < items.length; i++) { - var radio = createRadio(items[i],name); + var radio = createRadio(items[i],name,items[i]); $("#" + containerId).append(radio); } } +/** + * @param item 显示文本 + * @param name 统一radio + * @param id 方便label标签和div选择 + * @returns + */ function createRadio (item,name,id) { var line = $("