Closures and advanced functions in JavaScript

In JavaScript, functions are first-class citizens. JavaScript is an object-oriented programming language, but it also has many features of functional programming, such as Lambda expressions, closures, high-order functions, etc. functional programming is a programming paradigm. function dada() { var a = 1; var b = function() { console.log(a ...

Posted by Petran76 on Thu, 14 Nov 2019 21:49:39 -0800

echarts implements external call chart download method, compatible with chrome and IE10+

In the process of project development, there is often a demand for image export, especially for the application with chart class. It is usually necessary to download and export the chart. Although echarts provides a download component in the chart, it is inevitable for specific projects to call this method to save the picture outside the chart ...

Posted by bo0 on Thu, 14 Nov 2019 20:23:32 -0800

Native JS for image scrolling

I. principle The black box is the area where the final rolling image is displayed, and the green box is its sub container, whose width is larger than the black outer box, so that the image rolling can be realized by setting the scrollLeft of the black box. The innermost blue box is used to wrap all the scrolling images, while the content of t ...

Posted by saltious on Thu, 14 Nov 2019 10:54:38 -0800

Build Vuepress blog/document system: Build, PDF export, SEO, auto compile, auto deploy, domain name, HTTPS, archive, etc.

This is a personal (pdai) original article, please indicate the source for reprinting and refer to the effect of blog building: [Java Full Stack Knowledge System] ( https://www.pdai.tech) Article Content Directory Article Content Directory Part I - Building Blog/Document System Blog/Document Preface What are the options What attempts have ...

Posted by DannyM on Mon, 11 Nov 2019 19:49:02 -0800

Wi Fi module Demo (novice tutorial) graphic explanation module tutorial

The first step is to create a Native App application in the development console and prepare for adding modules: Follow the steps below After entering points and creating points It is better to click the Add button to return to see if you have added the required module. After adding the module, click the custom Then the cloud operation is co ...

Posted by davestevens_uk on Mon, 11 Nov 2019 13:30:30 -0800

$on and $emit realize parent-child cross component communication

As we all know, $on is for event monitoring, and $emit is for event distribution. But you may be unfamiliar with $dispatch and $broadcast. This api is version 1. X of vue1.x, which has been abandoned in vue2.x $on and $emit $on can also monitor events triggered by itself $dispatch and $broadcast $dispatch: used to dispatch events to t ...

Posted by xcali on Sun, 10 Nov 2019 09:22:05 -0800

Learn threeJs -- the first threeJs

Reference: threeJS Development Guide Three basic elements of threeJs 1. scene: a container to save and track the objects we want to render 2. camera: define what can be seen in the scene 3. rederer: calculate the appearance of the scene under the specified camera angle -- what kind of rendering method is used (usually rendering with video c ...

Posted by jcm93 on Sat, 09 Nov 2019 12:18:34 -0800

axios interceptor + default parameter configuration + custom header settings + unified error handling

axios interceptor + default parameter configuration + custom header settings + unified error handling This configuration file can fulfill simple project requirements, and the specific configuration depends on the project. It mainly includes: axios interceptor Default parameter configuration Custom header settings Un ...

Posted by mie on Fri, 08 Nov 2019 12:21:09 -0800

Grid layout learning notes

Grid is the most powerful CSS layout scheme, stronger than flex. It divides web pages into grids, and can combine different sizes of grids to make a variety of layouts.As shown in the above figure, it is the grid layout application, and for example, the main page dashboard of the management system, which is implemented by grid layout. Flex layo ...

Posted by igebert on Tue, 05 Nov 2019 20:03:29 -0800

From entry to mastery

In the world of fluent, everything is Widget, image, text, layout model and so on. Everything is Widget In the fluent, try to put the widget in the MaterialApp. It encapsulates some required widgets. MaterialApp is generally used as the top-level widget, while Scaffold is set inside MaterialApp, because Scaffold provides the basic implementati ...

Posted by Confessions on Tue, 05 Nov 2019 18:58:58 -0800