The easiest way is to directly use comparison modifiers such as ">", "<", ">=", "<=", "!=" and "==" to compare, or you are worried, and you also write some methods to perform multi-layer verification.
There is also a very powerful trace(); to be honest, it is used less, haha, but it is used a lot during the coding process.
In fact, Flex converts these characters into ASCII encoding for comparison. As long as it is a String, you can try to compare in this way. Of course, other types are OK.
if(!=){//Compare the password and the original password ('The passwords entered twice must be the same, please check', 'Tip', 4, null, null, alertIcon); return false; }
There is relatively little code, so just use this one to express it.
Also, attach a content about string operations.
1:
Format: string name.substr (start subscript, substring length);
Format: string name.substring (start subscript, end subscript);
slice method: the functions and parameters of the substring method are the same, but there are two differences: if the parameter of the method is negative, it will automatically convert to 0, while the slice method will be regarded as the last one.
If the end subscript is smaller than the start subscript, it means inversely intercepting the string, but the slice method does not have this function.
Format: string name.substring (start subscript, end subscript);
2: Comparison,
I am really stupid here. Haha, I searched for a long time and it turned out that if they were equal, it was done with one == or !=. I thought it was very complicated. Oh, I really blamed myself for not thinking too much and wanting everything ready.
I also wrote a method to compare myself. Alas, I'm so stupid.
In fact, many things can be done in JDK directly. Haha, the things I wrote are completely super simple.
Wait until next time I write some verification stuff, haha
There is also a very powerful trace(); to be honest, it is used less, haha, but it is used a lot during the coding process.
In fact, Flex converts these characters into ASCII encoding for comparison. As long as it is a String, you can try to compare in this way. Of course, other types are OK.
if(!=){//Compare the password and the original password ('The passwords entered twice must be the same, please check', 'Tip', 4, null, null, alertIcon); return false; }
There is relatively little code, so just use this one to express it.
Also, attach a content about string operations.
1:
Format: string name.substr (start subscript, substring length);
Format: string name.substring (start subscript, end subscript);
slice method: the functions and parameters of the substring method are the same, but there are two differences: if the parameter of the method is negative, it will automatically convert to 0, while the slice method will be regarded as the last one.
If the end subscript is smaller than the start subscript, it means inversely intercepting the string, but the slice method does not have this function.
Format: string name.substring (start subscript, end subscript);
2: Comparison,
I am really stupid here. Haha, I searched for a long time and it turned out that if they were equal, it was done with one == or !=. I thought it was very complicated. Oh, I really blamed myself for not thinking too much and wanting everything ready.
I also wrote a method to compare myself. Alas, I'm so stupid.
In fact, many things can be done in JDK directly. Haha, the things I wrote are completely super simple.
Wait until next time I write some verification stuff, haha