开始界面如图: 代码如下:<head> <title></title> [removed] function UpdateImg() { //document.getElementById(‘img1’).setAttribute(‘src’, ‘images/2.jpg’); var dogandcat = document.getElementsByName(‘dogandcat’); //获取所有name=dogandcat的单选按钮 for (var i =