The original author does not know who it is. If you infringe your rights and interests, please contact me!
During outsourcing work to Japan, you often need to perform full check and half check on the entered characters]
① [Fullwidth check ]/**//**
* [Number of shards] isZenKana
* [Device power] full-width failover without manual failover
* [Xiaoming] the full-width characters in the text column "" include "まるか る"
* [Reference]
* @ Param str text Column
* [Return Renewal]
* @ Return true (including commandid before success) | false (including commandid before success)
*/
Function isZenKana (str ){
Var zen = 'Too many attempts have been made even though there are too many attempts to be made. please refer to the following link for more information: ';
Var mes = '';
For (var I = 0; I <str. length; I ++ ){
/** // * Specify 1 text in the text column */
Var tmp1 = str. substr (I, 1 );
For (var j = 0; j <zen. length; j ++ ){
Var tmp2 = zen. substr (j, 1 );
/** // * Contains the entire batch of rows without errors */
If (tmp1 = tmp2 ){
MES + = ''+ tmp1 + '」';
}
}
}
If (mes! = ''){
/** // * The full-width dynamic route includes Dynamic Route tables and dynamic route tables */
// Alert (mes + 'nn full-width neural networks including neural networks ');
Return true;
} Else {
/** // * The full-width dynamic route consists of Dynamic Route tables and dynamic route tables */
// Alert. ');
Return false;
}
}
② [Halfwidth check]
/**//**
* [Users] isHanKana
* [Machine energy] half-width camera Clock
* [Simming] the half-width characters in the text column contain too many characters.
* [Reference]
* @ Param str text Column
* [Return Renewal]
* @ Return true (including commandid before success) | false (including commandid before success)
*/
Function isHanKana (str ){
Var zen = 'Too many attempts have been made even though there are too many attempts to be made. please refer to the following link for more information: when there are too many threads, there are too many threads, too many threads, etc ';
Var mes = '';
For (var I = 0; I <str. length; I ++ ){
/** // * Specify 1 text in the text column */
VaR tmp1 = Str. substr (I, 1 );
For (var j = 0; j <Zen. length; j ++ ){
VaR tmp2 = Zen. substr (J, 1 );
/** // * Contains the entire batch of rows without errors */
If (tmp1 = tmp2 ){
MES + = ''+ tmp1 + '」';
}
}
}
If (mes! = ''){
/** // * The half-width Navigation Pane contains a joint scene */
// Alert (mes + 'nn full-width neural networks including neural networks ');
Return true;
} Else {
/** // * The half-width scene contains a joint scene */
// Alert. ');
Return false;
}
}