How to create local folders in web development
filemanage_util.fullPath It's the path to create the file
This is a cross-platform folder creation, unlike Android, which also needs to be created through the native code of ()
Implementation code:
("deviceready", onDeviceReady, false); function onDeviceReady() { // alert('ondeviceReady'); // = || ; ("Document Center===========>Software ready:Set the detection file storage directory to start."); (, 0, function (fileSystem) { ("Document Center===========>Method for detecting temporary file storage directory"); // Global variable, here is zgky (filemanage_util.appRootDirName, { create: true, exclusive: false }, function (entry) { //The information circulated online uses fullPath. Here I get the relative directory. When using it, it will cause an error. So I changed to URL() //This is a global variable to save the path ("Document Center===========>The folder was created successfully,Setting relevant parameters!"); filemanage_util.fullPath = (); // alert(); ("Document Center===========>The folder was created successfully:" + filemanage_util.fullPath); //(); }, function () { ("Document Center===========>Failed to create a folder!"); }); ("Document Center===========>The method of detecting temporary file directory ends!"); }, function () { ("Document Center===========>Failed to create a folder"); }); ("Document Center===========>Software ready:Set the end of the detection file storage directory"); };
The above is how to create local folders on the web. If you have any questions, please leave a message or go to the community of this site to communicate and discuss. Thank you for reading. I hope it can help you. Thank you for your support for this site!