纯小白,求大佬指导。
javascript吧
全部回复
仅看楼主
level 1
想写一个如果时间是17-18(不需要显示时间),那么输出结果就是1,如果不是,那么输出结果就是0的代码。
已经写了大致,但是跑起来就是不对,要么一直走1,要么一直走0,请问大佬怎么办。教教孩子吧
2022年12月22日 09点12分 1
level 1

2022年12月22日 09点12分 2
刚开始学就别严格模式了,先能跑起来再说优化的事
2022年12月22日 11点12分
@点了2下就 这是wallpaper的脚本,没办法
2022年12月22日 17点12分
level 1
自顶
2022年12月22日 09点12分 3
level 1

2022年12月22日 09点12分 4
level 1

2022年12月22日 09点12分 5
level 1

2022年12月22日 09点12分 6
level 1

2022年12月22日 09点12分 7
level 1

2022年12月22日 09点12分 8
level 1

2022年12月22日 09点12分 9
level 1

2022年12月22日 09点12分 10
level 1

2022年12月22日 09点12分 11
level 1

2022年12月22日 09点12分 12
level 12
export const getUpdate = () => +[17, 18].includes(new Date().getHours())
2022年12月22日 10点12分 14
level 1
你没看见hours是个灰色吗[阴险] 你把它定义出来却不引用不觉得不正常吗[阴险]
2022年12月22日 15点12分 16
谢谢 谢谢
2022年12月22日 17点12分
level 1
非常感谢大家,问题已经解决了,真的很感激各位。
2022年12月22日 17点12分 17
1