且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何处理javascript hang子手游戏中的重复字母

更新时间:2023-02-02 18:24:58

您可以尝试使用jquery删除您的字母

否则,您可以在函数内添加以下代码:

Otherwise you could just add inside your function this piece of code:

clickedLetter.style.display = "none";

更新:等等,我想你是在问被点击后如何隐藏被点击的字母...至于显示字母,您的代码应该做到这一点。而且不用担心字母会同时出现。

Update: wait, I thought you were asking how to hide the clicked letters after being clicked... As for showing the letters your piece of code should do just that. And don't worry the letters will "appear" at the same time.