手牌数显示支持3位数以上

This commit is contained in:
kuangshen04 2024-02-14 09:37:17 +08:00
parent feafb4d9b1
commit 8cf6c32a75
1 changed files with 1 additions and 2 deletions

View File

@ -2949,9 +2949,8 @@ export class Player extends HTMLDivElement {
numh = arguments[0];
}
if (numh >= 10) {
numh = numh.toString();
this.node.count.dataset.condition = 'low';
this.node.count.innerHTML = numh[0] + '<br>' + numh[1];
this.node.count.innerHTML = Array.from(numh.toString()).join('<br>');
}
else {
if (numh > 5) {