- 博客(2)
- 资源 (1)
- 收藏
- 关注
转载 Joda-Time几个用法小记
1, 获取每天的零点DateTime dt=new DateTime().withMillisOfDay(0);System.out.println(dt.toString("yyyy-MM-dd HH:mm:ss"));//结果2016-09-09 00:00:002, 在每天的6:30处理一些东西DateTime dt=new DateTime().withHourOf
2017-07-18 08:47:44 622
原创 回调函数中window.open()被拦截
在回调函数中window.open默认是会被拦截的,因为浏览器判断它不是用户自己打开的,存在安全风险,所以可以伪造一个用户点击事件来避开,代码如下:function newWindow(url, id) { var a = document.createElement('a'); a.setAttribute('href', url); a.setAttribute('tar
2017-07-13 16:58:26 2399
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人