A first look at ajax (2) - encapsulating jsonp

Reprinted from Say JSON and JSONP, maybe you'll be clear-cut brief introduction What is jsonp JSONP(JSON with Padding) is a "usage mode" of JSON that can be used to solve cross-domain data access problems in mainstream browsers. Due to the homology policy, web pages located in server1.example.com in general cannot comm ...

Added by zippee on Mon, 20 May 2019 04:30:30 +0300

JS inherits this

ECMAScript implements inheritance in more than one way. This is because the inheritance mechanism in JavaScript is not explicitly prescribed, but implemented through imitation. This means that all inheritance details are not entirely handled by interpreters. Suitable ways of inheritance can be determined according to the needs.Original link ...

Added by hmiller73 on Sun, 19 May 2019 21:30:28 +0300

JavaScript syntax details: if statement & for loop & function

This article was first published in Blog Park And in GitHub Continuously update the front-end series on.Welcome to follow me on GitHub to get started and to get ahead. Below is the body. if statement The most basic if statement Structure of if statement: (Format) if (Conditional expression) { // What to do when conditions are tr ...

Added by willeh_ on Sun, 19 May 2019 17:04:29 +0300

How to Use Object Method in JavaScript

Original text: How To Use Object Methods in JavaScriptAuthor: Tania RasciaTranslator: Boxuan introduce In JavaScript, object Is a collection of key/value pairs. Values can contain attributes and methods, and can contain all other JavaScript data types, such as strings, numbers, and Boolean values. All objects in JavaScript come from the parent ...

Added by chewydence on Sun, 19 May 2019 15:48:24 +0300

Communication between Angular and Modal Box

When Angular is working on a project, it is inevitable to use a pop-up box (that is, a modal box). If there is a table in the modal box, the data in the table needs to be from the parent component (let's talk about it as a parent component for the time being). The data in the modal box table is modified and sent back to the parent component. Ho ...

Added by algy on Sun, 19 May 2019 08:35:03 +0300

Front-end: the difference between pageY, clientY and offsetY & drag effect optimization

Preface I wrote an article before. Articles on drag effects in html and JavaScript The contents of this article are quite simple, and there will be errors in fact. The effect of the errors is as follows: The same interface, we slide to the top, but the effect is correct: Why, in fact, because of the location, when we dra ...

Added by camoconnell.com on Sun, 19 May 2019 05:01:54 +0300

Learning Js Basic Day 6 Objects and Built-in Objects Math,Date

Object-oriented What is the object? Something visible, tangible, specific Object Finding: Describing Object Finding Object: What are the characteristics of the object: characteristics and behavior Summarize what is the object Object: Something with characteristics and behavior, specific characteristi ...

Added by dunnsearch on Sun, 19 May 2019 03:00:41 +0300

ReactDOM.render Source Parsing-1

Looking at the source code of the react-dom package, we find that it is much more complex than the react package. There is no cross-package call in the react package. What he does is to define the ReactElement object and encapsulate the basic operation of ReactElement, while the react-dom package has complex function calls. This article will do ...

Added by turek on Sat, 18 May 2019 20:21:19 +0300

On Writing Those Things Use js to Statisticate the Reading Quantity of Major Blogs

In the process of daily article data statistics, manual method has been difficult to deal with, so gradually began the process of intervention statistics. In the previous section, I explored the use of csv file format for article data statistics. I thought I could deal with it for a while, but I gave up in just one day. The reason is not that I ...

Added by Colleen78 on Sat, 18 May 2019 15:08:06 +0300

Understand JavaScript call()/apply()/bind()

Understanding JavaScript this In this paper, the pointing problem of this in JavaScript has been comprehensively analyzed. In one sentence, it is concluded that the pointing of this must be decided at the execution time, pointing to the object of the called function. Of course, the previous article also pointed out that the directions of this c ...

Added by tendrousbeastie on Sat, 18 May 2019 10:32:16 +0300