【发布时间】:2019-11-23 03:34:52
【问题描述】:
我需要来自'http://export.highcharts.com/'的base64图像图表
getImg () {
const self = this;
axios.post('http://export.highcharts.com/', { options: self.$refs['lineChart'].options, type: 'image/png' }).then(function (response) {
base64.encode(response.data)
}).catch(function (e) {
console.log(e)
});
},
【问题讨论】:
-
为什么是
post而不是get? codepen.io/dotexe0/pen/qBBwxvG -
你必须使用
get而不是post -
Highcharts api提供get方法吗?
标签: javascript highcharts axios