安装
npm install amapjs --save
使用
import AmapJS from 'amapjs'
function test(){
AmapJS.call('getSystemInfo',
{
success: function (res) {
console.log('succ', res)
},
fail: function (err) {
console.log('fail', err)
},
complete: function () {
console.log('完成')
}
}
)
}