jQuery MiniUI

 找回密码
 立即注册
查看: 2379|回复: 1
打印 上一主题 下一主题

关于主从表录入问题 [复制链接]

Rank: 6Rank: 6

跳转到指定楼层
楼主
发表于 2013-4-23 12:11:03 |只看该作者 |倒序浏览
看了那个示例页面,那个json
{"form":{"id":"","dept_name":"kkkk","dept_id":"kkkkk"},"data":[{"loginname":"New Row","_state":"added","_uid":5},{"loginname":"New Row","_state":"added","_uid":4},{"loginname":"New Row","_state":"added","_uid":3},{"loginname":"New Row","_state":"added","_uid":2},{"loginname":"New Row","_state":"added","_uid":1},{"loginname":"New Row","_state":"added","_uid":0}]}"

"form":{"id":"","dept_name":"kkkk","dept_id":"kkkkk"}  为什么没有"_state":"added"状态呢?

还有:

为什么没有"_state":"added"状态呢?
就说我怎么分清楚是“新增、修改、删除”状态呢?

Rank: 8Rank: 8

沙发
发表于 2013-4-23 12:37:46 |只看该作者
表单只是一行数据的详细的展现,具体这条数据是新增还是修改,在你的data:[{...}]里面已经表示出来了

Archiver|普加软件

GMT+8, 2024-11-28 05:45 , Processed in 1.035062 second(s), 10 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部