摘要:
基础属性:(只能做到超出一行部分省略号显示) width: 200px; //宽度 overflow: hidden; //超出文本隐藏 white-space: nowrap; //不换行,只显示一行 text-overflow: ellipsis; //超出部分省略号显示 CSS3属性:(可做到 阅读全文
摘要:
Math.ceil() 向上取整 Math.floor() 向下取整 Math.round() 四舍五入 阅读全文
摘要:
function getWeek(y,m,d) { let day1 = new Date(y, parseInt(m) - 1, d); let day2 = new Date(y, 0, 1); let day = Math.round((day1.valueOf() - day2.valueO 阅读全文