Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我创建了一个快速测验,显示他们在测验结束时正确的问题数量。如何将此分数保存在 MySQL 数据库中?
嗯,您评论中的代码乍一看似乎还不错,尽管您是否缺少句号?
submitScore() 方法中的第二行:
playerxscore = score_txt.text;
应该:
playerx.score = score_txt.text;
?