摘要:
获取当前时间: 获取一星期前的时间:var now = new Date(); function getPreMonth(date) { var arr = date.split('-'); var year = arr[0]; //获取当前日期的年份 var month = arr[1]; //获 阅读全文
摘要:
跨域的定义:JavaScript出于安全性考虑,同源策略机制对跨域访问做了限制。域仅仅是通过“URL的首部”字符串进行识别,“URL的首部”指window.location.protocol +window.location.host,也可以理解为“Domains, protocols and po 阅读全文