JS transfers a value as a string but changes to a number type when receiving the value, and the first 0 disappears during the value transfer process

The situation is like this. Today, when I wrote the method of clicking the picture to jump to the page to pass the value, I passed '099', but the received value became 99.
Later, I checked the reason, and it was said that it is enough to pass a string, and the 0 will not be removed, but I tested it, and I passed a string, but found that the received parameter became a number type.
Continue to check, and then I saw an article written by a big guy and finally succeeded! !
The code is as follows:
insert image description here
just add this ' ', thank you very much! !
The following is an article written by the big guy, please support it~ insert image description here
Link: link to the big guy’s article

Guess you like

Origin blog.csdn.net/m0_46695182/article/details/130530762