Extension of the rules for introducing ES6

1. Extension of Regularity If the parameter is a string, the second parameter represents the modifier of the regular expression, as follows: var regex = new RegExp('xyz', 'i') // Equivalent to var regex = /xyz/i The parameter is a regular expression, which returns a copy of the original regular expression. As follows: var regex = new RegExp ...

Posted on Tue, 23 Apr 2019 12:36:34 -0700 by Buddha443556

vue.js Instruction Summary [reprint]

Summary of vue.js instructions Reproduction sources: Reprinted from a brief book by klmhly 1. v-text v-text is mainly used to update textContent, which can be equivalent to the text attribute of JS. <span v-text="msg"></span> The two are equivalent: <span>{{msg}}</span> 2. v-h ...

Posted on Tue, 23 Apr 2019 11:51:35 -0700 by renno

Android Control XV: WebView uses: Native and JS call each other

Original text: https://blog.csdn.net/harvic880925/article/details/51464687 I. Basic Usage 1. Loading online URL s void loadUrl(String url) Such as: mWebView.loadUrl("http://www.baidu.com"); This function mainly loads the page address corresponding to the url, or is used to call the specified JS method in the web page, but it m ...

Posted on Tue, 23 Apr 2019 11:03:34 -0700 by Zeceer

How does Ajax ensure that the request interface data meets expectations? How to weigh?

First, describe two scenarios: Quick click on Page Number 1.2.3.4.5.... Assuming that the network is not good or the interface speed is not good, there may be multiple pending requests. And we can't control the order of return. If the user finally clicks on Page 5, the last interface to return is Page 3. Now, although the page number is 5, the ...

Posted on Tue, 23 Apr 2019 10:06:34 -0700 by rockindano30

[Algorithms-Sorting] Cardinal Sorting

Radix sort is a non-comparative integer sorting algorithm. Its principle is to cut integers into different digits by digits, and then compare them by digits. Because integers can also express strings (such as names or dates) and floating-point numbers in a specific format, cardinal sorting is not limited to integers. Cardinal ...

Posted on Mon, 22 Apr 2019 17:36:35 -0700 by Lenbot

React Hooks Analysis: Advancement

Welcome to my public number, Talk, for my latest article: I. Preface React Hooks is another pioneering new feature introduced from v16.8. When I first learned about this feature, I really had the feeling of being open-minded and discovering the New World. I am deeply impressed by the creativity and excellence of the React team. In addition to i ...

Posted on Mon, 22 Apr 2019 16:39:34 -0700 by AlGale

datetime, a commonly used internal modeling module for python

datetime is the standard library for Python processing dates and times. Get the current date and time Let's first look at how to get the current date and time: >>> from datetime import datetime >>> now = datetime.now() # Get the current datetime >>> print(now) 2015-05-18 16:28:07.198690 >>& ...

Posted on Mon, 22 Apr 2019 11:06:34 -0700 by Amit Rathi

Exploration of multi-theme and multi-tenant construction scheme based on Ionic 2

Exploration of multi-theme and multi-tenant construction scheme based on Ionic 2 Project background The company's product is a 2B online education product, most of the existing customers have customized needs, mainly including UI themes and secondary development functions. This paper focuses on how to implement flexible multi-topic solutions ba ...

Posted on Sun, 14 Apr 2019 22:48:32 -0700 by volleytotal.ch

Common errors caused by some naming specifications and nonstandard naming in Js

Yesterday, I was working on a project. One of Chuxin's problems was that it stumped me. The problem scenario is simple: The a tag specifies that iframe is open. The problem is, why other pages jump normally is the role of the page is not normal, I am also puzzled, so simply to solve it. I tried many ways: 1.css style. (Although very unli ...

Posted on Sun, 14 Apr 2019 21:21:32 -0700 by soniared2002

Angular 2 Attribute Instruction vs Structural Instruction

Angular 2 has three instructions: Component directive: Used to build UI components that inherit from Directive classes Attribute directive: Used to change the appearance or behavior of components Structural directive: Used to dynamically add or delete DOM elements to change DOM layout assembly import { Component } from '@angular/core'; @Comp ...

Posted on Sun, 14 Apr 2019 20:57:31 -0700 by Naez