How to use setInterval and clearInterval?

前端 未结 5 904
盖世英雄少女心
盖世英雄少女心 2020-11-22 03:58
function doKeyDown(event) {
    switch (event.keyCode) {
    case 32:
        /* Space bar was pressed */
        if (x == 4) {
            setInterval(drawAll, 20);         


        
5条回答
提交回复
热议问题