LIke-JS获取周/day.js
作者:互联网
一 like
mysql语句的like查询: "%end"
select * from honortable where name like '%${name}%' and date<='${date2}' and date>='${date1}' order by sum
% : 0/多个
_:任何单一字符
[]:指定范围 ([a-f]) 或集合 ([abcdef])
?:单个
*:多个
#:单个数字
!:取反,例如[!a-z]
二 获取每月有几周
dayjs插件 :https://blog.csdn.net/halo1416/article/details/124298324
getday()是拿取星期几
var date=new Date() date.getDay() var date2=new Date("2021-02-10") date2.getDay()
标签:date2,like,js,var,getDay,date,new,day,LIke 来源: https://www.cnblogs.com/lxq3280/p/16602557.html