WeChat Applet View Layer WXS_Data Type

data type The WXS language currently has the following data types: number:Number String:string boolean: boolean Object: object Function: function Array:array Date: date regexp: regular number grammar number consists of two numbers: integer and decimal. var a = 10;var PI = 3.141592653589793; attribute constructor: Returns the string "N ...

Added by PDP11 on Fri, 17 May 2019 07:06:13 +0300

Collection of JavaScript, Object-Oriented Programming (2)!

Today I went on to write the last one. Yesterday I was so tired this week that I rushed to work overtime every day. At 12 o'clock yesterday, my neck began to ache. Okay, no nonsense. It's time to start inherit Inheritance: Subclasses inherit attributes and methods in parent classes, which do not require implementation in subclasses Types of i ...

Added by unstable_geek on Thu, 16 May 2019 20:12:06 +0300

vue hook function (soft text)

Preface: The hook is like dividing a person's birth to death into stages. You must name at birth, not at the stage of adulthood or death. Or if you want to make an appointment at birth, you can't. The same is true of components, whose internal structure is different at each stage. So a specific hook can do something specific, s ...

Added by rachelk on Thu, 16 May 2019 09:43:46 +0300

Communication between React components

In the process of using React, it is unavoidable to need message transmission (communication) between components. There are several situations of communication between components in general: Parent components communicate to child components Subcomponents communicate to parent components Communication between cross-level components Communicatio ...

Added by cocpg on Thu, 16 May 2019 08:26:23 +0300

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