当前位置:网站首页>easyUI中datagrid中的formatter里面向后台发送请求获取数据
easyUI中datagrid中的formatter里面向后台发送请求获取数据
2022-08-01 19:13:00 【reg183】
{
field:'typeId',title:'用户角色',width:100,sortable:true,align:'center',formatter:function(value,row,index){
var htmlObj = $.ajax({
url : "../queryRoleById",
type : "post",
async : false,
data : {
id:value}
});
var text = htmlObj.responseText;
var json = JSON.parse(text);
return json.name;
}}
边栏推荐
- Break the performance ceiling!AsiaInfo database supports more than 1 billion users, with a peak of one million transactions per second
- 如何记录分析你的炼丹流程—可视化神器Wandb使用笔记【1】
- Risc-v Process Attack
- Map传值
- Win11如何开启剪贴板自动复制?Win11开启剪贴板自动复制的方法
- 【软考软件评测师】基于规则说明的测试技术下篇
- C#/VB.NET 从PDF中提取表格
- 在全志V853开发板试编译QT测试
- 短视频软件开发,Android开发,使用Kotlin实现WebView
- kubernetes - deploy nfs storage class
猜你喜欢
随机推荐
odoo 编码规范(编程规范、编码指南)
Win11如何开启剪贴板自动复制?Win11开启剪贴板自动复制的方法
MySQL数据库————存储过程和函数
【综述专栏】IJCAI 2022 | 图结构学习最新综述:研究进展与未来展望
【1374. 生成每种字符都是奇数个的字符串】
vtk体绘制代码报错的解决办法(代码在vtk7,8,9中都能运行),以及VTK数据集网站
modbus bus module DAM-8082
哈哈!一个 print 函数,还挺会玩啊!
Source code analysis of GZIPOutputStream class
Hardware Bear Original Collection (Updated 2022/07)
Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021: Interpretation
1065 A+B and C (64bit)
对于web性能优化我有话说!
Keras深度学习实战——交通标志识别
Tencent Cloud Hosting Security x Lightweight Application Server | Powerful Joint Hosting Security Pratt & Whitney Version Released
Every calculation, & say what mean
PHP 安全最佳实践
Library website construction source code sharing
安徽建筑大学&杭州电子科技大学|基于机器学习方法的建筑可再生能源优化控制
DAO开发教程【WEB3.0】









