let now = new Date();
now.getFullYear() + "-" + now.getMonth() + "-25"
我想询问一下这个代表的是什么是表示2022-09-25?
+“-25”单纯的字符串拼接 不过 应该 now.getMonth()+1 再拼接才对
https://www.runoob.com/jsref/jsref-obj-date.html
参照现在的月份,getMonth()返回的是0-11的数字,也就是说0=1月,1=2月……11=12月
你type去了,然后 min 或者max,格式固定好就行