标签:imp turn return get vue eth article list from
1.vue
import FunName from ‘../xxx’
1.js
export defualt function FunName() {
return fetch({
url: ‘/article/list‘,
method: ‘get‘
});
}
2.vue
import {xxx} from ‘../xxx’
2.js
export function FunName() {
return fetch({
url: ‘/article/list‘,
method: ‘get‘
});
}
import xxx from 和 import {xxx} from的区别
标签:imp turn return get vue eth article list from
原文地址:http://www.cnblogs.com/Abner5/p/7256043.html