jQuery plug-in development - - - tab tab
After practice, I found that I am not a persistent person, so as soon as there is a plan to implement, in order to keep learning, knocking code every day, so constantly watching video tutorials, reading books, that year became a learning slag is because we can not repeat reading a book. In order to share the burden of the family, good books and ...
Posted by Dvorak on Sun, 30 Jun 2019 13:58:27 -0700
Upload files without refresh
Summary: In form forms, page refreshes occur after each submission. With ajax, file type requests cannot be made.
1. Use FormData to make Ajax requests and upload files (version 1.2 is not supported when using jq, preferably version 2.0 or more)
<!--html Code-->
<form id= "uploadForm">
<p>File name: <input type= ...
Posted by sparshdharam on Sun, 30 Jun 2019 13:46:53 -0700
jQuery Library Conflict Resolution
During an interview, the interviewer asked how jQuery and other library conflicts could be resolved. I've seen it before, but I don't remember it.
My idea is that if I were to design it, I would use a default value of $, not pass parameters, then use $, and finally mount it on window. $, and pass parameters with an incoming name, such as jq, t ...
Posted by JPark on Sun, 30 Jun 2019 12:01:57 -0700
Pass parameters to event handlers
Pass parameters to event handlers
Today, the task of brushing Baidu Front-end College has encountered a problem, which needs to pass parameters to the event handler function. I abstract the problem into the following questions:
var lis = document.getElementsByTagName('li');
for(var i=0; i<lis.length; i++){
this.i=i;
btn.addEventListen ...
Posted by LuiePL on Fri, 28 Jun 2019 15:30:10 -0700
Things about WebSocket
Push TechnologyBy establishing a long connection between the client and the server, the client can receive messages sent by the server from time to time.
(1) polling method based on ajax:
Using JQuery encapsulated $. ajax to build polling is shown below, and the polling is conducted every five seconds, regardless of whether the request is succe ...
Posted by jabapyth on Fri, 28 Jun 2019 14:01:38 -0700
Jquery Advanced Programming (3)
Description and application of jquery advanced method
1.addBack()
A. Several adjacent nodes under li of third-item (including third-item)
$( "li.third-item" ).nextAll().addBack().
.css( "background-color", "red" );
b. Similar to the end() method, the div.after-addback and p elements are selected, and the div.after-addback element is s ...
Posted by omerta on Fri, 28 Jun 2019 12:48:34 -0700
Acquisition and Analysis of Web Pages
Web page acquisition & Analysis
Writing with JAVA requires packages and tools: Jsoup, Phantom JS
Objectives: To get complete asynchronous loading pages and parse them using Jsoup
1. Preparations
jsoup is a Java HTML parser that can directly parse a URL address and HTML text content. It provides a very labor-saving API for extracti ...
Posted by horstuff on Thu, 27 Jun 2019 17:20:25 -0700
Front-end naming specification basis
A good programmer must be able to write maintainable code, rather than one-off code. How can you make other people in the team understand even when you read the code you write at some time? This requires standardizing your code.
I'm a bit obsessive-compulsive. Last week, our back end gave me a CanUsename interface (which is designed to determ ...
Posted by helpmeplease1234 on Wed, 26 Jun 2019 15:19:51 -0700
Spring MVC receives uploaded pictures and stores them in local directories
Preface: Project Environment
This simple demo is based on the spring MVC framework. The deployment environment is tomcat, which is used in the previous section. bootstrap+jquery_file_upload Components. The way to store pictures is to store them in the virtual directory and return them to the virtual directory. It is suggested to match Spring MV ...
Posted by coder500 on Wed, 26 Jun 2019 14:51:31 -0700
How to Implement Dynamic Form Addition, Deletion and Change Checking in vue2
Recent projects have encountered the need to manipulate a large number of forms. Previous projects have done this research, but only with jquery to operate.
Item A
Let's start with a brief description of the application scenarios in project A. There may be similar requirements for small partners. Project A is a project in the company's OA syste ...
Posted by PallaviDalvi on Tue, 25 Jun 2019 16:18:54 -0700