javascript-The multi-picture upload function of mobile wap site h5 cannot select multiple pictures in UC browser, how to solve it?

I have a mobile website that wants to upload multiple pictures. When I did it on the PC, the function was OK. But after it went online, I opened it in UC Browser and found that I couldn’t select multiple pictures, so I couldn’t upload multiple pictures. Yes, I use the built-in browser on my Huawei phone but I can select multiple images to upload. How can I solve the problem that UC Browser cannot select multiple images? Reply content: I have a mobile website that needs to upload multiple pictures. When I did it on the PC, the function was OK. But after it went online, I opened it in UC Browser and found that I couldn’t select multiple pictures, so I couldn’t. I uploaded multiple pictures, but I can select multiple pictures to upload using the browser that comes with my Huawei phone. How can I solve the problem that UC Browser cannot select multiple pictures? There are many wap compatibility problems, and it is easy to crash. It is recommended to pass them one by one. Then choose h5 image upload plug-in, such as WebUploader, do not use plug-ins such as flash. Nowadays, the only thing that…

javascript-LocalResizeIMG.js rotates 90 degrees when uploading images on iPhone, how to solve it

LocalResizeIMG.js rotates 90 degrees when uploading images on iPhone, how to solve it Reply content: LocalResizeIMG.js rotates 90 degrees when uploading images on iPhone, how to solve it This requires image rotation processing in this js source code var angle = ”; this.on(‘change’, function () { var file = this.files[0]; var URL = window.URL || webkitURL; var blob = URL.createObjectURL(file); var BinaryAjax = window.BinaryAjax || ”, EXIF = window.EXIF || ”; if (BinaryAjax && EXIF) { // get photo orientation and set angle BinaryAjax(blob, function(o) { var oExif = EXIF.readFromBinaryFile(o.binaryResponse), orientation = oExif.Orientation; switch(orientation) { case 6: angle = radians(’90deg’); break; case 3: angle = radians(‘180deg’); break; case 8: angle = radians(‘270deg’); break; } }); } // function before execution if($.isFunction(obj.before)) { obj.before(this, blob, file) }; _create(blob, file); this.value = ”; // Clear temporary data }); function radians(angle) { if (typeof angle == ‘number’) return angle; return { rad: function(z) { return z; }, deg: function(z) { return Math.PI / 180 * z; } }[String(angle).match(/[a-z]+$/)[0] || ‘rad’](parseFloat(angle)); }

javascript-LocalResizeIMG.js rotates 90 degrees when uploading images on iPhone, how to solve it

LocalResizeIMG.js rotates 90 degrees when uploading images on iPhone, how to solve it Reply content: LocalResizeIMG.js rotates 90 degrees when uploading images on iPhone, how to solve it This requires image rotation processing in this js source code var angle = ”; this.on(‘change’, function () { var file = this.files[0]; var URL = window.URL || webkitURL; var blob = URL.createObjectURL(file); var BinaryAjax = window.BinaryAjax || ”, EXIF = window.EXIF || ”; if (BinaryAjax && EXIF) { // get photo orientation and set angle BinaryAjax(blob, function(o) { var oExif = EXIF.readFromBinaryFile(o.binaryResponse), orientation = oExif.Orientation; switch(orientation) { case 6: angle = radians(’90deg’); break; case 3: angle = radians(‘180deg’); break; case 8: angle = radians(‘270deg’); break; } }); } // function before execution if($.isFunction(obj.before)) { obj.before(this, blob, file) }; _create(blob, file); this.value = ”; // Clear temporary data }); function radians(angle) { if (typeof angle == ‘number’) return angle; return { rad: function(z) { return z; }, deg: function(z) { return Math.PI / 180 * z; } }[String(angle).match(/[a-z]+$/)[0] || ‘rad’](parseFloat(angle)); }

session_destroy() cannot take effect immediately, how to solve it

session_destroy() cannot take effect immediatelyWhen linking to a PHP page in HTML, the PHP page will destroy the session, but when the page is opened, the session still exists. Only by refreshing the PHP page again can the session be destroyed. There are only two statements on this page: $_SESSION = array(); session_destroy(); session_start() has been enabled. What is the situation ——Solution—————– —When you execute session_destroy(); in page B, the previous session naturally exists, otherwise there is no need to use session_destroy();You are only re-entering page B (such as refreshing ) will find that the session is goneBecause to the user, session_destroy() only sends the instruction to log out the sessionid in COOKIE——Solution- ——————a.php <?php session_start();$_SESSION[‘name’] = “kobe”;?>se2 >b.php <?phpsession_start();$_SESSION = array();session_destroy( );var_dump($_SESSION[‘name’]);?> ——Solution Scheme——————– Quote: Quote: Quote: Then the page will never end, and of course the current session will not disappear. The connection_aborted() sentence can check whether the client is disconnected, but its execution requires outputting content on the page, so ob_flush();flush();Problem These two sentences will cause the page that destroys the session to fail to execute normally, that is, it must be refreshed manually to destroy the session So, is there any other way to close this…

GC seems to make java server application unresponsive problem, how to solve it

GC seems to make Java server applications unresponsive, how to solve it System.gc() “calls” the garbage collector to collect garbage. This is not very rigorous, but in fact it is just a “notification” “That’s all. Whether to recycle or not is determined by the garbage collector’s algorithm. You can develop a garbage collector that does nothing, or a garbage collector that waits until the memory is occupied to exceed a certain proportion before recycling. The finalize() method is a method that will be called when a class object is destroyed. When the garbage collector finds that the class object will no longer be used, it will reclaim the memory, that is, destroy the object, and finalize() is called. System.gc() of your program is the last sentence. Obviously, the Book object created in the previous sentence will not be used later, so the garbage collection algorithm provided by JDK will call the destruction method of the object to recycle it. . The java process on the server is still there, but it is not executed. What’s going on? 1. Obviously there is no log. Any program must have corresponding log records. In this way, any problems that arise can be traced…

Recursive deletion of folders in java problem, how to solve it

How to solve the problem of recursively deleting folders in Java imp How to quickly delete millions of files in Java Get the File of the folder object. Then File.listFiles() is all the subfiles under this folder. Then call the delete method to delete. How to delete subdirectories under a folder and the subfiles it contains in Java The following will introduce you to the method of deleting subdirectories under a folder and the subfiles it contains in Java: package com. cn.test1;import java.io.File;public class DeleteAllFiles {/*** @param args*/public static void main(String[] args) {// TODO Auto-generated method stubString filePath = “e:\\ fq\\”;System.out.println(“Start deleting file”);File file = new File(filePath);// deleteFile(file);deleteAllFilesOfDir(file);System.out.println(“Delete successfully!! “);}//Delete the folder recursively (Method 1) public static void deleteFile(File file) {if (file.exists()) {//Judge whether the file exists if (file.isFile()) {//Judge Whether it is a file file.delete();//Delete the file} else if (file.isDirectory()) {//Otherwise if it is a directory File[] files = file.listFiles();//Declare all the files in the directory Files files[];for (int i = 0;i <files.length;i ++) {//Traverse all files in the directory deleteFile(files[i]);//Iterate each file using this method }file.delete();//Delete the folder}} else {System.out.println("The deleted file does not exist");}}//Method 2 public static void deleteAllFilesOfDir(File path) {if (! path.exists())return;if (path.isFile()) {path.delete();return;}File[] files =…

IDEA2021 configuration javafx visual interface menu appears garbled, how to solve it?

IDEA2021 configures javafx visual interface menu with garbled characters, how to solve it? Temporarily give up using idea’s built-in javafx visual interface for development. It is recommended to download gluon’s scenebuilder for visual development. This is a separate program. Note: The reason for garbled characters is that the built-in scenebuilder does not specify a font or character set. The latest version of IntelliJ IDEA Ultimate + JDK10 latest version, many javafx packages cannot be imported after creating a javafx project. (1) Preparation 1) Install JDK 6 or JDK 72) Install scala 2.10.x (note the version) 2) Download the latest version of Intellij IDEA (this article uses IntelliJ IDEA Community Edition 13.1.1 as an example) , different versions, the interface layout may be different) 3) After decompressing the downloaded Intellij IDEA, install the scala plug-in. The process is as follows: select “Configure”->”Plugins”->”Browse repositories”, enter scala, and then install it. (2) One way to build a Spark source code reading environment (requires an Internet connection) is to directly select “import project” -> select the directory where spark is located -> “SBT”. After that, intellij will automatically identify the SBT file and download the dependent external jar package , the whole process takes…

Resource leakage in Java, input is never closed, how to solve it?

Java – resource leakage, input is never closed, how to solve it? Generally, you need to write *.close() when the stream is used up, but System.in is the input stream of the console and does not need to be closed. After closing, an error will be reported when used elsewhere. java socket Input/OutputStream closing problem I don’t know why you turn off the stream back and also turn off the socket, but since you need to communicate and write back, why should you turn off the stream? Generally, one socket is used and one stream is used. Once all communication operations are completed, it is enough to close both the socket and the stream. You said that if you disable it, it will block. Have you used multi-threading? For network communication and other tasks such as client/server, multi-threading is generally used. That is, one thread has one task, and the blocking of one thread does not affect other threads. continue working. How to close the window in java 1 package applicationGraphicsInOut; 2 import java.awt.*; 3 import java.awt.event.*; 4 public class ApplicationGraphicsInOut { 5 public static void main(String args[]) 6 { 7 new FrameInOut(); 8 } 9 10 }11 class FrameInOut…

JavaScript cannot call a class without a visible interface, how to solve it?

A QueryInterface call was made, requesting the default IDispatch interface for the COM-visible managed class “DCMS.Map”. However, since the class has no explicit default interface and is derived from the non-COM visible class “WeifenLuo.WinFormsUI.Docking.DockContent”, the QueryInterface call will fail. The purpose of this is to prevent non-COM-visible base classes from being subject to COM versioning rules. [/color] This is a problem that occurred after I used someone else’s control that can float and dock windows. I can’t interact with HTML. Please help me. 2 solutions #1 ref:http://www.csharpwin.com/csharpspace/13138r9945.shtml #2 Didn’t solve the problem

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索