updated 代码优化

This commit is contained in:
mumuy 2022-02-18 18:37:14 +08:00
parent 6f967a8ad6
commit c224c108b2
2 changed files with 3 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -2609,14 +2609,12 @@
var from_sex = -1; var from_sex = -1;
if(from.match(/^,w/)||from.match(/^,1/)){ if(from.match(/^,w/)||from.match(/^,1/)){
from_sex = 1; from_sex = 1;
} }else if(from.match(/^,h/)||from.match(/^,0/)){
if(from.match(/^,h/)||from.match(/^,0/)){
from_sex = 0; from_sex = 0;
} }
if(to.match(/^,w/)||to.match(/^,1/)){ if(to.match(/^,w/)||to.match(/^,1/)){
to_sex = 1; to_sex = 1;
} }else if(to.match(/^,h/)||to.match(/^,0/)){
if(to.match(/^,h/)||to.match(/^,0/)){
to_sex = 0; to_sex = 0;
} }
if(from_sex==-1&&to_sex>-1){ if(from_sex==-1&&to_sex>-1){