更改input标签文本框中显示的内容

方式一:通过标签id的形式更改

 

以猜数字游戏为例进行代码的演示。

实例代码:

 

运行结果:

猜你喜欢

转载自blog.csdn.net/G_66_hero/article/details/89071056