点击添加说明,获取本列的列标题
colNames保存到一个全局变量,假设全局变量名称为colNames,构造jqGrid时传递这个变量进行配置
添加说明获取td的下标后就可以得到标题了
<a href="alert(colNames[$(this).closest('td').index()])"