We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好,这个小程序能只调用指定分类及其子分类的文章吗?
The text was updated successfully, but these errors were encountered:
可以,参考list页面
Sorry, something went wrong.
可以大体分享下实现的思路吗?要修改什么文件?
可以,需要改api.js里的代码,加上分类参数即可 getPosts: function (obj) { var url = HOST_URI + 'posts?per_page=' + pageCount+'&orderby=date&order=desc&page=' + obj.page&categories=1,2,3‘; }
"1,2,3 "代表分类的id
修改成这段代码列表就读不出来了,变成网络错误,这是哪里的问题呢?
No branches or pull requests
你好,这个小程序能只调用指定分类及其子分类的文章吗?
The text was updated successfully, but these errors were encountered: