[Dada Front End] JavaScript Array Object

Author| Jeskson Source|Dada Front End Bistro JavaScript array object An array object is a variable type used to store multiple values in a single variable. Syntax for creating array objects: new array(); new array(size); new array(element0, element1, ..., elementn); The parameter size represents the number of array elements, returns the arr ...

Posted by gmp on Sat, 21 Dec 2019 12:11:09 -0800

Callback Hell and ECMAScript6 Promise

Promise is the fifth day of "14nodejs (7 days)", but promise is not the content of Node.js, but the new API of ECMScript6 Callback Hell Callback region one asynchronous request needs another asynchronous request result $.ajax({url, success: function () { ... }}) $.ajax({url, success: function () { ... }}) $.ajax({url, success: functio ...

Posted by macdumbpling on Thu, 19 Dec 2019 22:51:46 -0800

js array operation collation

basic operation Added and improved var a= new Array(); //Create an array a[0]=1;//Specify modifications directly a.push(1); //Add one directly to the last Delete //arrayObj.splice(deletePos,deleteCount); //Delete elements of a specified number of deleteCounts starting at the specified location deletePos, returning the removed elements ...

Posted by chemoautotroph on Thu, 19 Dec 2019 22:03:25 -0800

[Object Object] Solution JSON.stringify()

[Object Object] Description [object Object] is the string form of the object because the toString() method of the Object object is implicitly called in the form: "[object Object]". [object Object object] represents only one object, the current object toString() is not parsed correctly, and JSON.stringify() can be used to avoid this pr ...

Posted by Mikell on Thu, 19 Dec 2019 20:09:22 -0800

Node learning notes optimization crud addition, deletion, modification and query

This article combines the previous< Node learning notes Mongodb and Mongoose >Yes curd example Optimize MongoDB installation Download address of installation file:[ https://www.mongodb.com/download-center/community] To install MongoDB on Windows: https://www.runoob.com/mongodb/mongodb-window-install.html Special attention should be paid d ...

Posted by bashaash on Wed, 18 Dec 2019 14:12:30 -0800

WEB-WORKER advanced learning

Because of the JS single threaded model, though, requests can be processed asynchronously. But in the end, it needs to be handled by the main line In order to decouple rendering (request, calculation), the api request layer built by axios is modified, and all data requests are submitted to web work. Separate rendering from request problem H ...

Posted by microthick on Tue, 17 Dec 2019 23:55:05 -0800

Request and upload files, Session introduction, Restful API, Nodemon

By Jeskson Source: front end tavern of dada Request and upload files GET and POST requests const express = require('express'); const app = express(); app.set('view', 'pug'); app.get('/', function(req,res){ // Output response message req.send('hello') }); app.get('/users/:gender', function(req,res){ // Get route parameters let gender = ...

Posted by yodasan000 on Tue, 17 Dec 2019 21:59:38 -0800

Two projects one webpack package

File dependency is complex, static resource request efficiency is low, modularization support is not friendly, browser compatibility with advanced JS is low? That's the time to learn about webback I. a brief understanding of webpack (1) concept Webpack is a static module packaging builder for JavaScript applications. When processing an app ...

Posted by kubis on Tue, 17 Dec 2019 20:36:34 -0800

Taro realizes chatting, taro imitates wechat chat interface, taro+redux multi terminal instance

Recently, we have been exploring and developing multiple terminals, which has been used before uniapp+vue develops the project of multi terminal imitative buffeting / Momo live studio Today, I want to share the TaroChat project based on the taro+react multi terminal wechat like interface chat room, which also supports compiling to H5, applet an ...

Posted by bobbinsbro on Tue, 17 Dec 2019 05:06:23 -0800

Nuxt.js learning - nuxt.js error page, Meta tag of personalized specific page

[TOC] 1. Error page 1.1 official documents: You can customize the error page by editing the layouts/error.vue file Warning: Although this file is in the layouts folder, it should be treated as a page This layout file does not need to contain < nuxt / > tags. You can think of this layout file as a component for displaying application error ...

Posted by suncore on Sun, 15 Dec 2019 11:29:12 -0800