vue-wacth listening event

2019-08-05   0:20 Vue.js listens for the attribute watch, and we can respond to changes in data through watch. The following example implements the counter by using watch: (At this point, I thought, as if binding the click event can also achieve the counter, so I added a click event "I'm a real bull" myself). <!DOCTYPE html&gt ...

Posted on Wed, 09 Oct 2019 13:22:08 -0700 by laflair13

react integrates native redux

react integrates native redux(1) Project Creation create-react-app reduxdemo Dependency packages yarn add redux -s thinking Creating a globally unique store through redux Getting the required data through the store Distributing action objects through dispatch causes store state changes Change the view layer through store subscribe src file di ...

Posted on Wed, 09 Oct 2019 11:11:59 -0700 by zemerick

Method of encapsulating jsonp request data

What is jsonp: Jsonp(JSON with Padding) is a "usage mode" of json, which allows web pages to obtain information from other domain names (websites), that is, cross-domain reading of data. Why do we need a special technology (JSONP) to access data from different domains? This is because of the homology strategy. Homologous Policy, a ...

Posted on Wed, 09 Oct 2019 09:32:24 -0700 by seek

String Retrieval Method

3-1 String (String Retrieval Method)   String Retrieval Method 1. Want to get a character in a string stringObject.charAt(index) returns the character in stringObject that gets the index position stringObject.charCodeAt(index) returns the character encoding of the character that gets the index position in stringObject. 2. Want to ge ...

Posted on Wed, 09 Oct 2019 05:26:10 -0700 by C_Calav

javascript combination pattern

Combination mode **// Composite Patterns Form Tree Structures Between Objects// Basic objects and composite objects are treated consistently in combination patterns// You don't need to care how many layers of calls an object has to make at the root **It combines command mode and combination mode. const MacroCommand = function () { ret ...

Posted on Wed, 09 Oct 2019 03:22:32 -0700 by docpepper

js tips for improving happiness

4. Numbers 4.1 Different Binary Representations ES6 has added different writing formats, which should be paid attention to in the background. 29 // 10 Binary system 035 // 8 Binary 29 The original way 0o35 // 8 Binary 29 ES6 Ways 0x1d // 16 Binary 29 0b11101 // 2 Binary 2 ...

Posted on Wed, 09 Oct 2019 02:29:26 -0700 by Chetan

acmPush module example demo

Thank you for sharing with forum moderator Ma Haochuan. Module Description: Alibaba Cloud Mobile Push is a mobile intelligent push service based on big data, which helps App integrate mobile push function quickly, while achieving efficient, accurate and real-time mobile push, greatly reducing the development cost. To enable developers to mainta ...

Posted on Tue, 08 Oct 2019 22:09:19 -0700 by mzfp2

NET MVC5 Brief Introduction Result

Ajax request data response format, a striking group must agree, the front-end knows how to deal with, there are many other cases, such as exceptions, ExceptionFilter, according to the fixed format return, such as no permission, Authorization, according to the fixed format return. The nature of the Http request: Request-response, can the respo ...

Posted on Tue, 08 Oct 2019 21:05:46 -0700 by Benjigga

Basic Selector Learning in jQuery (Supplementary)

First look at the overall code: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>05jQuery Basic selector learning in C</title> <script type="text/javascript" src="js/jquery-1.9.1.js" charset="UTF-8"></script> <style> div{ ...

Posted on Tue, 08 Oct 2019 15:08:50 -0700 by Randuin

Experience in using jquery.lazyload.js

Today, I want to do some optimization in the project, do a lazy loading, I use jquery.lazyload.js, website: http://www.jq22.com/jquery-in.... The case given is for img, and then I wonder if it can be implemented in the background image. Looking at the source code roughly, it seems to have this function: I posted the code I tested, including img ...

Posted on Tue, 08 Oct 2019 13:50:19 -0700 by mrMarcus