![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
存数据
HXD933644
这个作者很懒,什么都没留下…
展开
-
jsp的实现全选全不选
id为<td>id <input type="checkbox" id="ids" onchange="selAll()"> </td>获取的id为<td>${f.ddid} <input type="checkbox" value="${f.ddid}" name="id"> </td>实现的单击方法为function selAll(){ $("[name=id]").each(function(){ $(原创 2020-05-10 16:16:24 · 355 阅读 · 0 评论 -
jsp里的分页,用pageinfo的
在c:foreach外面加<tr align="center"> <td colspan="100">当前是第${list.pageNum}/${list.pages}页,共${list.total}条数据 <a href="list?page=1">首页</a> <c:if test="${list.prePage>=1}"><a href="list?page=${list.prePage }">上一页原创 2020-05-10 16:03:05 · 1162 阅读 · 0 评论 -
获取头像
我们在获取头像时只需要前台这么写<td><img src="/pic/${f.tx}" width="50px" height="px"></td>然后数据库中再写上图片在pic里面的名字+后缀,即可获取到头像原创 2020-05-10 15:41:28 · 274 阅读 · 0 评论 -
报错 Expected one result (or null) to be returned by selectOne(), but found: 3
我们在运行项目是报错 Expected one result (or null) to be returned by selectOne(), but found: 3多半是因为ServiceImpl里发送到dao层接口是未重新定义只需改成@Override public PageInfo<Doctor> list(Vo vo,int page) { PageHelper.startPage(page, 3); return new PageInfo<Doctor>原创 2020-05-10 15:32:22 · 1426 阅读 · 0 评论 -
三种存储方式的差别,以及所用时间
JDK: 100000 jdk存储方式 耗时445毫秒JSON 100000 JSON存储方式 耗时403毫秒HashMap 100000 HASH存储方式 耗时400毫秒HashMap 最快https://github.com/hexudong666/week2_32.git...原创 2020-03-02 15:24:03 · 262 阅读 · 0 评论