javascript Foundation (object)

1. Concept of object In JavaScript, an object is an unordered collection of related attributes and methods. All things are objects, such as strings, values, arrays, functions, etc. Objects are composed of properties and methods Attribute: the characteristic of a thing, which is represented by an attribute in an object (a common noun) Me ...

Posted by dantheman on Thu, 14 Oct 2021 10:17:35 -0700

JSON-Initial Knowledge+Resolution

1. JSON 1.1 What is JSON JSON (JavaScript Object Notation) is a lightweight data exchange format. JSON uses JavaScript syntax to describe data objects, uses a language-independent text format, and is easy to store and exchange. The network media type of JSON is application/json. 1.2 JSON Scope of Use JSON writes data objects based on ...

Posted by terfle on Thu, 14 Oct 2021 09:51:14 -0700

tabs to achieve dynamic data switching

Realization effect General idea First, I want to judge the number of each question type queried in the interface, find the question type ID whose count is not zero, and it appears first. I won't enter it after query, and then query and render the question resolvent At the beginning, I thought about how to change the activeName of the tabs ...

Posted by Fergusfer on Wed, 13 Oct 2021 21:05:13 -0700

Vue2.x learning notes

Scaffold file structure ├── node_modules ├── public │ ├── favicon.ico: Tab Icon │ └── index.html: Main page ├── src │ ├── assets: Storing static resources │ │ └── logo.png │ │── component: Storage components │ │ └── HelloWorld.vue │ │── App.vue: Summarize all components │ │── main.js: Entry file ├── .gitignore: git Configu ...

Posted by livepjam on Wed, 13 Oct 2021 16:29:00 -0700

Fundamentals of javascript functional programming

highlight: a11y-dark theme: scrolls-light Functional programming concepts The essence of the program is to get the output according to the input. X - > F (contact, mapping) - > y, y=f(x). Function is a first-class citizen, which is an ordinary object. It can be used as a parameter of another function, as a return value of a function, a ...

Posted by sv4rog on Wed, 13 Oct 2021 15:10:04 -0700

Explain the virtual DOM and Diff algorithm in simple terms, and the differences between Vue2 and Vue3

Because the Diff algorithm calculates the difference of virtual DOM, first pave a little bit of virtual DOM, understand its structure, and then uncover the veil of Diff algorithm layer by layer, in simple terms, to help you thoroughly understand the principle of Diff algorithm Understanding virtual DOM Virtual DOM is simply to use JS objects ...

Posted by tomato on Wed, 13 Oct 2021 08:51:49 -0700

Request method of Ajax encapsulation based on promise

1.Ajax requests obtain more information from the server asynchronously, which means that users can update the latest data of the server without refreshing the web page as long as they trigger an event. 2. Using Ajax, you must call the open() method, which accepts three parameters: the type of request to send (get, post), the URL of the request, ...

Posted by Devil_Banner on Wed, 13 Oct 2021 05:35:06 -0700

autojs beautiful ui interface 4

General communication group 698307198 Welcome to join v group and communicate with all the great gods Disclaimer: all content provided in this blog is for learning, sharing and communication only. We do not guarantee the correctness of the content. By using the content of this blog, the following problems have nothing to do with this blog. When ...

Posted by Robin M on Tue, 12 Oct 2021 20:08:47 -0700

Deep copy and shallow copy

1. What is shallow copy Create a new object that has an exact copy of the original object property values. If the attribute is a basic type, the value of the basic type is copied. If the attribute is a reference type, the memory address is copied  , So if one object changes this address, it will affect the other object. Above, ` S ...

Posted by pureDesi on Tue, 12 Oct 2021 19:16:12 -0700

[js] browser's homology policy and cross domain request

Homology strategy: What is homology strategy? Homology policy is a requirement (constraint) on network security given by the browser It is agreed that the addresses of the requesting party and the target party must ensure that the domain name and port number of the transmission protocol are completely consistent When you're sending a r ...

Posted by vMan on Tue, 12 Oct 2021 12:39:06 -0700