---
title: "ligerui添加数据后total不及时更新"
author: "oppal"
date: "2013-01-02T21:24:25Z"
tags: []
categories: ["Web前端"]
slug: "ligerui-total"
draft: false
lastmod: "2013-01-02T21:25:53Z"
id: 1758590
url: "https://oppal.iteye.com/blog/1758590"
---

grid.js  里 1337行

```js
p.total = p.total ? (Number(p.total) + 1) : 1;
g.data[p.record] = p.total;
```

加个number（）函数，增加后面那行去更新g.data里的total