Packaging custom plug-in libraries and the use process of VueRouter

Encapsulating custom plug-in Libraries Define a component Is a single file component Loading.vue Registration component import Loading from './components/Loading.vue' export const loading = { install () { Vue.component( 'Loading', Loading) } } Use components import Loading from './xxx/loading/i ...

Posted by wildmalc on Fri, 26 Apr 2019 09:36:36 -0700

Differences and Common Points of var, let and const

I. The difference between let and var 1. Regarding variable promotion, var can raise variables, let can't. // For var, as shown below console.log(a); //Output undefined, which is variable escalation var a = 2; console.log(a); //2 //Equivalent to the following code var a; //Declare and initialize to undefined console.log ...

Posted by ksas025 on Fri, 26 Apr 2019 06:03:36 -0700

Sticky Footer

Write it first: Sticky Footer is a layout scenario for css. The footer footer is always fixed at the bottom of the page. When the content of the page is not long enough, the footer sticks to the bottom of the window. When the content is long enough, it will be moved downward. Because the content of the old portal is too short, the copyright f ...

Posted by d22552000 on Tue, 23 Apr 2019 14:36:34 -0700

Front-end Learning Notes 10 Style Enhancement Using CSS3

Enhancement with CSS3 Skip text gradient /* This code achieves the gradient effect when the mouse slides over the link */ a { color: #007c21; transition: color .4s ease; } a:hover { color: #00bf32; } Create rounded corners for elements Using CSS3, you can create rounded corners for most elements (including form elements, images, and ev ...

Posted by alconebay on Tue, 16 Apr 2019 14:24:32 -0700

A small amount of JQuery+CSS3 code to implement the wheel seeder (first writing articles, ideas, writing is not enough, light spray)

1. Preface, read a lot of wheel seeder code; but in mind, always think about whether there is a simple way to achieve the same effect. Search this (the link below), bright in front of you, then start to practice improvement. The main work, or the first paragraph of the article, "if there is a picture in the middle interval, then in the exe ...

Posted by Stickybomb on Sat, 06 Apr 2019 19:24:31 -0700

Wechat Embedded Video 2 (Material from Tencent Sun Shangxiang Doomsday Machine Skin Promotion H5)

Combining the previous two analyses Wechat Embedded Video 1 (Case Analysis)https://segmentfault.com/a/11...From AnimateCC to CreateJShttps://segmentfault.com/a/11... This time it's a demo that createjs completes UI with inline video Because we forgot the original address, we can only demo for ourselves to run a simple effect. You need to simpl ...

Posted by I Am Chris on Sat, 06 Apr 2019 18:18:30 -0700

Example analysis of js simple module loader

Front-end modularization Families concerned about the development of front-end technology are certainly familiar with the term modular development. With more and more complex front-end projects and more code, modularization has become an inevitable trend. Various standards Because javascript itself does not set standards (of course, es6 already ...

Posted by eazyGen on Sat, 06 Apr 2019 13:09:29 -0700

js handles recursive problems elegantly with iterator pattern

What is an iterator Each value in a circular array or object has already provided an iterator natively in js. var arr = [1, 2, 3] arr.forEach(function (item) { console.log(item) }) Implementing an iterator var iterator = function (arr, cb) { for (let i = 0; i < arr.length; i++) { cb.call(arr[i], arr[i], i) } } var cb = function (ite ...

Posted by ADLE on Tue, 02 Apr 2019 20:03:28 -0700

pandas ExcelWriter customized format (customized header, rendering color, etc., non-ExcelWriter standard creation mode)

pandas ExcelWriter customized format (customized header, rendering color, etc., non-ExcelWriter standard creation mode) Excel Writer plug-in has a pit that the format that has been set can not be changed. Therefore, when converting from pandas to excel, the format must be cleared, especially the format of the header. The code is as follows: i ...

Posted by Germaris on Tue, 02 Apr 2019 00:06:29 -0700

Big pit encountered in acquiring mysql data by NODE.js synchronous call

Today's edition will share with you an article about the pit encountered when nodejs synchronous invocation acquires mysql data. It is very comprehensive and meticulous. It has a certain reference value. Friends who need it can refer to and learn from it. If there are any shortcomings, criticism and correction are welcome. mysql calls to get d ...

Posted by rob323 on Sun, 31 Mar 2019 01:51:30 -0700