Comments (4)
这不就是拼接字符串
page.onRefresh {
scope {
Post<String>("https://www.wanandroid.com/article/list/${index}/json").await()
}
}.showLoading()
from net.
Post<String>("https://www.wanandroid.com/article/list/${index}/json").await()
老哥,这样的话,这个url就没法提取出来做为常量统一管理了吧,我本来还打算提取出来当作常量用😂
from net.
提取url你提取分页干嘛, 你可以只提取
https://www.wanandroid.com/article/list
而且在url上拼接分页字段属于网页常用的, wanandroid的api设计不符合规范罢了
通过函数添加和你通过字符串拼接没有区别
from net.
https://www.wanandroid.com/article/list
好的😂
from net.
Related Issues (20)
- 请教强哥json请求问题 HOT 2
- Failed to resolve: com.github.liangjingkanji:Net:3.5.8 Failed to resolve: com.github.liangjingkanji:StateLayout:1.4.1 HOT 4
- 东哥,有没有专门搞下载库的意思 HOT 9
- 此框架会请求2次接口问题 HOT 2
- BodyRequest解析好像有问题 HOT 1
- 关闭网络之后发起请求,app直接崩溃了,不走ErrorHandler的onError方法 HOT 2
- ViewModel 扩展函数scopeNetLife有机率不执行 HOT 8
- 每次发请求都会创建NetCoroutineScope这样好吗? HOT 4
- 支持请求失败重试吗? HOT 1
- java.net.ProtocolException: unexpected end of stream HOT 3
- 提示 URLParseException 地址错误 HOT 1
- 全局配置仿IOS菊花加载框
- 作者嘴太臭了,大家别用 HOT 4
- 大佬,后续有计划适配Cronet吗? HOT 1
- Get 请求如何参数数组? HOT 2
- 打包可以把源码打上来吗? HOT 1
- 超时的设置问题 HOT 3
- lifecycle版本升级后报错 HOT 4
- 多个同步请求的问题 HOT 2
- ViewModel 在2.8.2版本API有问题 HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from net.