用于显示隐藏内容的demo

准备做一个小静态网站,其中要做一个答题的功能,类似于英语的完形填空,点显示答案按钮以后,可以显示答案在上面,由于还没学过javascript,这个小功能也得请教同学啦。展示如下:

————–代码————–


click the button below and you can see the answer in the answer field


  • What's my Name?
  • the answer is:

————–展示————–

click the button below and you can see the answer in the answer field


  • What’s my Name?
  • the answer is:
2 Comments
    1. 额 这个很简单吧 学过js的人应该都会 我是没学过 所以…… 😕

Leave a Reply

Time limit is exhausted. Please reload the CAPTCHA.