require

  1. var json = require('文件的相对地址');

ajax

  1. this.$ajax.get('http://localhost:80/static/map/province/anhui' +'.json')
  2. .then( response => {
  3. this.json = response.data;
  4. })

axios

  1. axios.get('../../static/data.json').then(response => {
  2. console.log(response.data);
  3. }, response => {
  4. console.log("error");
  5. });