分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 技术分享

用JSON文本动态创建DataGrid

发布时间:2023-09-06 02:25责任编辑:沈小雨关键词:暂无标签
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> ?<head> ???<title>表格</title> ???<meta http-equiv="content-type" content="text/html; charset=UTF-8"> ???????<!-- 引入css文件,无顺序 --> ???<link rel="stylesheet" href="themes/icon.css" type="text/css"></link> ???<link rel="stylesheet" href="themes/default/easyui.css" type="text/css"></link> ?????????<!-- 引入js文件,有顺序 --> ???<script type="text/javascript" src="js/jquery.min.js"></script> ???<script type="text/javascript" src="js/jquery.easyui.min.js"></script> ?</head> ?<body> ???????????<table border="2" align="center" class="easyui-datagrid"> ???????<thead> ???????????<tr> ???????????????<th data-options="field:‘id‘">编号</th> ???????????????<th data-options="field:‘name‘">姓名</th> ???????????????<th data-options="field:‘sal‘">薪水</th> ???????????????<th data-options="field:‘sex‘">性别</th> ???????????</tr> ???????</thead> ???????<tbody> ???????????<tr> ???????????????<td>1</td> ???????????????<td>哈哈</td> ???????????????<td>6000</td> ???????????????<td>男</td> ???????????</tr> ???????????<tr> ???????????????<td>2</td> ???????????????<td>呵呵</td> ???????????????<td>7000</td> ???????????????<td>男</td> ???????????</tr> ???????????<tr> ???????????????<td>3</td> ???????????????<td>嘻嘻</td> ???????????????<td>8000</td> ???????????????<td>女</td> ???????????</tr> ???????</tbody> ???</table> ?????</body></html>

用JSON文本动态创建DataGrid

原文地址:https://www.cnblogs.com/loaderman/p/10059867.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved