Chinese decoding error when passing parameters between pages?

1. There is no problem when you jump to edit the page, but add the page Times replace as null?
2.
figure 1! clipboard.png

2clipboard.png

3clipboard.png

4clipboard.png

1324

3.:"" "" "" ""
4.
`


};
`
:

clipboard.png

assignment code: add page to accept user name and decode

_fuelCard.userName = pubblic.hexToDec(getQueryString("userName")) || "";

5. The key is that there is nothing wrong when you go in from the edit button, and you report an error from the add button. You really can"t find out the reason. Ask Daniel!


pubblic.hexToDec (getQueryString ("userName") | | "
the parentheses are in the wrong position. It should be
pubblic.hexToDec (getQueryString (" userName ") | |")


clipboard.png

from the error message, it may be that there is something wrong with the parameter assignment, or it may be that the getQueryString method does not correctly parse the parameters in url

Menu