function showURL(value, metaData, record){

news/2024/7/4 23:48:38

columns:[
{id:"id",header:"标单编号",width:120,sortable:true,dataIndex:"orderNo"},
{header:"产品名称",width:180,sortable:true,dataIndex:"productName"},
{header:"交易开始时间",width:150,sortable:true,dataIndex:"startDate"},
{header:"交易结束时间",width:150,sortable:true,dataIndex:"endDate"},
{header:"交易决标时间",width:150,sortable:true,dataIndex:"dueDate"},
{header:"状态",width:50,sortable:true,renderer:status,dataIndex:"status"},
{header:"操作",width:50,renderer:showURL,dataIndex:"orderNo"}
]

function showURL(value, metaData, record){
return "<a href='"+record.get("dueDate")+"'>查看</a>";
}

通过record.get("")可以获得,供参考


http://www.niftyadmin.cn/n/4588566.html

相关文章

MySQL字符型数据区分大小写

2019独角兽企业重金招聘Python工程师标准>>> MySQL字符型数据区分大小写 MySQL存储字符类型的值时默认是不区分大小写的。所以在select时如果不指定‘binary’关键字时&#xff0c;默认返回的值是忽略大小的。 1 CREATE TABLE test_t1 ( 2 VR_WEB_ACCOUNT varchar(1…

文本框添加事件

new Ext.Toolbar.TextItem(工具条&#xff1a;), { xtype:textfield, listeners: { render: function(p) { // Append the Panel to the click handlers argument list. p.getEl().on(click, function(p){ //处理点击事件代码 …

JS基础知识(数组)

1&#xff0c;数组 var colors new Array(); var colors new Array(20); var colors new Array(“red”, “blue”, “green”); var colors new Array(3); //create an array with three items var names new Array(“Greg”); //create an array with one item, the str…

单元格编辑后事件处理

//创建edgrid.js Ext.onReady(function(){ Ext.QuickTips.init(); // 格式化日期显示 function formatDate(value){ return value ? value.dateFormat(Y, M d) : ; } // 格式化性别显示,这是个 renderer, 渲染器 function formatSex(value) { return value ? "男" …

AjaxPro.dll,asp.net 前台js调用后台方法(无刷新)

1、什么是Ajax Ajax是异步Javascript和XML(Asynchronous JavaScript and XML)的英文缩写。"Ajax"这个名词的发明人是Jesse James Garrett,而大力推广并且使Ajax技术炙手可热的是Google。Ajax的核心理念在于使用XMLHttpRequest对象发送异步请求。 &#xff12;、为什么…

iOS适配UIViewView/WKWebView,H5生成长图,仿微信进度条

前段时间撸代码猥琐发育的时候&#xff0c;设计师老王给了张截图某宝APP上一个生成长图分享的功能&#xff0c;正好公司有这个需求&#xff0c;于是在立马开始操练起来&#xff01;在万能的度娘上搜集整理资料后发现很多文章介绍的方案对WKWebView不适用&#xff0c;iOS8.0后的…

Extjs grid如何为指定的列添加事件

var cm new Ext.grid.ColumnModel([{header : "测定项目",width : 150,sortable : true,dataIndex : "program",align : "center",listeners :{click:function(){alert("ssssss")}} ------------------ 就是在Grid里面有数量、单价…

GHOST 漏洞可能影响 WordPress 和 PHP 应用

上周Glibc中发现了一个被取名为GHOST可被远程利用的堆缓冲区溢出漏洞&#xff0c;漏洞其实已被上游修复&#xff0c;但由于被视为bug而导致部分下游发行版没有打上补丁&#xff0c;受影响的发行版包括了Centos/RHEL 5、6和7&#xff0c;以及Ubuntu 12.04等。现在&#xff0c;安…