---
title: "propertygrid--1"
author: "youyang_java"
date: "2014-06-18T17:28:19Z"
tags: []
categories: ["Web前端"]
slug: "propertygrid-1"
draft: false
lastmod: "2014-06-18T17:28:19Z"
id: 2080484
url: "https://youyang-java.iteye.com/blog/2080484"
---

![](http://dl2.iteye.com/upload/attachment/0098/1412/c077022d-7e55-3594-bc37-a93bb34f12f5.png)

 

{"total":4,"rows":[    
    {"name":"Name","value":"Bill Smith","group":"ID Settings","editor":"text"},    
    {"name":"Address","value":"","group":"ID Settings","editor":"text"},    
    {"name":"SSN","value":"123-456-7890","group":"ID Settings","editor":"text"},    
    {"name":"Email","value":"[bill@gmail.com","group":"Marketing](mailto:bill@gmail.com%22,%22group%22:%22Marketing) Settings","editor":{    
        "type":"validatebox",    
        "options":{    
            "validType":"email"   
        }    
    }}    
]}

 

 &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;  
&lt;html&gt;  
  &lt;head&gt;  
   
    &lt;meta http-equiv="keywords" content="keyword1,keyword2,keyword3"&gt;  
    &lt;meta http-equiv="description" content="this is my page"&gt;  
    &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt;  
     
    &lt;!-- easyui的样式 --&gt;  
    &lt;link rel="stylesheet" type="text/css" href="../jslib/jquery-easyui-1.3.1/themes/default/easyui.css"&gt;  
    &lt;!-- 小图标的样式 --&gt;  
    &lt;link rel="stylesheet" type="text/css" href="../jslib/jquery-easyui-1.3.1/themes/icon.css"&gt;  
     
    &lt;script type="text/javascript" src="../jslib/jquery-easyui-1.3.1/jquery-1.8.0.min.js"&gt;&lt;/script&gt;  
    &lt;script type="text/javascript" src="../jslib/jquery-easyui-1.3.1/jquery.easyui.min.js"&gt;&lt;/script&gt;  
    &lt;script type="text/javascript" src="../jslib/jquery-easyui-1.3.1/locale/easyui-lang-zh\_CN.js"&gt;&lt;/script&gt;  
   
 &lt;script type="text/javascript"&gt;  
    
  $(function(){  
    
   $('#pg').propertygrid({    
       url: 'propertygrid.json',    
       showGroup: true,    
       scrollbarSize: 0,  
       showHeader : false  
   });   
  });  
    
 &lt;/script&gt;  
   
  &lt;/head&gt;  
   
  &lt;body&gt;   
   &lt;table id="pg" style="width:300px"&gt;&lt;/table&gt;   
  &lt;/body&gt;  
&lt;/html&gt;