一直迷迷糊糊的,那今天就搞清楚吧!
- import * as baseUrls from ‘./base’:
对应的base.js如下:
export const getDistrictOfProvince='/dev/getDistrictOfProvince'
export const getUserInfo='/dev/getUserInfo'
- import getDistrictOfProvince from ‘./base’
对应的base.js如下:
const getDistrictOfProvince='/dev/getDistrictOfProvince'export
export default getDistrictOfProvince