// 变量 const choices = [{ id: 1, name: "石头", image: "./img/rock.png" },{ id: 2, name: "布", image: "./img/paper.png" },{ id: 3, name: "剪刀", image: "./img/scissors.png" }] let playerPoints = document.querySelector(".playerPoints") let computerPoints = document.querySelector(".computerPoints") let playerChoiceImg = document.querySelector("#playerChoiceImg") let playerChoiceTxt = document.querySelector("#playerChoiceTxt") let computerChoiceImg = document.querySelector("#computerChoiceImg") let computerChoiceTxt = document.querySelector("#computerChoiceTxt") let buttons = document.querySelectorAll(".btn") let points = [0, 0] let randomNumber;