我有一个EasyUI数据网格,有两个相同的字段,如下所示:
<th data-options="field:'listprice',width:80,align:'right',formatter:formatPrice">List Price</th>
<th data-options="field:'listprice',width:80,align:'right',formatter:formatPriceToWords">List Price</th>
我有两个函数用于格式化价格值,但对于这些列,只应用第一列的格式化程序。
我有一个JSFIDDLE,它准确地显示了问题所在,下面是链接:
http://jsfiddle.net/pouya_devil/vrbjudpz/2/