后台注解 前台: 加个事件 @on-change @on-change="getStartTime" getStartTime(starTime) { this.leaveRecord.pDate = starTime; },…
使用iview的datepicker时间选择器发现获取的value值是比实际要少一天,严格来说应该是时间格式不一样,datepicker获取的时间是UTC时间格式,也就是:yyyy-MM-ddTHH:mm:ssZ  这种时间格式. 在php里,可以这样转化: date_default_timezone_set('PRC');$start_time =date('Y-m-d', strtotime(@$params['start_time']));$end_time = date('Y-m-d',…
spring时间(date)无法转入后台 Type Status Report Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routi…
最近使用iView - DatePicker组件时发现一些问题,明明设置是正常的日期时间格式,当需要使用这个时间的时候,页面却显示 Fri Jun 09 2017 12:00:10 GMT+0800 (中国标准时间) ,见下面实例: <template> <DatePicker v-model="time" type="datetime" @on-change="time=$event" placeholder="Se…
0x01 前言 在使用Yii框架的扩展memcache缓存的时候,存储数据有一个set方法,来看一下set方法的原型: public boolean set(string $id, mixed $value, integer $expire=0, ....) 第一个参数时设置键名的,第二个参数是设置要缓存的值也就是键值,第三个参数是设置缓存的时间多久失效(默认是0,也就是永远不失效,如果不为0,最大为30天,也就是2592000秒),如果设置为1,就缓存1秒也就是1秒后失效 当不设置缓存的时间时…
兼容requestAnimationFrame let lastTime = 0 let vendors = ['ms', 'moz', 'webkit', 'o'] for (let x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'] window.c…
var check = [];//定义一个空数组 $("input[name='category']:checked").each(function(i){//把所有被选中的复选框的值存入数组 check[i] =$(this).val(); }); $.ajax({ type : "post", url : "${ctx}/ask/ask/check", data : {"check":check}, traditional…
第一步:当应用被处于后台时,调用计时器的start()方法,开始计时 在所有Activity继承的BaseSwiBackAct中的 public void onStop() { EventBus.getDefault().unregister(this); OneTimerFactory.getTimer().start(); super.onStop(); } 第二步:当用户重新唤醒应用时,弹出对话框 protected void onStart() { //a是判断是否登录失效的标志位 if…
$(document).ready(function(){ //输入框事件 $('#probation').bind('input propertychange', function() { var induction = $("#induction").val();//取出时间 if (""==induction||null==induction||undefined==induction){ return alert("请先输入入职日期");…
x HTML <script src="//unpkg.com/vue/dist/vue.js"></script> <script src="//unpkg.com/iview/dist/iview.min.js"></script> <div id="app"> <row> <i-col span="> <date-picker type=&q…