摘要: 如果显示汇总记录则需设置页脚属性:首先设置showFooter:true,然后后台计算出合计数据,一起传过来,类似如下:{"total":28,"rows":[{"productid":"FI-SW-01","unitcost":10.00,"status":"P","listprice":36.5... 阅读全文
posted @ 2014-04-15 09:53 rainylove 阅读(3014) 评论(0) 推荐(0) 编辑
摘要: javascript小数四舍五入1.function get(){ var s = 22.127456 + ""; var str = s.substring(0,s.indexOf(".") + 3); alert(str);}2. 正则表达式3.4.三、总结后,自己写了个javascript多位... 阅读全文
posted @ 2014-04-15 09:35 rainylove 阅读(209) 评论(0) 推荐(0) 编辑