单项选择题

下列使用axios发起Get请求语法错误的是()

A.axios.get(’/login?id=12345’).then(function (response){console.log(response);}).catch(function (error){console.log(error);});
B.axios.get(’/login’,{params:{id:12345}}).then(function (response){console.log(response);}).catch(function (error){console.log(error);});
C.axios({method:’get’,url:’/login?id=12345’}).then(function(response){console.log(response.data);});
D.以上都不对

热门 试题