Some Applications of layer Bomb in Practical Projects

Official introduction: Layer is still the representative work of Layui. It is not accidental that its audience is widespread. It is the persistence of more than five years, continuous improvement and maintenance, continuous construction and improvement of community services, which makes apes spread spontaneously and even become the most powerfu ...

Posted by interpim on Sun, 19 May 2019 00:47:53 +0200

Struts 2 does not jump after submitting from form to execute action (ajax)

Write an item today about a merchandise added to the shopping cart function, originally designed to store data after clicking a button, and pop up a div to inform the user that the addition was successful, the page does not jump, seemingly simple function, but stuck at the point of "no jump". I don't want t ...

Posted by esport on Sat, 18 May 2019 06:18:51 +0200

Event Binding, Event Monitoring, Event Delegation

In JavaScript learning, we often encounter JavaScript event mechanisms, such as event binding, event monitoring, event delegation (event broker), and so on. What do these nouns mean and what do they do? Event binding To make JavaScript responsive to user actions, you first need to bind event handlers to DOM elements. The so-called event handl ...

Posted by ah66533 on Sat, 18 May 2019 06:08:46 +0200

Twelve lessons in writing high-quality jQuery code

1. Reference jQuery correctly Try to introduce jQuery before the end of the body, not in the head. Introduce jQuery with a third-party CDN, and be aware that when problems arise with using a third-party CDN, local jQuery files should be introduced. If a script file is introduced before </body>, you do not need to write document.read bec ...

Posted by cbailster on Sat, 18 May 2019 02:31:41 +0200

Baidu Map POI Data Acquisition

This paper mainly introduces the process of Baidu Map POI data acquisition and subsequent processing.There are two main steps in POI data acquisition and subsequent processing, namely POI data acquisition: get POI data from Baidu Map and save it in json format; EXCEL import of data: Convert data saved in json format to excel ...

Posted by aswini_1978 on Sun, 12 May 2019 04:35:23 +0200

The problem of using jQuery $(this) in ES6

$('.js-bottom-btn').click((event) => { let flag = $(event.currentTarget).date('flag'); ... }) Turn 1 The transition to laravel-mix ES6 started in the old project. The meaning of $(this) in the arrow function when used with jQuery has changed.   The main reason for this problem is that it is not clear. Arrow function: $('.j ...

Posted by renegade33 on Sat, 11 May 2019 02:12:17 +0200

Application of Ajax

A Brief Introduction to the Use of Ajax Asynchronous Technology Ajax introduction Introduction of Development Environment Technical Code Implementation Last but not least: Ajax introduction Ajax uses asynchronous data transmission (HTTP requests) between browsers and Web servers, which enables Web pages to request a ...

Posted by tonbah on Thu, 09 May 2019 21:28:03 +0200

[Front End] Use jsencrypt for front-end encryption of parameters

For login function in a project, parameters are usually submitted to the server through form form or ajax for validation. In this process, if the login password is encrypted once in the front end, the security is better than that of direct submission.Recently, when I read the login page of the blog park, I found that the login ...

Posted by Sentosa on Thu, 09 May 2019 07:06:03 +0200