Javascript redirect based on date

I want the user to be directed to bar.html on the first of the month, gjb.html on the second of the month, guerr.html on the third of the month and error.html on other dates. What am I doing wrong? The following only loads bar.html regardless of the date on the user's computer. I'm brand new to all this, so explain it like you would to a total idiot.
Take a look at your console, it should say something like ReferenceError: Invalid left-hand side in assignment

以上就是Javascript redirect based on date的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏