Detailed and Example of HTML5 Drag and Drop

brief introduction Drag-and-drop is a common feature, which is to drag an object to another location after grabbing it. In HTML5, drag and drop is part of the standard, and any element can be dragged and dropped. First click on a small example: execute JavaScript when the user starts dragging < p > elements <p draggable="true" ondragst ...

Posted by BinaryDragon on Fri, 07 Jun 2019 15:49:50 -0700

Javascript Get Cache and Clear Cache API (reload)

From: http://geek.csdn.net/news/detail/199421 The benefit of the JavaScript ServiceWorker API is that it allows web developers to easily control the cache.Although technologies such as ETags are also used to control the cache, using JavaScript allows programs to control the cache more powerful and free.Of course, there are powerful benefit ...

Posted by (RL)Ian on Tue, 04 Jun 2019 10:12:04 -0700

Detailed information on top display in Linux

Linux systems can view information such as CPU, memory, run time, swap partitions, thread of execution of the system through the top command.The top command is an effective way to find out what's wrong with your system.Not enough memory, not enough CPU processing power, too high IO reading and writing.... [root@foundation6 docker]# top top - ...

Posted by KindMan on Tue, 04 Jun 2019 10:04:27 -0700

Front-end optimization idea 1 - ---"merge" ajax requests

Preface _At present, the optimization of front-end development has a complete set of routines, including js, css optimization, HTML optimization, first-screen data request optimization, etc. This paper mainly discusses the front-end development. Optimizing ideas for sending ajax requests. Number of concurrent requests from browsers _The ...

Posted by escocia1 on Sat, 25 May 2019 16:00:35 -0700

[For CSS-3.css Advancement]

1. Content Generation Role: Adding new content to existing tags using css Method: Through pseudo-element selector (before, after) 1. Attribute:content 2. Value: 1. String: plain text, caused by the use of "" 2. url(): Generate an image to a specified content area 3. Counter Using content generation to generate icons ...

Posted by explore on Wed, 22 May 2019 13:33:17 -0700

2017-9-26 html model and centralization method

title: 2017-9-26 html model and centralization method date: 2017-09-26 18:07:38 tags: [HTML5,CSS3] grammar_cjkRuby: true Welcome to my personal blog Personal Blog of Never Island HTML model Box model The box model can be imagined as a packaged moon cake, div, content, padding between the moon cake and the box, margin between the ...

Posted by axman505 on Tue, 21 May 2019 13:04:39 -0700

Browser calls camera getUserMedia

Browser calls camera getUserMedia The news of QQ browser launching in 2018 will boot the camera is full of buzz.Some time ago, the company asked to study the browser to enable the camera function, hoping to achieve the browser web page scanning two-dimensional code function. Now write it down and record it. Browser-enabled cam ...

Posted by MrPixel on Thu, 16 May 2019 04:54:40 -0700

Summary of this week (file upload, download, mail)

File upload 1. Upload Form Restrictions method="post" enctype="multipart/form-data" File form entries need to be added to the form: <input type="file" name="xxx"/> <h3>${msg }</h3> <form action="xxx" method="post" enctype="multipart/form-data"> //User name; <input type="text" nam ...

Posted by ironman on Wed, 15 May 2019 14:38:58 -0700

web socket transfers canvas to C++ server opencv image to realize online real-time image processing

A previous visual computing project called receiving the front-end, so there is a strange demand that the front-end opens the camera, and at the same time needs to send the camera data back to the back-end for image processing (such as beauty ah head with an ornament and so on), which involves data coding coupling between the front-end and the ...

Posted by niki77 on Sun, 12 May 2019 00:05:03 -0700

Introduction to websocket and its application in java

Introduction to websocket Scenario: Background management of a mall system, to achieve if there is customer order in the foreground, the background will receive messages, so as to ship processing as soon as possible. To achieve these functions, there are several alternatives. Scenario 1. Use ajax short polling, such as reque ...

Posted by dark_mirage on Fri, 10 May 2019 10:33:04 -0700