摘要: 1 >>> movies=["The Holy Grail", 1975, "The Life of Brian", 1979, "The Meaning of Life", 1983] 2 >>> for eachMovie in movies: 3 print(eachMovie)按下两个回车后输出结果如下:1 The Holy Grail2 19753 The Life of Brian4 19795 The Meaning of Life6 1983列表中还可以存储其他列表!movies = 阅读全文
posted @ 2013-12-23 21:56 ibg 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 据介绍,jqgrid有3种编辑数据的方式:Cell Editing 只允许修改某一个单元格内容Inline Editing 允许在jqGrid中直接修改某一行的数据Form Editing 弹出一个新的编辑窗口进行编辑和新增Form Editing很方便,直接把oper参数传递给Controller进行判断是add还是edit还是del,然后相应处理即可。大致如:string operation = form["oper"];if (operation.Equals("add")){...}else if (operation.Equals(" 阅读全文
posted @ 2013-12-23 11:29 ibg 阅读(1084) 评论(3) 推荐(1) 编辑