Mutual calling of components in vue and iterative generation of menu tree on the left side of general background management system

Because I started to learn to build a front-end project of a back-end management system using vue recently, I encountered some problems when generating menu tree on the left. Record it here Analysis: because the menu I set can make multi-level structure, it is not very convenient to directly use v-for traversal of vue. In this case, recursion i ...

Posted on Mon, 04 May 2020 06:00:08 -0700 by sergio-pro

Gin go learning Note 6: preparation of gin web framework Api

Api writing 1> The data formats returned by the Api of the Gin framework are JSON, XML and yaml. Yaml is a special data format. (I haven't implemented the operation of getting nodes for the time being.) 2> In the apis folder, create a new data.go file as the business logic code to obtain api data. The specific code is as follows:     pac ...

Posted on Mon, 04 May 2020 04:14:13 -0700 by Levan

Application examples of closures

1. Overview Closure essence: pass the inner function outside the lexical scope, and the inner function still holds the reference to the original scope. 2. Application (1) Timer <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8" /> <title>Application of closure</title&gt ...

Posted on Sun, 03 May 2020 18:04:54 -0700 by AaZmaN

three.js learning function usage 3

23. Controlling animation through json objects //SphereGeometry                   var sphereGeometry = new THREE.SphereGeometry( 5, 32, 32 );                   var material = new THREE.MeshBasicMaterial( { color: 0xffff00 } );                   var sphereMesh = new THREE.Mesh( sphereGeometry, material );                ...

Posted on Sun, 03 May 2020 16:55:31 -0700 by kumschick

ArcGIS API for JavaScript 3.23 load day map

As mentioned in the previous article, loading the sky map is also through the tiledmaservicelayer to define the sky map layer module. Taking loading vector map as an example, this article explains how to customize layer module and load display layer. 1. Load the renderings of various sky maps: [1] Vector graph [2] Image [3] Topographic m ...

Posted on Sun, 03 May 2020 06:46:12 -0700 by DjMikeWatt

Handwritten signature plug-in - using experience of jSignature

Recently, we need to do a function of handwritten signature on the mobile terminal. After searching the Internet, it's basically the jSignature plug-in. There's almost no second choice. So we can follow the copy test of various versions on the Internet. It's easy to test on the PC terminal. However, after the mobile te ...

Posted on Sat, 02 May 2020 18:00:51 -0700 by Poomerio

Using Node to operate MongoDB

1. Use MongoDB module for operation First, install the mongodb module in the working directory, 1 cnpm i mongodb//Lead in module const MongoClient = require('mongodb').MongoClient; //Write connection string,My database address is as follows,So when you're writing, just change the address const DB_CONN_STR= 'mongodb://127.0.0.1/demo'; //Remem ...

Posted on Sat, 02 May 2020 15:31:39 -0700 by daimoore

JavaScript - recognize DOM-

JavaScript consists of three parts js consists of three parts 1.ECMAscript 2. DOM document object model Simply put: DOM provides some API s (interfaces) that give developers the ability to operate the page 3.BOM DOM の common node types Element node. Element? Node (1) Document nod ...

Posted on Sat, 02 May 2020 12:20:25 -0700 by mac25

Pure JS full screen scrolling / full screen paging

http://blog.csdn.net/tangdou5682/article/details/52351404 Online demo http://ftp592347.host584.zhujiwu.me/js-fullpage/index.html Summary of knowledge points When you need to make interactive effects such as turning the mouse wheel to enlarge the page font, the mousewheel event is used. In fact, most browsers (IE6, IE7, IE8, Opera 10+, Sa ...

Posted on Sat, 02 May 2020 11:06:51 -0700 by KingWylim

Gin go learning note 3: JS paging of gin Web Framework

JS paging 1> JS paging, business logic (1) Paging uses a jQuery plug-in called jquery.pagination.js (2) The support of jquery is required. jquery-2.1.1.min.js is used in this project (3) The parameters required for paging are: total number of records, number of displays per page, and page number (4) Add search criteria to use as a query 2&gt ...

Posted on Fri, 01 May 2020 21:04:02 -0700 by saurabhdutta