Tag:check
-
Time:2021-3-5
Auth module of Django (user authentication) 1、 Introduction to auth module The auth module is a function module of Django framework, which encapsulates the login authentication method. Before we get the user name and password, we need to query whether there is an object whose user name and password match from the user table. With […]
-
Time:2021-3-5
Front end caching has always been a hot topic in front-end, and it is also a high-frequency test site for interview. Mainly related to the front-end performance optimization knowledge. Let’s look at the outline first I’ve written about HTTP caching beforeRead HTTP cache (super detailed), which is more detailed. If you are interested, you can […]
-
Time:2021-3-4
1. Heartbeat mechanism between namenode and datanode 1) When namenode is started, an IPC server service will be started,2) After datanode is started, it will actively connect to the IP server service of namenode. By default, it will connect every 3 seconds, which is heartbeat.This time can be passed dfs.heartbeat.interval Parameter setting, that is, heartbeat […]
-
Time:2021-3-3
Verification in ideal Verification is the restriction of input conditions to avoid invalid input causing exception. The user input of web system is mainly to edit and submit various forms. On the one hand, the verification should be done when editing the form fields and submitting them. On the other hand, the interface receiving the […]
-
Time:2021-2-27
Verification of ID card function checkIDCard(idcode) { //Regular thinking /* The first one can’t be zero The second to sixth can be 0-9 The seventh to tenth places are the year, so the seventh and eighth places are 19 or 20 The 11th and 12th digits are the month, and these two digits are between […]
-
Time:2021-2-26
preface custom annotation is a sharp tool in development, which is often used. It was mentioned in the last articleCustom verification notesThe usage of. However, recently received such a demand, mainly for some interfaces return data need to be encrypted. So it’s natural to think of itUser defined annotation + AOPTo achieve such a […]
-
Time:2021-2-25
When writing a table, you may encounter such a requirement that the table nested form, so that the data in the table must be verified. As shown in the figure belowHere’s how to achieve this effect First, we need to create a form and create a form in the form. <el-form label-width=”auto”> <el-table tooltip-effect=”dark” size=”small” […]
-
Time:2021-2-22
summary Template pattern is to define an algorithm skeleton in an operation, and then delay some steps to subclasses. Template method enables subclasses to redefine some steps of the algorithm without changing the structure of the algorithm. Usage scenarios Drink tea We all know that the basic steps (algorithm skeleton) of tea making are as […]
-
Time:2021-2-22
summary Template pattern is to define an algorithm skeleton in an operation, and then delay some steps to subclasses. Template method enables subclasses to redefine some steps of the algorithm without changing the structure of the algorithm. Usage scenarios Drink tea We all know that the basic steps (algorithm skeleton) of tea making are as […]
-
Time:2021-2-18
Absrtact: This paper mainly introduces the overall structure of the query layer, and introduces the flow through the four main modules of the query layer through an ngql statement. 1、 Overview Compared with version 1.0, the distributed graph database version 2.0 has a big change. The most obvious change is that in version 1.0, the […]
-
Time:2021-2-18
First address:https://mp.weixin.qq.com/s/wV… “For some front-end Er, the actual operation of contacting cache is not much, which belongs to a familiar and unfamiliar technical point. The author here introduces the common cache related foundation and common cases, which can be mastered in daily situations.” Why cache? How to use cache correctly in practice? Begin the text […]
-
Time:2021-2-15
preface:In Ant Design Pro3.23.6Version, the form form binding value is usedgetFieldDecoratorMethod assignment matchingvalidateFieldsMethod value to achieve the effect of two-way binding4.0How to assign values in the version? AntDesignPro3.23.6Version example: //Assignment <Form labelCol={{ span: 6 }} wrapperCol={{ span: 14 }} onSubmit={this.handleSubmit} > <Form.Item> {getFieldDecorator(‘money’,{ rules=[{ required: true, Message: ‘please enter the amount’, }], })( <InputNumber min={0} […]