Javascript code error, missing) after argument list

I"ve been looking at this code for 2 hours, maybe because I wrote it myself, but I just can"t see anything wrong

$.get("data.json").done(funtion (data) {  <--missing ) after argument list
    Charts.hideLoading();
    Charts.setOption({
        title:{
            text:""
        },
        legend:{
            x:"left",
            y:"top",
            textStyle:{color:"blue"},
            data:["","",""]
        },
        tooltip:{},
        xAxis:{
            type:"time",
            data:[1,2,3,4]
        },
        yAxis:{
            data:[1,2,3,4]
        },    
        series:[
        {
            name:"",
            type:"line",
            data:[1,2,3,4]    
        },
        {
            name:"",
            type:"line",
            data:[1,2,3,4]    
        },
            {
                name:"",
                type:"line",
                data:[1,2,3,4]    
            }
        ]
    });        
});
Feb.27,2021

function


A little piece of advice.

when you can't see it, don't look at it, move your hands, and check for errors by dichotomy.

for example, when you report an error in this code, you don't know where it is, but .get () and .done () are two parts, so you can comment out the following .done () first to see if the error is reported before. If there is nothing, then the error must be later, you add .done () , and empty the function before running. If you report an error, isn't it obvious that it is a grammar problem?

in addition, it is also recommended to find an editor with code hints.


function word is misspelled

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-1beb3ab-530f8.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-1beb3ab-530f8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?