摘要:
//日期格式化"2017-07-05" function formatTime(date) { var year = date.getFullYear(); var month = date.getMonth() + 1, month = month < 10 ? '0' + month : month; var day = date.getDate(), day = day < 10 ? '0' 阅读全文
摘要:
//获取url的参数,支持中文和英文 function getQuery(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); ... 阅读全文