当前位置:网站首页>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;
}}
边栏推荐
- Become a Contributor in 30 minutes | How to participate in OpenHarmony's open source contributions in multiple ways?
- LeetCode 0152. Product Maximum Subarray: dp + Roll in Place
- Website construction process
- Keras deep learning practice - traffic sign recognition
- MySQL中超键、主键及候选键的区别是什么
- DAO开发教程【WEB3.0】
- [Kapok] #Summer Challenge# Hongmeng mini game project - Sudoku (3)
- Redis启动时提示Creating Server TCP listening socket *:6379: bind: No error
- Choosing the right DevOps tool starts with understanding DevOps
- 百度无人驾驶商业化已“上路”
猜你喜欢

Prometheus的Recording rules实践

Risc-v Process Attack

odoo coding conventions (programming conventions, coding guidelines)

力扣刷题之求两数之和

GZIPOutputStream 类源码分析

kubernetes - deploy nfs storage class

【蓝桥杯选拔赛真题47】Scratch潜艇游戏 少儿编程scratch蓝桥杯选拔赛真题讲解

通配符 SSL/TLS 证书

无需破解,官网安装Visual Studio 2013社区版

Win11怎么安装语音包?Win11语音包安装教程
随机推荐
kubernetes-部署nfs存储类
#yyds dry goods inventory# Interview must brush TOP101: the last k nodes in the linked list
DAO开发教程【WEB3.0】
MySQL database - stored procedures and functions
Live chat system technology (8) : vivo live IM message module architecture practice in the system
COS User Practice Call for Papers
To drive efficient upstream and downstream collaboration, how can cross-border B2B e-commerce platforms release the core value of the LED industry supply chain?
在全志V853开发板试编译QT测试
SaaS管理系统的应用优势在哪里?如何高效提升食品制造业数智化发展水平?
在表格数据上,为什么基于树的模型仍然优于深度学习?
Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021:解读
Win11怎么安装语音包?Win11语音包安装教程
用VS2013编译带boost库程序时提示 fatal error C1001: 编译器中发生内部错误
Win11校园网无法连接怎么办?Win11连接不到校园网的解决方法
C#/VB.NET 从PDF中提取表格
odoo coding conventions (programming conventions, coding guidelines)
MySQL中超键、主键及候选键的区别是什么
TestNG multiple xml for automated testing
【LeetCode】Day109-最长回文串
The XML configuration