最新项目中需要做一个类似小红书的侧滑抽屉效果,经过各种实验,发现MMDrawerController用着不错。
大致思路如下:
打开左边抽屉,按钮后左边push出一个新控制器,但是这个控制器仍然显示在左边的抽屉里的
1:用cocoapods pod MMDrawerController第三方
pod 'MMDrawerController'
2:在AppDelegate中 didFinishLa
文章目录
从接口文档到前端调用:Axios 封装与实战全流程详解
1.如何看接口文档?
1.1 GET
1.2 POST
2.为什么要封装请求拦截器和响应拦截器?如何封装?
2.1 封装axios实例
2.2 封装拦截器
2.3 拦截器实践
3.如何在实际的项目中使用axios
3.1 GET
3.2 POST
3.3. DELETE
3.4 PU
1 、concat() 数组、字符串合并。
let a = [1,2,3]
let b = [4,5,6]
a.concat(b) // [1, 2, 3, 4, 5, 6]
let c = 'hello '
let d = 'world'
c.concat(d) // 'hello world'
2、 at() 数组、字符串、类数组中添加.at()方法at()支持正索引和负索引,获取其指定位