Mobile h5 monitors browser return operations (currently used in react projects)

Preface 1. Mainly return is the default browser return event is to return to the previous page. 2. Processing all kinds of pop-ups on the page, clicking on physical return should hide these pop-ups instead of returning directly to the page. 3. To sum up the problems, h5 should hope to monitor the return events and do some p ...

Added by Daisy Cutter on Thu, 16 May 2019 05:25:39 +0300

An in-depth guide to JavaScript prototypes

Summary: Understand prototype. Original: An in-depth guide to JavaScript prototypes Author: Front end wit Fundebug Copyright shall be owned by the original author when authorized to reproduce. You can't go far in JavaScript without learning how to handle objects.They are the basis for almost every aspect of the JavaScript programming langua ...

Added by webzyne on Thu, 16 May 2019 03:41:26 +0300

PHP Full Stack Learning Notes 4

PHP and JavaScript, master JavaScript foundation, custom functions, process control statements, events, call JavaScript scripts, use JavaScript in PHP. JavaScript, developed by Netscape, is an interpreted scripting language based on object and event driven and with security performance. JavaScript Foundation, Data Types, Variables, Annotatio ...

Added by wiggly81 on Thu, 16 May 2019 00:18:55 +0300

Native JS for Slide Wheel Map

Effect Implementation Principle Purely using html+css+JSDiscovery is relatively simple and does not require additional plug-ins or librariesThe core is to group the pictures into a sequence of rows, moving left and right, and overflow:hidden of the parent element to determine which pictures to display.Simply draw: Build basic interface <div ...

Added by Aptana on Wed, 15 May 2019 22:53:16 +0300

Ajax Data Request Server for Integration of Front-End Note Points & Resolving Cross-Domain & Three-Level Linkage & session & Stack

1. JSON data at the back end of the request JSON is an interactive format for front-end and back-end communication. JSON(JavaScript Object Notation, JS Object Markup) is a lightweight data exchange format. JSON is a necessary format for communication between backstage and predecessors of the Internet, replacing the original XML. XML data fo ...

Added by Chappers on Wed, 15 May 2019 22:03:54 +0300

Viewing Virtual dom of Vue Source from Debugging Tools

Preface Last time we mentioned that in the case of a child component, the parent component generates an instance of the child component after the created hook function is executed, the child component executes the created hook function, and checks if there are also child components, or repeats the steps of the parent component, otherwise the ch ...

Added by jvquach on Wed, 15 May 2019 13:43:00 +0300

Front-end api request caching scheme

In the development of web applications, performance is an indispensable topic. For web packaged single page applications, there are many ways to optimize performance, such as tree-shaking, module lazy loading, and using extrens network cdn to accelerate these conventional optimization. Even in the vue-cli project, we can use the -- modern instr ...

Added by sstoveld on Wed, 15 May 2019 11:10:25 +0300

H5 Media Tags, Properties and Cases

Multi-Media 1. Audio playback: use of audio tags: a) Attributes: autoplay If this property appears, the audio is played as soon as it is ready. controls If this property appears, the control, such as a play button, is displayed to the user. loop If this property appears, restart play whenever the audio ends. preload If this prop ...

Added by Space Cowboy on Wed, 15 May 2019 06:47:10 +0300

Implementing Picture Preview Component Based on Element UI

This is a simple click preview componentBy the way, record scope pits in vue stepped on during component writing~ Start with registering global components! Project catalogue: Imitate elementUI directory structure, directory name is component name, SRC is component source file (or js service file), there is also an index.js in the file director ...

Added by reddevil on Wed, 15 May 2019 05:40:54 +0300

Implement Redux architecture from zero to one with native JS

Preface Recently, I used my spare time to read Daika's "React Books", which benefits a lot from explaining React, Redux, etc. from the basic principles.It's better to write it once in a thousand times than to follow the author's thoughts and reference code to implement the basic Demo. Here's a Redux architecture from scratch using na ...

Added by jasraj on Wed, 15 May 2019 05:38:07 +0300