search

Home  >  Q&A  >  body text

javascript - How to use JS to determine whether the current time is within the first to tenth of each month

For example, there is a button that can only be clicked when the first to tenth of each month is not. How to write it more elegantly

怪我咯怪我咯2799 days ago999

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-06-26 11:00:48

    new Date().getDate() > 10

    reply
    0
  • ringa_lee

    ringa_lee2017-06-26 11:00:48

    new Date().getDate()

    reply
    0
  • Cancelreply