var rooturl = "../../jsonHttpServlet?channelNo=1"; var GetToJson; var LLid function lisize(sel) { $('.frmb li').each(function() { $(this).change(function() { var LLid = $(this).attr('id'); if (sel[sel.selectedIndex].value == "full") { $("#" + LLid).addClass('width100'); $("#" + LLid).removeClass('width50'); $("#" + LLid).removeClass('width30'); $("#" + LLid).removeClass('width20'); } else if (sel[sel.selectedIndex].value == "half") { $("#" + LLid).addClass('width50'); $("#" + LLid).removeClass('width100'); $("#" + LLid).removeClass('width30'); $("#" + LLid).removeClass('width20'); } else if (sel[sel.selectedIndex].value == "third") { $("#" + LLid).addClass('width30'); $("#" + LLid).removeClass('width50'); $("#" + LLid).removeClass('width100'); $("#" + LLid).removeClass('width20'); } else if (sel[sel.selectedIndex].value == "twenty") { $("#" + LLid).addClass('width20'); $("#" + LLid).removeClass('width50'); $("#" + LLid).removeClass('width100'); $("#" + LLid).removeClass('width30'); } }); }); } window.sessionStorage.removeItem('formData'); jQuery(function($) { var fields = []; var replaceFields = []; var actionButtons = []; var templates = { inputButton : function(fieldData) { return { field : '<input id="' + fieldData.name + '" name="' + fieldData.name + '" class="form-control input_button" onclick> <button class="btn btn-primary">选择</button', } }, // inputButton : function(fieldData) { // return { // field : '<input id="' + fieldData.name + '" name="' + fieldData.name + '" class="form-control input_button" onclick> ', // onclick: function() { // alert(111) // } // } // }, }; var inputSets = [ { label : '模版示例', name : 'user-details', id : 'llo', icon : '
转载于:https://blog.51cto.com/zifeng5966/2088642