vue中引入对象的两种方式
1, es6引入方式importimport axios from 'axios';import MockAdapter from 'axios-mock-adapter';2, require引入方式var axios = require('axios');var MockAdapter = require('axios-mock-adapter');...
·
1, es6 引入方式 import
import axios from 'axios';
import MockAdapter from 'axios-mock-adapter';
2, require 引入方式
var axios = require('axios');
var MockAdapter = require('axios-mock-adapter');
更多推荐
已为社区贡献14条内容
所有评论(0)