while (line = readline()) { // 通过数组的索引确定牌的大小顺序 const compare = ['3', '4', '5', '6', '7', '8', '9', 'T', 'J', 'Q', 'K', 'A', '2'] // 得到两副牌 const arr = line.split("-") let [x, y] = [arr[0], arr[1]] if ((x.indexOf('j') !== -1) || (y.indexOf('j') !== -1)) { // 如果有副牌中有大小...