首页 > vue.js分页如何写

vue.js分页如何写

使用vue-resource的$http请求参数,参数应该怎么写跟vue.js配合,有案例吗,谢谢大家


https://github.com/ChobitsSP/vue-pagination/tree/master/demo


我的实现https://github.com/TIGERB/eas...你可以参考下,互相学习 哈哈


https://github.com/825618507/...


https://.com/a/1190000003931500


简单可以封装哈
//api.js
const UserResource = Vue.resource(API_ROOT + 'users{/id}');
export default {getMe: function () {

return UserResource.get({id:'me'})

}
}
//test.js
import api from '../api';
api.getMe().then(response => { response => {

console.log(response.data);

},
response => {

console.log("error");

})

【热门文章】
【热门文章】