The js ontouchstart event is invalid. The page must be refreshed to be valid.

var _canvase=document.getElementsByTagName("canvas")[0]
_canvase.ontouchstart = function(e) {        
    _canvase.ontouchstart = function(e) {    
    console.log("55559")
};
Mar.04,2021

there's nothing wrong with it, but why do you write it twice?

    <div style="border:1px solid -sharpccc;">
        <canvas style="width:100px;height:100px;"></canvas>
    </div>

    <script>
        var ctx = document.getElementsByTagName("canvas")[0];
        ctx.ontouchstart = function(e){
            console.log('33333333');
        }
    </script>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c11e-2c2cc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c11e-2c2cc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?