var shishen = ["比肩", "劫财", "食神", "伤官", "偏财", "正财", "七杀", "正官", "偏印", "正印"];
var tg = ["甲", "乙", "丙", "丁", "戊", "己", "庚", "辛", "壬", "癸"];
function qshishen (rizhu, tiangan) {
var rizhuIndex = tg.indexOf (rizhu);
var tianganIndex = tg.indexOf (tiangan);
if (rizhuIndex === -1 || tianganIndex === -1) {
return document.write ("提交参数错误
");
}
const shishenIndex = `${rizhuIndex}${tianganIndex}`;
if ([ //return document.write (shishen[0] + "
");
return document.write (rizhu+tiangan+" "+shishen[0] + "
");
}
else if ([ //return document.write (shishen[1] + "
");
return document.write (rizhu+tiangan+" "+shishen[1] + "
");
}
else if ([ //return document.write (shishen[2] + "
");
return document.write (rizhu+tiangan+" "+shishen[2] + "
");
}
else if ([ //return document.write (shishen[3] + "
");
return document.write (rizhu+tiangan+" "+shishen[3] + "
");
}
else if ([ //return document.write (shishen[4] + "
");
return document.write (rizhu+tiangan+" "+shishen[4] + "
");
}
else if ([ //return document.write (shishen[5] + "
");
return document.write (rizhu+tiangan+" "+shishen[5] + "
");
}
else if ([ //return document.write (shishen[6] + "
");
return document.write (rizhu+tiangan+" "+shishen[6] + "
");
}
else if ([ //return document.write (shishen[7] + "
");
return document.write (rizhu+tiangan+" "+shishen[7] + "
");
}
else if ([ // return document.write (shishen[8] + "
");
return document.write (rizhu+tiangan+" "+shishen[8] + "
");
}
else if ([ //return document.write (shishen[9] + "
");
return document.write (rizhu+tiangan+" "+shishen[9] + "
");
}
}