摘要: //定义食物类food class Food { //定义一个属性表示食物对应的元素 element: HTMLElement; constructor() { //获取页面中的food元素并赋值给element this.element = document.getElementById('foo 阅读全文
posted @ 2023-01-30 00:37 SadicZhou 阅读(137) 评论(0) 推荐(0) 编辑