Vue-resource cross-domain issues?

now develop a project using vue. And use the vue-resource plug-in to access rest.

this.$http.jsonp("http://dh1470:8080/getssList",
                {params:{start:0,size:100},emulateJSON:true})..then(resp=>{
                console.log(resp);  
                },response => {  
                    console.log(""+response.status);  
                })
                

testing the code, the problem is as follows:
reported that the http://dh1470:8080/getssList?start=0&size=100&callback=_jsonptugh78egge
link failed, and the http status code is 404.

excuse me, 1. What went wrong and how to correct it?
2 Why is there a callback=_jsonptugh78egge spliced into my request? * *


take a closer look at the request method of jsonp. Jsoncallback is to get the

of the returned value.
Menu