html+js
公子肆
最不像码农的码农
展开
-
js 加减天数
var days = 1;(加减天数)var date = Date.parse(new Date('2021-10-26'))/1000;//转为时间戳date += (86400) * days;//修改后的时间戳var newDate = new Date(parseInt(date) * 1000);//转换为时间//最终结果var newdate = newDate.getFullYear() + '-' + (newDate.getMonth() + 1) + '-' + newDat原创 2021-10-26 17:13:15 · 225 阅读 · 0 评论 -
checkbox 控制 隐藏显示
<!DOCTYPE html><html><head> <title>ttt</title></head><body> <input type="checkbox" name="ss" value="1" onclick="ss($(this))"/> 使用时间 <...原创 2019-08-14 10:20:21 · 5303 阅读 · 0 评论