Vue Learning Notes--Basic Use of Vue-Router

1. SPA(Single Page Application) Better performance than back-end rendering Ajax front-end rendering, browser forward and backward operations are not supported SPA Single Page Application: There is only one page in the whole system, the content changes are local refresh through Ajax asynchronous request, and support browser address bar forward ...

Posted on Sun, 07 Jun 2020 14:18:31 -0700 by Lokolo

An easy to understand introduction to TypeScript

This article comprehensively introduces the common knowledge points of TypeScript, which is especially friendly for new beginners! This article will take you step by step to learn 14 knowledge points related to the introduction of TypeScript. See the following figure for a detailed outline: 1, What i ...

Posted on Sun, 07 Jun 2020 03:13:07 -0700 by begeiste

2: The magic of constructors

Objectives: Be able to figure out the constructor and prototype Understanding inheritance of constructors Master some new methods of es5 1. Constructors and prototypes 1.1 general In a typical OOP language (such as Java), there is the concept of class. Class is the template of object, and object ...

Posted on Sun, 07 Jun 2020 00:28:03 -0700 by jmgarde

Flutter learning note 04: Dart data type

One of the most basic characteristics of programming language is the data types it supports. These are the types of values that can be represented and manipulated in programming languages. The Dart language supports the following types: 1. Number int, double 2. String 3. bool 4. List (similar to array) ...

Posted on Sat, 06 Jun 2020 00:07:34 -0700 by msandersen

jq filtering method

Filtering is to find the desired element from the set of matching elements. (from a bunch of elements)1. first() and last()Syntax: $(selector).first()Gets the first element in the matching element collection. This method does not accept any parameters.Syntax: $(selector).last()Gets the last element in the matching element collection. This meth ...

Posted on Thu, 04 Jun 2020 09:01:53 -0700 by knox203

On JQ pseudo class method

In addition to four mouse state pseudo class selectors, in addition to target, jQuery supports them, which is also called filter selector in jQuery1.first-childE: First child first e element (this e element must be the first child of the parent element)2.first-of-type E:first-of-type The first E-type element (this e-element is not necessaril ...

Posted on Thu, 04 Jun 2020 08:15:26 -0700 by sqlmc

⑭ A series of usage methods of HTML5 canvas

Html5 Use picture & set background Gradient effect Draw text For example: the text in canvas is horizontally and vertically centered Shadow (text shadow & box model shadow) Pixel operation Example: operate on a single pixel (row and column) Add a mosaic to the picture synthesis Other uses ...

Posted on Thu, 04 Jun 2020 07:11:13 -0700 by sridhar golyandla

Prototypes/Objects in javascript

1.javascript creates object new prototype chain function foo(){ } foo.prototype.z=3; var obj=new foo(); obj.x=1; obj.y=2; obj.z=5; console.log(obj.x);//1 console.log(obj.z);//5 console.log(typeof obj.toString());//string type console.log(ob ...

Posted on Mon, 01 Jun 2020 10:14:53 -0700 by James25

javascript practical writing summary

To Boolean type !!'a' With two negations, you can cast to Boolean type.   Transfer Number type // String Convert to Number console.log(+'45'); // Date output timestamp console.log(+new Date);   parseInt ~~, which also converts strings to numeric types. Round down. // ~~Convert string to numeric type, round down console.log(~~3. ...

Posted on Mon, 01 Jun 2020 02:00:15 -0700 by sazzie

Using Docker to publish razor wasm

Using Docker to publish razor wasm The files compiled by Blazor are static files, so we only need a web server that supports static pages.According to different projects, it will be arranged in different containers. For example, this article will show how to pack into docker step by step when there is no gateway demandHTTPSSince there is no gat ...

Posted on Thu, 28 May 2020 18:53:24 -0700 by matt_wilkes