用JavaScript构建单词打乱器(第一部分)
原文英文,约800词,阅读约需3分钟。发表于: 。I started a little project—a word scrambler, and today, I’m super excited to walk you through the very first step of what I have done! If you’re a Word Cookie fan who has cheated once or twice,...
作者介绍了一个单词打乱项目的初步步骤。首先,用HTML和CSS设置输入框和按钮,然后用JavaScript编写生成单词排列的函数,但遇到重复结果的问题。尝试添加条件避免重复未果,最后展示了如何在网页上显示打乱后的单词,并邀请读者提供改进建议。