Front end beginner's notes: JavaScript objects
JavaScript object
An object is a collection of related data and methods (usually composed of some variables and functions, which we call attributes and methods in an object)
1. Object creation
Literal mode
var obj = {
name:'TTTony',
age:21,
sayName:function(){
console.log(this.name);
}
}
Constructor Pattern
var obj = new Object(); ...
Posted by cyball on Fri, 17 Sep 2021 23:58:40 -0700
JS Data Type Detection
What are the methods for JS data type detection
What are the data types in JavaScript
In JavaScript, data types are divided into primitive and object types Raw data types include
String: Represents a string, for example:'jingzhi'Number: Represents a numeric value, for example, 123Boolean: Represents a Boolean type of data with two values tru ...
Posted by stupid girl! on Fri, 17 Sep 2021 00:17:52 -0700
Node.js and Modules
Components of JavaScript in browsers
JS in Browser
ECMAScript (Core Syntax) ES3 --> ES4 --> ES5 --> ES6 (2015) --> ES2016 --> ES2017.....
Variables, Constants data type function Process control (if, switch, for, while, for...in, continue, break) operator JS built-in objects (Array, String, RegExp, Date, Math....) Web ...
Posted by rock_xl1 on Tue, 14 Sep 2021 19:09:30 -0700
❤ A chat room case shows you how the Node.js+ws module realizes websocket communication!
Article catalog
🔥 1. Foreword
🔥 2. Project structure analysis
🔥 3. Operation steps
🔥 4. View effect
🔥 5. Previous good articles recommended
🔥 1. Foreword
Hello, I'm a paper plane. If every day is endless knowledge, such learning must be very boring. Today, I'll bring you something with a sense of achi ...
Posted by craigw9292 on Mon, 13 Sep 2021 22:34:49 -0700
Node and node based Express framework + MongoDB
1 Node
Node provides us with a JavaScript code running environment that can directly interact with the operating system without relying on the browser.
It can directly use JS to write background programs, so that foreground developers can also quickly develop background code, that is, HTML+JavaScript+MongoDB; Instead of Tomcat, the foregr ...
Posted by DaiLaughing on Mon, 13 Sep 2021 19:10:20 -0700
vue component library development upload npm
1. Build vue project first
Run Vue cli
vue create vui
We renamed src to examples and added the packages directory to store our custom components
However, cli will start the service under src by default. If the directory name changes, we need to manually modify the configuration and customize the file of packaging configuration items. ...
Posted by polymnia on Mon, 13 Sep 2021 13:04:52 -0700
Vue3.0 + Vite2.0 + Ts4.0 build a simple version of mobile blog
vue3-vite2-blog-h5
A simple version of mobile blog. The front-end project is mainly built by using Vue3's latest syntax sugar < script setup > and Vant3.0; Tsx is used to render common components; Vite 2.0 is used to build and package. The back-end project is mainly designed by Node framework Koa2 and MongoDB database.
PC blog online pr ...
Posted by jabapyth on Mon, 13 Sep 2021 11:44:41 -0700
Learn the basics of webpack
1, Introduction to webpack
What is webpack
webpack is a front-end resource building tool and a static module packer
In webpack, all file resources in the front end (js/json/css/img/less) are treated as modules. It will perform static analysis according to the dependency of the module and package the corresponding static resources.
...
Posted by ShadowIce on Sun, 05 Sep 2021 16:14:54 -0700
jwt Logon Check Carry token
jwt login registration
jwt concept
Token does not need to be stored in the database.Just generate the key behind the scenes, then put the token in the request body or header when the client sends the request. When the client receives the token, it is stored in the local store or cookie. Note that sensitive information cannot be stored in the to ...
Posted by phat_hip_prog on Mon, 29 Jun 2020 09:12:56 -0700
Brief analysis of Deno source code interaction between JS and Rust
start
Today, we start to analyze how JS and Rust interact. After all, the performance of JS is still not competent in some scenarios. This is the time when Rust is on the stage. The two complement each other and do no harm!
op
I have always said that op is a plug-in mechanism on deno. All functions on deno are basically based on this plug-in me ...
Posted by limao on Mon, 22 Jun 2020 22:36:23 -0700