按钮上显示值的轮流切换

<button onClick="this.value=this.value=='开始'?'暂停':'开始';alert(this.value);">开始</button>
原文地址:https://www.cnblogs.com/Dicky/p/126010.html