2019年1月29日
摘要: 原因:底层视图高度超出百分百,加入弹窗后再苹果浏览器隐藏上下栏的情况下遮罩层没有完全遮住底层。 处理:打开弹窗后禁止底层滚动调用stop事件,关闭则开启底层滚动调用move事件。 let mo=function(e){e.preventDefault();}; stop(){ document.bo 阅读全文
posted @ 2019-01-29 18:09 羽丫头不乖 阅读(2801) 评论(0) 推荐(0)
摘要: vue实现的倒计时在苹果手机上无效,原因是因为后台返回的时间格式是‘2019-1-29 17:13:04’,而苹果手机只能解析这种时间格式‘YYYY/MM/DD HH:mm:ss’,修改后测试成功的代码如下: npm install moment -save; this.countdown(); c 阅读全文
posted @ 2019-01-29 17:16 羽丫头不乖 阅读(736) 评论(0) 推荐(0)
  2018年9月8日
摘要: 一、get方法获取数据 axios.get('url') .then(function (res) { console.log(res); }).catch(function (error) { console.log(error); }); 二、post方法新增数据 axios.post('url 阅读全文
posted @ 2018-09-08 16:29 羽丫头不乖 阅读(2769) 评论(0) 推荐(0)
  2018年9月7日
摘要: <template> <!--实现左侧导航条动态渲染(三级)--> <el-menu class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" :collapse="isCollapse" router unique- 阅读全文
posted @ 2018-09-07 20:41 羽丫头不乖 阅读(23818) 评论(2) 推荐(0)
  2017年4月28日
摘要: 1、js获取年月日 var now=new Date(); var yue = (now.getMonth()+1).length > 2 ? (now.getMonth()+1):"0"+(now.getMonth()+1); var ntime = now.getFullYear().toStr 阅读全文
posted @ 2017-04-28 16:08 羽丫头不乖 阅读(160) 评论(0) 推荐(0)
  2017年2月24日
摘要: MVC模型:Hibernate+Struts2 dao层: public List<UserBean> searchList(UserBean uBean,int pageIndex,int pageSize); impl层: @SuppressWarnings( "unchecked" ) pub 阅读全文
posted @ 2017-02-24 12:23 羽丫头不乖 阅读(285) 评论(0) 推荐(0)
  2017年2月22日
摘要: 引用链接:http://blog.csdn.net/w183705952/article/details/7367272 第二种:设置ID的增长策略是native,但是需要创建一个名字为hibernate_sequence(这个名字好像是hibernate默认的sequence名字,不创建会出错的) 阅读全文
posted @ 2017-02-22 12:18 羽丫头不乖 阅读(177) 评论(0) 推荐(0)
摘要: 引用链接:http://blog.csdn.net/w183705952/article/details/7367272 Hibernate在oracle中ID增长的方式 第一种:设置ID的增长策略是sequence,同时指定sequence的名字,最好每个表建一个sequence,此种做法就如同M 阅读全文
posted @ 2017-02-22 11:56 羽丫头不乖 阅读(189) 评论(0) 推荐(0)
  2016年12月22日
摘要: 1、只允许输入数字 <input type="text" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" /> 或 <input onke 阅读全文
posted @ 2016-12-22 17:17 羽丫头不乖 阅读(1820) 评论(0) 推荐(0)
  2016年12月17日
摘要: Myeclipse 版本10.1 加载的js报错,解决方法: window -> preferences -> myeclipse -> validation,在右边下拉框找到 JavaScript validation for js files 将其勾选取消,然后 apply, 然后保存 。 这样 阅读全文
posted @ 2016-12-17 19:03 羽丫头不乖 阅读(163) 评论(0) 推荐(0)