Encapsulation, implementation and optimization of display layer (no animation + css3 animation + js animation)
showhide.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>showhide</title>
<link rel="stylesheet" href="../css/base.css">
<style>
body{
width:400px;
margin:0 auto;
}
button{
width:50%;
...
Posted by chalexan on Fri, 21 Feb 2020 22:43:51 -0800
Solution to the problem that the toolbar button fails after the table of layui is reload ed
After the table in layui uses the toolbar, the buttons on the toolbar will fail when the table is refreshed. The reason is that after the table is reloaded, there is no trigger event for binding toolbar buttons. Therefore, you only need to rebind the binding events of all buttons after the initialization of the table and after the refresh of ...
Posted by stiduck on Fri, 21 Feb 2020 07:47:07 -0800
Summary: How to modify default styles for beautifying radio, checkbox, select
Now that front-end pages are becoming more and more effective, the default input component style obviously does not meet the design requirements.A few years ago, development projects happened to meet the related requirements, and in this particular collation, modify the methods of radio, CheckBox, style.
Principle: The general principle i ...
Posted by xX_SuperCrazy_Xx on Thu, 20 Feb 2020 09:22:59 -0800
Three templates in Vue
Because what you have learned is still relatively basic and what you have summarized is also some basic things, it is mainly to review what you have learned and put them together so that you can look back later, so it is only suitable for beginners.
1. html template:HTML templates: DOM-based templates, templates are valid and ...
Posted by Pro.Luv on Tue, 18 Feb 2020 08:07:14 -0800
AJAX advantages, cross domain solutions, JSON data formats and JSON objects in browsers
ajax does not reload the entire web page, update part of the web page technology
Note: ajax only works when it is running on the server. I usually use phpstudy locally
Advantage:
1. Optimize the user experience
2. It undertakes part of the work of the server and reduces the pressure of the server
3. Optimized the transmission of server-side and ...
Posted by damo87 on Tue, 18 Feb 2020 06:15:57 -0800
java learning notes day17 advanced JavaScript
Today's content:
1. JavaScript:
1. ECMAScript:
2. BOM:
3. DOM:
1. Event
DOM simple learning: to meet case requirements
*Function: control the content of html document
*Get page label (Element) object: element
*document.getElementById("id value"): get the element object through ...
Posted by MishieMoo on Tue, 18 Feb 2020 04:54:06 -0800
layui multiple file upload buttons for one page
Project background
Recently, in the UAV mission distribution module, there is a business scenario where you need to add specific path points to each flight path. Here, you choose to add them directly by importing the excel table. The path point information has been set in the excel table in advance. ...
Posted by janderson on Mon, 17 Feb 2020 21:52:36 -0800
The key function selector of jQuery
Selector is the core of jquery
The object returned by jquery selector is jquery object, which does not return undefined or null, so it is unnecessary to judge
Basic selector:
ID selector $("" Id ")
element selector (label selector) $("label") such as $("div")
Get the specific label, and use the way of array ...
Posted by jesse26 on Sun, 16 Feb 2020 02:54:35 -0800
[Python Crawler] 8. Selenium and PhantomJS for Dynamic HTML Processing
Summary of Expiration:
[Python Crawler] 1. Requests and Responses of HTTP and HTTPS of Crawler Principles
[Python Crawler] 2. Definition, classification, flow and encoding format of crawler principles
[Python Crawler] 3. Requests HTTP Library for Data Grabbing
[Python Crawler] 4. Fiddler, ...
Posted by digitalecartoons on Sat, 15 Feb 2020 18:03:25 -0800
Scope problem in timer
/*
All kinds of sports
*/
function Animation(){};
Animation.prototype={ /* Uniform motion */
linear:function(obj,target){
obj.timer=null;
clearInterval(obj.timer);
var step=obj.offsetLeft<target?5:-5;//Use position to judge the direction of motion
if(obj.offsetL ...
Posted by bambambanana on Sat, 15 Feb 2020 10:14:43 -0800