Javascript pollution

recently there has been a bit of a trick in working on a table generator.

clipboard.png

when you click on a new column, a new column is added to the title and a new column is added to all the content. Click to add a new line. The new line is the same as the title. Here is my layout and js code.

layout

</script>

question, where is my js contaminated.
you can copy the above code and execute it directly.
if it"s something else, please explain to me

May.31,2021

because when you add a row, you add a header object that directly push the row, so adding new columns will cause those new rows to change repeatedly.


        // addRows 
        var header = this.data.header;

        // ,
        var header = [];
        for (var i = 0, len = this.data.header.length; i< len; iPP){
            header.push(this.data.header[i]);
        }
        // 
        var header = JSON.parse(JSON.stringify(this.data.header));
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-1b36b3b-2c04c.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-1b36b3b-2c04c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?