下载zip,解压缩,将内容转换为srt,最后将str转换为array

时间:2018-07-20 12:16:55

标签: reactjs react-native axios subtitle jszip

要下载我正在使用的n <- 20 # matrix to store the simulations x <- matrix(NA_integer_, nrow=n, ncol=4) # generate all the x1+x2's x1_plus_x2 <- sample.int(79, n, replace=TRUE) + 20 # loop for(j in 1:n){ # generate x1 and x2 x1x2 <- rmultinom(1, x1_plus_x2[j], c(1,1)) # generate x3 and x4 x3x4 <- rmultinom(1, 100-x1_plus_x2[j], c(1,1)) # x[j,] <- c(x1x2,x3x4) } > rowSums(x) [1] 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100

压缩文件
Axios

}

要解压缩我正在使用的async getLegendaZip(url) { try { const response = await axios.get(url, { responseType: 'arraybuffer' }); this.unzipLegenda(response.data); } catch (error) { console.log(error); } 邮编 要对JSzip进行解析,我正在使用lib Array

Subtitle

}

我在日志中收到此警告

I get this warning in the log

0 个答案:

没有答案