ext提高效率的办法:
1采用flyweight:
-->原来的方法:
Ext.get('myid').highlight('FF0000',{
endColor:'0000FF',druation:3
});
--改进后的办法:
Ext.fly('myid').highlight
('FF0000',{
endColor:'0000FF',druation:3
});
2.如何保存两位小数
var num = 2;
parseFloat(num).toFIxed(2); //2.00