在下面的代码中,当点击播放按钮时,它的值应该被改为暂停,当点击暂停时,应该调用其他函数。如何使用jQuery toggle来实现这一点。
<input type="button" onclick ="play" value="play"/>
<script>
function play()
{
play_int();
// Button value to be changed to pause
}
And when pause play_pause();