最近做SDK开发,有个简单的下载功能,为了方便及不增加第三方库,遂采用了系统的DownloadManager来处理下载任务。
官网的说明:
The download manager is a system service that handles long-running HTTP downloads. Clients may request that a URI be downloaded t
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()支持正索引和负索引,获取其指定位