In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you how to use wx.getSavedFileInfo to get local file information in Mini Program development. The content is simple and clear. I hope it can help you solve your doubts. Now let me take you to study and learn about "how to use wx.getSavedFileInfo to get local file information in Mini Program development" this article.
Gets the file information for the local file. This API can only be used to obtain files that have been saved locally. If you need to obtain temporary file information, use the wx.getFileInfo API.
OBJECT parameter description:
The parameter type is required to indicate that filePathString is a callback function successfully called by the successFunction API. For the returned result, please see success return parameters indicating that the failFunction API calls the failed callback function completeFunction No API calls the finished callback function (both successful and failed calls will be executed)
Success return parameter description:
The parameter type indicates the sizeNumber file size of the result of the call to the errMsgString API, the timestamp of the unit BcreateTimeNumber file when it is saved, and the number of seconds from 08:00:00 on 1970-01-01 to this time.
Sample code:
Wx.getSavedFileInfo ({filePath:'wx file://somefile', / / for example only, not the real file path success: function (res) {console.log (res.size) console.log (res.createTime)}) what does Mini Program mean? Mini Program is an application that can be used without download and installation. It can be used immediately by scanning the QR code or searching it. It is easy to operate and easy to spread. It can realize seven functions, such as message notification, offline scanning code, official account association and so on. It is based on Wechat, similar to APP. You can use it whenever you want. After using it, you will leave without taking up memory.
The above is about "how to use wx.getSavedFileInfo to get local file information in Mini Program development". If this article is helpful and well written, please share it with your friends to learn new knowledge. if you want to know more about it, please pay more attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.