Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前在 Wordpress 项目中使用 Easing Slider 插件,并且 Starter 横幅应取决于一周中的哪一天。例如:
星期天:第 1 号横幅,星期一:第 2 号横幅,星期二:第 3 号横幅,依此类推……
我怎么能做到?提前非常感谢。
在 Easing Slider Wordpress 插件中,StartItem 应该这样更改:
startItem: new Date().getDay()
根据工作日启动滑块,在周日它将从第一个横幅开始,周一从第二个横幅开始,依此类推..