SOURCE

var quechi='左上,112';
var a=quechi.split(",");
var leftdown='';
var leftup='';
var rightdown='';
var rightup='';
if(quechi.indexOf('左上')!=-1){
leftup=a[1];
}

if(quechi.indexOf('左下')!=-1){
leftdown=a[1];
}

if(quechi.indexOf('右上')!=-1){
rightup=a[1];
}

if(quechi.indexOf('右下')!=-1){
rightdown=a[1];
}
console 命令行工具 X clear

                    
>
console