• Question: why do front-end browsers use axios and Postman to request different data values
// Browser ID: 1060072007762188300 // Postman ID: 1060072007762188288Copy the code
  • Cause: Long integers on the back end (Java) exceed the range of large numbers that CAN be accurately represented by JS, resulting in possible loss of precision. Maximum and minimum integers that can be safely used in JS can pass throughNumber.MAX_SAFE_INTEGERNumber.MIN_SAFE_INTEGER
  • Solution: The back end passes the id value as a string to the front end
  • Reference documentation