Home  >  Q&A  >  body text

Now that the frontend has verified the input, why does the backend continue to verify whether it is empty?

beg

SkySky2066 days ago1426

reply all(2)I'll reply

  • 从入门到删库跑路

    从入门到删库跑路2019-03-18 10:29:00

    I don’t know what’s going on without seeing the source code. If the background determines whether the variable is empty, that’s normal. If your data is not passed into the background, the program will terminate after executing this judgment and return an error message, which is convenient for positioning. Error, otherwise the execution of your program will not only waste resources, but also increase the burden of error troubleshooting.

    reply
    2
  • Cancelreply