function ChangeDateFormat(val) {
if (val != null) {
var date = new Date(parseInt(val.replace("/Date(", "").replace(")/", ""), 10));
//月份为0-11,所以+1,月份小于10时补个0
var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) :
date.getMonth() + 1;
var currentDate = date.getDate() < 10 ? "0" + date.getDate() :
date.getDate();
return date.getFullYear() + "-" + month + "-" + currentDate;
}
return "";
}

最新文章

  1. 如何优化coding
  2. 用H5中的Canvas等技术制作海报
  3. 获取exr图片上像素点的颜色通道
  4. android帧动画,移动位置,缩放,改变透明度等动画讲解
  5. BZOJ 3223: Tyvj 1729 文艺平衡树
  6. sdk墙内更新方法
  7. POJ1942 Paths on a Grid(组合)
  8. 将HTML格式的String转化为HTMLElement
  9. .net mvc下的Areas和小写Url
  10. NIPS 2016论文:英特尔中国研究院在神经网络压缩算法上的最新成果
  11. FFPLAY的原理(六)
  12. [Swift]LeetCode492. 构造矩形 | Construct the Rectangle
  13. flask你一定要知道的上下文管理机制
  14. POJ 3280 - Cheapest Palindrome - [区间DP]
  15. selenium webdriver窗口切换(上)
  16. thymeleaf 标签使用方法
  17. WeX5入门之欢乐捕鱼打包
  18. InputStream中mark方法使用
  19. SpringBoot 获取前端页面参数的集中方式总结
  20. PDF通过剪裁来实现打印字体变大

热门文章

  1. 浏览器版本不支持页面示例 supper.html
  2. Windows2003远程桌面单会话登录
  3. POJ 1274 The Perfect Stall、HDU 2063 过山车(最大流做二分匹配)
  4. 2.线性表-Linked list
  5. run time
  6. CocoaPods for Xcode
  7. github for window的代理设置方法
  8. h5移动版云胶片系统
  9. vuejsLearn---通过手脚架快速搭建一个vuejs项目
  10. Python开发【前端】:JavaScript