我想浏览画布页面,我尝试使用此代码,但它们给了我一个错误;
if (e.keycode == 13) {
theCanvas.style.visibility == 'visible'
theCanvas.style.visibility = 'hidden';
theCanvas1.style.visibility = 'visible';
} else {
theCanvas.style.visibility = 'visible';
theCanvas1.style.visibility = 'hidden';
}
});
答案 0 :(得分:0)
试试这个
if (e.keycode == 13) {
theCanvas.style.visibility = 'hidden';
theCanvas1.style.visibility = 'visible';
});
不需要else,只需要主要的if语句
希望它能帮助mukund2003