在列映射的时候就要设定渲染方式
Js代码 var colModel = new Ext.grid.ColumnModel([ { header: "$ Sales", width: 100, sortable: true, renderer: heihei} ]); 渲染的函数写成如下:
Js代码 function heihei(value, meta, rec, rowIdx, colIdx, ds){ return ''+ value +''; } 顶部需要加入Js代码 Ext.QuickTips.init(); qtitle代表tip的标题, qtip代表内容。这时鼠标划过就会出现提示!