摘要:
//获取系统当前时间 //获取系统当前时间 var nowdate = new Date(); var nowdate = new Date(); var y = nowdate.getFullYear(); var y = nowdate.getFullYear(); var m = nowdat 阅读全文
摘要:
用JavaScript获取伪元素(pseudo-element)属性 var color=window.getComputedStyle( document.querySelector('.element'),'bafora' ).getPropertyValue('color'); var con 阅读全文
摘要:
// 计算年龄 获取时间 和本地时间对比function jsGetAge(strBirthday){ var returnAge; var strBirthdayArr=strBirthday.split("-"); var birthYear = strBirthdayArr[0]; var b 阅读全文