jQuery EasyUI插件实例化编程



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

try this,

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

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

链接到演示

最新更新