【问题标题】:jQuery EasyUI plugin instantiate programmaticallyjQuery EasyUI 插件以编程方式实例化
【发布时间】:2013-05-03 18:18:17
【问题描述】:

我需要以编程方式实例化一个easyUI propertygrid 并将其附加到一个div。这应该很容易,但我是 jQuery 和 EasyUI 的新手。

【问题讨论】:

    标签: javascript jquery jquery-easyui


    【解决方案1】:

    试试这个,

    HTML

    <div>
      <table id="pg" class="easyui-propertygrid" style="width:300px">
      </table>
    </div>
    

    JQUERY

    $('#pg').propertygrid({
       url:'path/to/json/file',
       showGroup:true,
       scrollbarSize:1
    }); 
    

    链接到demos

    【讨论】:

      猜你喜欢
      • 2010-09-17
      • 1970-01-01
      • 2013-08-11
      • 2020-12-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-22
      • 1970-01-01
      相关资源
      最近更新 更多