DOM of JavaScript Foundation (3)

lookup HTML element var x=document.getElementById("main"); var y=x.getElementsByTagName("p"); var x=document.getElementsByClassName("intro"); HTML DOM document.getElementById(id).innerHTML=New HTML document.getElementById(id).attribute=New attribute value CSS DOM document.getElementById(id).style.property=New style HTM ...

Added by ntjang on Thu, 26 Dec 2019 21:38:12 +0200

uni-app: How do I implement incremental updates?

As you know, many APPs have incremental updates. Uni APP also introduced incremental updates at the beginning of this year. Today we will learn about them. Of course, many app markets, especially apple, reject incremental updates in order to prevent developers from providing illegal content to users without market review and approval.So with in ...

Added by gm04030276 on Thu, 26 Dec 2019 05:49:49 +0200

Getting started with Vue.js: making a minimalist to do application from scratch

Writing time: December 10, 2019Version information: Vue.js 2.6.10Official documents: https://cn.vuejs.org/ Preface One of the best ways to learn about Vue is "check out Vue.js's Official documents Take a look at the "basic" part. It's better to eat with this article. Before you start writing code, first go BootCDN Find the link ...

Added by pandu345 on Wed, 25 Dec 2019 11:49:21 +0200

Custom TextView - custom View, custom attribute base case

User defined view is the basis of Android development. There are not too many difficulties in itself, and there are not many knowledge points to be considered, mainly including canvas drawing related knowledge, view control measurement, user-defined attributes, etc. in this case, we try to demonstrate the above knowledge points ...

Added by therealairness on Tue, 24 Dec 2019 17:37:07 +0200

Spring Security SMS verification code login in Spring Boot

In the section of adding graphic verification code in Spring Security, we have implemented the account password login based on Spring Boot + Spring Security, and integrated the function of graphic verification code. At present, another very common way of website login is SMS authentication code login, but Spring Security only provides the login ...

Added by Thoughtless on Tue, 24 Dec 2019 06:00:15 +0200

Analysis of Vue principle: thoroughly understand the generation process from virtual Dom to real Dom

Previous: Analysis of Vue principle (4): do you know how to generate virtual Dom? After another tree structured JavaScript object, what we need to do now is to form a mapping relationship between this tree and the real Dom tree. First, we briefly review the previous mountComponent methods: export function mountComponent(vm, el) { vm.$el = e ...

Added by EXiT on Mon, 23 Dec 2019 12:23:54 +0200

Adding graphic verification code to Spring Security in Spring Boot

Adding the verification code can be roughly divided into three steps: generating the verification code picture according to the random number; displaying the verification code picture on the login page; adding the verification code verification in the authentication process. The authentication verification of Spring Security is completed by the ...

Added by Baumusu on Mon, 23 Dec 2019 11:54:25 +0200

Slot slot of vue

1. The slot template is a slot, which is an empty shell, because its display and hiding as well as the final html template display are controlled by the parent component. However, the location of slot display is determined by the child component itself. The template from the parent component will display the slot in the future. ...

Added by San_John on Sat, 21 Dec 2019 17:05:11 +0200

Prototypes and in operators

Prototypes and in operators 1. Use the in operator alone: returns true when an object can access a given attribute, whether the attribute exists in the instance or prototype. function Person(){ } Person.prototype.name="Nicholas"; Person.prototype.age=29; Person.prototype.job="SoftWare Engineer"; Person.prototype.sayName=func ...

Added by Nhoj on Thu, 19 Dec 2019 22:45:27 +0200

Vue router realizes parameter transfer between Vue components

1. Suppose there are two Vue components, index.js in the src/router folder import Vue from 'vue'; import Router from 'vue-router'; import officeHome from '@/view/officeHome'; import home from '@/view/home'; Vue.use(Router); export default new Router({ routes: [ { path: '/officeHome', name: 'officeHome', ...

Added by cry of war on Thu, 19 Dec 2019 20:07:04 +0200