首页 > 其他 > 详细

设置自定义扩展属性及展示布局

时间:2018-03-19 18:05:58      阅读:182      评论:0      收藏:0      [点我收藏+]
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 : '

设置自定义扩展属性及展示布局

原文:http://blog.51cto.com/zifeng5966/2088642

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!