Handwritten a simple JQuery

Test samples <!--Test samples--> <body> <div id="jq">1</div> <div class="hello">2</div> <div class="hello">3</div> </body> Why does jq use $(selector) to get DOM How to implement native js //It turns out that it's possible to pass in either an id selector or a class selector document ...

Posted by mike2098 on Tue, 14 Apr 2020 07:54:06 -0700

Click the mouse to show love + socialist values + random color text + mouse cursor custom image

js animation - click to show love Just put the following JS code before < / body > <script type='text/javascript' src='//api.dujin.org/js/aixintexiao.js'></script> Full code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, i ...

Posted by aconite on Sun, 12 Apr 2020 21:45:10 -0700

openlayers6 drawing sector (download with source code)

Preface I have written a fan-shaped map drawing article in openlayers 4 before, but because it is written by encapsulating a layer of js code, many beginners seem to be a bit laborious, so this article rewrites a fan-shaped map drawing article, which is written directly based on the latest version of openlayers 6, in the form of pure html + ...

Posted by phatgreenbuds on Sun, 12 Apr 2020 08:42:34 -0700

Deep Interpretation of ES6 Series

Preface from Lao Zeng es6: Hello, buddies, Z is back again. Welcome to Super IT's blog time. In the previous section, we talked about string, object-oriented and json's knowledge. In this section, we continue the ocean of our knowledge and fight together without baldness!Insufficient Welcome Question Message. I swear I really don't have a P-ch ...

Posted by BoukeBuffel on Fri, 10 Apr 2020 11:54:16 -0700

web front end introduction to actual combat: imitating meituan details page and shopping cart source code details page

Project diagram First, menu.html <!DOCTYPE html> <html> <head> <title>Shenzhen McDonald's Qianhai No.2 Restaurant</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0,user-scalable=0"> <script type="text/javascript"&g ...

Posted by savagenoob on Fri, 10 Apr 2020 08:26:48 -0700

eyoucms article image lazy loading

Because of the mobile terminal's network speed and other reasons, when we browse articles with large pictures, there is an unfriendly experience. Lazy loading of pictures can make up for this problem. For the consideration of mobile terminal lightweight, this case uses the smaller zepto.picLazyLoad.min.js instead of jquery, and the plug-in can ...

Posted by p0pb0b on Thu, 09 Apr 2020 09:10:09 -0700

Bootstart select picker dropdown fuzzy query

Recently, I have been using bootstrap to write a few blogs.... bootstrap selectpicker is a relatively simple component of a drop-down box in bootstrap. The effect is as follows: Attach the api link on the official website, http://silviomoreto.github.io/bootstrap-select/ (there seems to be something wrong with the offic ...

Posted by surreal5335 on Sun, 05 Apr 2020 13:09:49 -0700

Using js to realize simple and interesting face recognition

In the previous stage, I wanted to play face recognition. I found an interesting plug-in package. Although it is not particularly powerful, it can still achieve results relatively. It is mainly simple. It can be used within 5 minutes. You can play it. Now I will share it with you This plug-in is jquery.facedetection F ...

Posted by webent on Sun, 05 Apr 2020 12:29:08 -0700

About the records of using layui upload component

Most of the original information written by many bloggers from Baidu is their crystallization. Thank you again The purpose of writing this blog post is to make a record for yourself, which is convenient for future use Paste the front code first <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3. ...

Posted by Cenron on Sun, 05 Apr 2020 01:15:47 -0700

Event binding methods for DOM elements added dynamically in jQuery2.x and above

jquery dynamic add element cannot trigger the solution of binding event. jquery dynamically adds a solution to an event that cannot trigger a binding.   Recently, we have encountered a problem in our work, that is, when we use jquery to dynamically add elements, we find that the elements added to the dynamic cannot trigger events. Later, I ...

Posted by EvilPrimate on Sun, 05 Apr 2020 00:04:13 -0700