search

Home  >  Q&A  >  body text

javascript - node gets req but cannot get boolean

I use ajax to submit the request


status writes a Boolean type of false
but the background gets the string 'false'. How to deal with this situation better? I always feel that it can be judged directly String is not good

给我你的怀抱给我你的怀抱2834 days ago643

reply all(3)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-16 13:40:28

    Everything passed in the HTTP protocol is a string. It is not a programming language and has no data type definition.

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-16 13:40:28

    Replace it with 0 and 1

    reply
    0
  • 某草草

    某草草2017-05-16 13:40:28

    Semantic,
    pending, passed, failedpending, passed, failed
    normal, abnormalnormal, abnormal
    Wait

    reply
    0
  • Cancelreply