我正在开发一款背单词的app.每个单词都会对应一张图片资源(以该单词命名),我打算将所有的图片资源全部预先储存到空间里,然后在客户端上进行访问和下载(通过资源名访问),那么问题来了,预先将图片志愿存储到空间,然后在客户端上直接通过资源名来访问对应的资源,这种方式是否可行?
初来乍到,勿怪勿怪。
天蓬老师2017-04-17 18:02:55
Alibaba Baichuan provides this service, free 20G storage http://wantu.taobao.com/mediaportal/index.htm?spm=a3c0d.7662652.1998907816.3.ZauPYd
PHP中文网2017-04-17 18:02:55
Whenever you access the image resources of the server, there must be a URL of the corresponding image. This is equivalent to requesting online to download the picture corresponding to the word every time you view it.
In addition, check the image requirements in your program, whether the image must be displayed when viewing the entry.
If not, it is feasible to use the method you mentioned to request download and display.
If yes, provide a method for reference. Pack the image resources into a zip package. When the application is running, let the user choose to download the zip package and access the image corresponding to the entry locally. This approach is recommended.