jq easyui开发考试系统

好长时间没有写了,有时侯不知道该写些什么,我想还是把开发过程中的一些问题总结一下吧,原来也没有正式使用easyui去做一个完整的项目,

(1)在传递参数时,如果参数是数字和‘-’的组合要注意了,在传递参数时一定要用单引号括起来,否则在传递到服务器端会进行eval()计算的,也就是传递到服务器端后参数值会发生改变的


(2)在使用grid 行信息添加时,保存成功后同时修改编号单元格


根据服务器端保存成功后,返回最新ID,并在客户端进行单元格内容的修改


 $("#grid").datagrid('updateRow',{index:editIndex,row:{t_id:obj.id}});

(3)在多个grid进行记录移动时,删除记录从后往前删,如果使用each遍历的话,会有问题的


代码:

for (var i = rows.length - 1; i >= 0; i--) 
        {  
        var index = $('#nlist').datagrid('getRowIndex',rows[i]);  
         $("#hlist").datagrid("appendRow",{
        at_id:rows[i].at_id,//字段
        at_desc:rows[i].at_desc//字段
        });
       $('#nlist').datagrid('deleteRow', index);  
       
              }  


相关推荐
<p><span style="font-size: 20px; color: #ff0000;">本课程演示的是一套基于JavaWeb实现的《在线考试管理系统</span><span style="color: #ff0000; font-size: 20px;">》</span><span style="color: #ff0000; font-size: 20px;">,主要针对计算机相关专业的正在做毕设的学生与需要项目实战练习的Java学习者。</span></p> <p> </p> <p><span style="color: #ff0000;"><span style="font-size: 18px;">1. 包含:<span style="color: #ffff00; background-color: #ff0000;">项目源码、项目文档、数据库脚本、软件工具</span>等所有资料</span></span></p> <p><span style="color: #ff0000; font-size: 18px;">2. 手把手的带你从零开始部署运行本套系统</span></p> <p><span style="color: #ff0000; font-size: 18px;">3. 该项目附带的源码资料可作为毕设使用</span></p> <p><span style="color: #ff0000; font-size: 18px;">4. 提供技术答疑和远程协助指导</span></p> <p><span style="color: #ff0000; font-size: 18px;"> </span></p> <p><span style="color: #ff0000; font-size: 18px;"> </span></p> <p><span style="color: #ff0000; font-size: 18px;"><span style="color: #000000;">相关技术工具:</span><br /></span></p> <p><span style="color: #ff0000; font-size: 18px;"><span><span style="color: #000000;"><span style="color: #333333;">JDK8、MySQL5.6、Eclipse</span></span></span></span></p> <p><span style="color: #ff0000; font-size: 18px;"><span style="color: #000000;"><span style="color: #333333;">Spring、MyBatis、</span></span></span><span style="color: #6a737d; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;">C3P0,</span><span style="color: #000000;"><span style="color: #333333;">Bootstrap、jQuery,</span></span><span style="color: #6a737d; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;">EasyUi</span></p> <p><span style="color: #ff0000; font-size: 18px;"> </span></p> <p><span style="color: #ff0000; font-size: 18px;"> </span></p> <p> </p> <p><span style="font-size: 20px; color: #494429;">项目截图</span><span style="font-size: 20px;">:</span></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="46">1)系统界面</p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="48"><img style="box-sizing: content-box; border-style: none; max-width: 100%; background-color: #ffffff;" src="https://img-blog.csdnimg.cn/20210313232146190.png?ynotemdtimestamp=1615515912090" alt="在这里插入图片描述" data-src="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210313232146190.png" data-processed="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210313232146190.png" /></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="50">2)考试系统登入</p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="52"> </p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="54">3)在线考试</p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="56"><img style="box-sizing: content-box; border-style: none; max-width: 100%; background-color: #ffffff;" src="https://img-blog.csdnimg.cn/20210313232310457.png?ynotemdtimestamp=1615515912090" alt="在这里插入图片描述" data-src="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210313232310457.png" data-processed="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210313232310457.png" /></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="58">4)成绩查询</p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="60"><img style="box-sizing: content-box; border-style: none; max-width: 100%; background-color: #ffffff;" src="https://img-blog.csdnimg.cn/20210313232429922.png?ynotemdtimestamp=1615515912090" alt="在这里插入图片描述" data-src="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210313232429922.png" data-processed="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210313232429922.png" /></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="62">5)个人信息修改</p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="64"><img style="box-sizing: content-box; border-style: none; max-width: 100%; background-color: #ffffff;" src="https://img-blog.csdnimg.cn/20210313232551957.png?ynotemdtimestamp=1615515912090" alt="在这里插入图片描述" data-src="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210313232551957.png" data-processed="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210313232551957.png" /></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="66">6)后台登录</p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="68"><img style="box-sizing: content-box; border-style: none; max-width: 100%; background-color: #ffffff;" src="https://img-blog.csdnimg.cn/20210313232623354.png?ynotemdtimestamp=1615515912090" alt="在这里插入图片描述" data-src="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210313232623354.png" data-processed="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210313232623354.png" /></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="70">7)后台</p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="72"><img style="box-sizing: content-box; border-style: none; max-width: 100%; background-color: #ffffff;" src="https://img-blog.csdnimg.cn/20210314112809741.png?ynotemdtimestamp=1615515912090" alt="在这里插入图片描述" data-src="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210314112809741.png" data-processed="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210314112809741.png" />)</p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="74">8)考生成绩</p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="76"><img style="box-sizing: content-box; border-style: none; max-width: 100%; background-color: #ffffff;" src="https://img-blog.csdnimg.cn/20210314112850523.png?ynotemdtimestamp=1615515912090" alt="在这里插入图片描述" data-src="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210314112850523.png" data-processed="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210314112850523.png" /></p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="78">9)套题信息管理</p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="80"><img style="box-sizing: content-box; border-style: none; max-width: 100%; background-color: #ffffff;" src="https://img-blog.csdnimg.cn/20210314112919327.png?ynotemdtimestamp=1615515912090" alt="在这里插入图片描述" data-src="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210314112919327.png" data-processed="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210314112919327.png" />)</p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="82">10)考题管理</p> <p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, 微软雅黑, 'PingFang SC', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, 宋体, Heiti, 黑体, sans-serif; font-size: 14px;" data-source-line="84"><img style="box-sizing: content-box; border-style: none; max-width: 100%; background-color: #ffffff;" src="https://img-blog.csdnimg.cn/20210313232909954.png?ynotemdtimestamp=1615515912090" alt="在这里插入图片描述" data-src="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210313232909954.png" data-processed="https%3A%2F%2Fimg-blog.csdnimg.cn%2F20210313232909954.png" /></p> <p><span style="color: #ff0000; font-size: 18px;"> </span></p> <p><span style="color: #ff0000; font-size: 18px;"> </span></p> <p><span style="color: #ff0000; font-size: 18px;">更多毕设项目请关注【毕设系列课程】</span></p> <p><span style="color: #ff0000; font-size: 18px;"> </span></p>
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页