- 注册时间
- 2014-5-24
- 最后登录
- 2015-2-5
- 阅读权限
- 10
- 积分
- 310
- 精华
- 0
- 帖子
- 90
|
felt 发表于 2014-11-20 15:44
你觉得你这些代码我能运行出效果吗?
请重新做一个简单页面来重现问题
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>记账</title>
<script src="${ctx}/js/validation/validation.js"
type="text/javascript"></script>
</head>
<body style="height:98%; width:99%;background:white;">
<form id="form1">
<div id="datagrid1" class="mini-datagrid" style="width:800px;height:200px;" idField="id"
url="${ctx}/login/loanaccounts!query.action"
allowResize="true" pageSize="20" showFooter="false"
allowCellEdit="true" allowCellSelect="true" multiSelect="true" oncellendedit="checkCourse"
editNextOnEnterKey="true" editNextRowCell="true">
<div property="columns">
<div type="indexcolumn"></div>
<div type="checkcolumn"></div>
<div name="course" field="course" displayField="courseField" headerAlign="center" width="150" >
科目
<input id="courseId" name="courseId" property="editor" class="mini-buttonedit" width="300px" onbuttonclick="onButtonEdit" />
</div>
</div>
</div>
</form>
</div>
<script type="text/javascript">
mini.parse();
var grid = mini.get("datagrid1");
var newRow = {};
grid.addRow(newRow);
grid.beginEditCell(newRow);
grid.updateRow(newRow,{course:"123",courseField:"例子"});
</script>
</body>
</html>
版主看一下 代码运行后 course和courseField一直是一样的数据 麻烦了 |
|