Three Frameworks of Web Front-end _angular.js 6.0
Click to read angular (1)Click to read angular (2)Check out nicknames and get a full set of angular video tutorials
I. Angular 6.01.1 Custom Directives1.1.1 icktBindBinding this data to an element, similar to interpolation syntax
1 // Introducing services
2 import { Directive, ElementRef } from '@angular/core';
3
4 @Directive({
5 selecto ...
Posted by RGBlackmore on Thu, 01 Aug 2019 01:22:37 -0700
Vue-cli SEO prerenders using prerender-spa-plugin plug-ins
Packing projects with vue-cli are usually spa projects. It is well known that single-page applications are not conducive to SEO. There are two solutions: SSR (server-side rendering) and pre-rendering. Here we only discuss pre-rendering.
vue-cli has 2.0 and 3.0 versions. The solutions are different. ...
Posted by onegative on Wed, 31 Jul 2019 19:35:34 -0700
React Hooks Deep Series - Design Mode
This article is React Hooks in-depth series Follow-up.This article details the advantages of Hooks over classes, introduces the design ideas of related api, and explains how Hooks align the life cycle hooks of classes.
React Logo and Hooks
React's logo is an atomic pattern in which atoms make up the representation of matter.Similarly, React is ...
Posted by Unknown_Striker on Wed, 31 Jul 2019 14:44:19 -0700
vue Knowledge Point Arrangement-State Management (Vuex)
1. What is Vuex?
Vuex is a state management mode specially developed for Vue.js applications. It uses centralized storage to manage the common state of all components, and ensures that the state changes in a predictable manner with corresponding rules.
The dotted green line in the picture above repres ...
Posted by banks1850 on Wed, 31 Jul 2019 09:02:16 -0700
vue router routing parameters
The first params
{
path: '/son1',
name:"son1",
component: son1,
}
Name the route name:"son1"
When routing jumps, specify named routes and pass parameters
1
<router-link :to="{name:'son1',params:{id:2,name:'winter',age:18}}" tag="li">home page</router-link&g ...
Posted by Brakanjan on Tue, 30 Jul 2019 22:48:59 -0700
Previous Data Request
Data Request
Data request: Axios fetch
How to request data
Native
ajax fetch
encapsulation
jq
Vue 1.x vue-resource abandonment test
axios is now the best encapsulated request library [framework project]
axios and vue-resource similarity 98%
1.axios
Reference: cdn of axios can be int ...
Posted by wmolina on Tue, 30 Jul 2019 18:45:02 -0700
Using v-model on components
<input v-model="searchText">
Equivalent to
<input
v-bind:value="searchText"
v-on:input="searchText = $event.target.value"
>
When used on components, v-model does this:
<custom-input v-model="searchText"></custom-input>
Equivalent to
<custom-input
v-bind:value="searchText"
v-on:input="searchText = $event" ...
Posted by apitto on Tue, 30 Jul 2019 14:06:57 -0700
Vue Componentized Development
1. Implementing data requests through axios
Introduction to 1. json
json is an acronym for JavaScript Object Notation. The word means a javascript object representation, where json refers to a data format similar to a javascript object.
What json does: Transfer data between different system platforms or programming languages.
Syntax for 1.1 ...
Posted by jimmyt1988 on Mon, 29 Jul 2019 11:44:43 -0700
Common front-end cross-domain request methods
Common front-end cross-domain solutions (full)
What is cross-domain?
Cross-domain refers to documents or scripts in one domain trying to request resources in another domain, where cross-domain is broad.
Broad cross-domain:
1. Resource jump: A link, redirection, form submission
2. Resource embedding: <link>, <script>, < ...
Posted by james2010 on Mon, 29 Jul 2019 07:42:18 -0700
Learn the overall architecture of jQuery source code and build your own js class library
Although jQuery is hardly used now, it is still necessary to learn its source code for JS libraries that have been popular for more than 10 years. You can also learn to build your own JS class library, job interviews can add a lot of color.
This article is about v3.4.1.unpkg.com source address: https://unpkg.com/jquery@3.4....
jQuery github rep ...
Posted by zoozoo on Mon, 29 Jul 2019 03:33:29 -0700