ITeye博客

propertygrid--1

youyang_java · 2014-06-18 17:28 · jquery-easyui-1.2.6 · Web前端 · Markdown

 

{"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 Settings","editor":{  
        "type":"validatebox",  
        "options":{  
            "validType":"email" 
        }  
    }}  
]}

 

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。