jsonp跨域方法怎么使用?
demo:
let args = {
g_tk: 1604785682,
uin: 494873674,
format: 'jsonp',
inCharset: 'utf-8',
outCharset: 'utf-8',
notice: 0,
platform:'h5',
needNewCode: 1,
_: new Date().getTime()
}
this.$http.jsonp('https://c.y.qq.com/musichall/fcgi-bin/fcg_yqqhomepagerecommend.fcg', {params: args},{'jsonp': 'jpcallback'}).then((res) => {
console.log(res)
})
还是报错.
谁能指出正确的调用demo吗?谢谢
有人说吧callback放在params平级试了还是不行.
不行吗?