1,语法类知识:
(1): hero.moveRight() 其中 hero是object
(2): 重复循环:
while True:
重复循环
(3): 建造类代码:
hero.buildXY(type,pos.x,pos.y)
本文介绍了JavaScript中的基础概念,包括对象hero的移动方法moveRight(),以及使用whileTrue实现的重复循环结构。同时提及了建造类代码示例hero.buildXY()的用法。
1,语法类知识:
(1): hero.moveRight() 其中 hero是object
(2): 重复循环:
while True:
重复循环
(3): 建造类代码:
hero.buildXY(type,pos.x,pos.y)
5011