Details of FormData usage

FormData object: 1, How to create a formData object instance 1. Create an empty object var formData = new FormData();//Add data through append method 2. Initializing an object using an existing form //Example of form <form id="myForm" action="" method="post"> <input type="text" name="name">Name ...

Posted on Wed, 01 Apr 2020 14:23:38 -0700 by rotwyla98

Using pagination of Jquery front-end paging plug-in

Plug in Description: jquery paging is a lightweight plug-in for jquery paging. Only a few simple configurations are required to generate paging controls. And support ajax to get data, custom request parameters, provide a variety of methods, events and callback functions, full-featured paging plug-in. Case pictures jQuery Pagi ...

Posted on Wed, 01 Apr 2020 14:11:03 -0700 by GetPutDelete

Summary of front-end small knowledge points

Front end small knowledge points 1, js and jQuery: how to get the input value in the input tag <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <!--Introduce jQuery file,tips: here script Cannot abbreviate--> <script type="t ...

Posted on Wed, 01 Apr 2020 00:37:03 -0700 by Calahan

jquery skill accumulation

1. Judge whether the check box is selected $('#checkBox').attr('checked'); 2. Disable enable button $("ාsomebutton").attr("disabled", true); / / disabled $("submit button"). Removeattr ("disabled"); / / enabled Note:. attr('disabled ', false); it's wrong to write like ...

Posted on Tue, 31 Mar 2020 08:29:46 -0700 by dave_2008

HTML 5 plus js to read and write local files and get local file path

HTML5 provides an API for reading and writing files. The API for reading files is FileReader The code is as follows: Read local file <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <div> <input typ ...

Posted on Tue, 31 Mar 2020 05:31:34 -0700 by powergen

The conflict between touchend and scrolling events

Problem Description: content is highly fixed, there are multiple p tags in the period, resulting in scrolling When the requirement is to click the touchend P tag, do business processing Then the question arises: Touch end is also triggered when scrolling The code is as follows: <div id="content"> <p>content&l ...

Posted on Mon, 30 Mar 2020 10:49:30 -0700 by VK4KBG

I crawled a picture website with java crawler

I crawled a picture website with java crawler I want to set up a website recently, and I don't want to do technology blog, because it's enough like blog Park and CSDN. The usual problem is that these records are enough. What kind of website is fun? It's not bad to see a picture website. There are a lot of pictures in it (of course, there are xx ...

Posted on Fri, 27 Mar 2020 09:51:51 -0700 by aubeasty

Details of jQuery event delegation (concise)

Event delegation is based on the principle of event bubbling, which uses the parent to trigger the child events. As shown in the following html, if you do not use event delegation, it is very troublesome to add click event listening to every li. In addition, if a child node is created dynamically through js, it n ...

Posted on Thu, 26 Mar 2020 09:32:16 -0700 by shinstar

When will items in HTML5 local storage expire?

How long can data stored in localStorage (as part of DOM storage in HTML 5) be used? Can I set the expiration time for the data put into localStorage? #1 building // Functions function removeHtmlStorage(name) { localStorage.removeItem(name); localStorage.removeItem(name+'_time'); } function setHtmlStorage(name, value, expires) { ...

Posted on Thu, 19 Mar 2020 05:14:21 -0700 by Gokul

C. project integration SignalR

1. What is SugnalR? ASP.NET signal is a library for ASP.NET developers, which can simplify the process of adding real-time Web functions to applications. The real-time Web function refers to the function that the server code can push the content to the connected client immediately when it becomes ...

Posted on Tue, 17 Mar 2020 02:41:35 -0700 by vijayfreaks