The effect of 12 constellation switching in weather function page of H5 anti QQ
Today, I watched QQ with my mobile phone. Suddenly, I saw the switching effect of the twelve constellations in QQ weather. I was so excited and thought about how to achieve it.
QQ weather effect:
The effect of my simulation:
It is not implemented in the mobile terminal. It should also be implemented by combining the thre ...
Posted by rob.weaver on Fri, 03 Apr 2020 07:54:59 -0700
Django + clipper to preview, cut and upload the Avatar
Train of thought:
Using the front-end plug-in of clipper, the pictures are cropped. The screenshot generated by clipper is a series of base64 codes, and then it is converted to blob format, which is transmitted to the back-end for storage. In short, it means that the front-end cut pictures are sent to the back-end, rat ...
Posted by Chinese on Thu, 02 Apr 2020 22:24:03 -0700
Method summary of jQuery serializing form (serialize(), serializeArray())
Summary of jQuery serializing forms
Now the static html page content in the case is posted here:
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="../js/jquery-3.2.1.js"></script>
</head>
<body>
&l ...
Posted by guru2k9 on Thu, 02 Apr 2020 20:23:37 -0700
Done a very simple front-end verification plus back-end jump
Today's release of this may be the most careless one of their own, a lot of problems want to understand, but when doing it, they found that not as they imagined, but also slowly debugging, on-line check a lot of methods are always not working, or their own grope out!
Front end display + verification + background query, ...
Posted by alexsaidani on Thu, 02 Apr 2020 17:54:43 -0700
Front drag plug-in gridster.js
Three files must be referenced when using gridster.js:
1.jquery.js(jQuery file) 2. Jquery.gridster.js (the main script of gridster) 3.jquery.gridster.css(gridster style file)
You can go to the official website to download, or you can directly reference cdn
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script> ...
Posted by BETA on Thu, 02 Apr 2020 15:17:19 -0700
Cross domain solution 1: JSONP
Homologous strategy
Balabalabala (the definition doesn't need to be mentioned, simply speaking, the protocol, port and domain name should be the same.)
Note: the difference caused by protocol and port is not within the scope of front-end solution
JSONP
The principle of jsonp is very simple. It is to create s ...
Posted by tommy1987 on Wed, 01 Apr 2020 08:33:59 -0700
nodejs learning notes (1) - web crawler
Unconsciously, I have been developing nodejs for more than a year. I learned a lot in the process and forgot a lot, so I still insist on leaving some content in the blog for later reference.
This article mainly realizes a simple website crawler function, grabs the website inside picture as well as the content.
Before grabbing, the modules of SU ...
Posted by ubunken on Tue, 31 Mar 2020 23:04:57 -0700
On how to get the width and height of display:none
In the end, we solved this problem when we were working on the project. Record it as follows:
There are several situations:
1. Normal condition
<div style="width:500px; height:300px;">
<div id="div1" style="width:100%; height:100%; background-color:red;">
<div id="child" sty ...
Posted by FillePille on Tue, 31 Mar 2020 15:22:41 -0700
Zhimeng super simple "load more" and "infinite pull-down" plug-ins, support dynamic and static, support image delay loading
Infinite Ajax Scroll, or ias for short, is a jQuery scrolling ajax paging plug-in. When the page scrolls to the visible part of the container, the data will be loaded asynchronously and automatically.
The integration of plug-ins is very simple, including the following steps:
1. jquery.js and jquery-ias.min.js are re ...
Posted by bacarudaguy on Tue, 31 Mar 2020 14:00:12 -0700
Some options are not displayed in Kendo UI required input verification
After several years of EBS secondary development, I recently transferred to WEB development, and finally got a sense of connecting with the world. The new project is useful to the front-end framework of kendo ui. I simply read a few novice introductory tutorials, started rolling code, copied and pasted rolling flying, a ...
Posted by kutchbhi on Tue, 31 Mar 2020 12:34:20 -0700