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

Menu