Basic TypeScript concepts

1. Base Type There are 12 Boolean let isDone: boolean = false; Number let dec: number = 6; String let name: string ='bob'; Array let list: number[] = [1, 2, 3]; Tuple let x: [string, number] = ['hello', 10] Enumerate enum Color {Red, Green, Blue} let c: Color =Color.Green; Any let notSure: any = 4; Void function warnUser(): void { cons ...

Posted by sryder on Fri, 22 May 2020 04:06:46 +0200

JavaScript Statistics Processing-Functions

JavaScript is a widely used Web programming language. Using JavaScript technology to process statistics in browsers has the best dissemination effect Functions are blocks of code designed to perform specific tasks.It has an entry and an exit while implementing custom operations.The so-called entrance refers to the various parameters ...

Posted by coops on Thu, 21 May 2020 04:59:59 +0200

QT -- window setting for getting started

Header file #Include < qicon > / / image loading #Include < qpalette > / / palette #Include < qbrush > / / brush #Include < qbitmap > / / used to remove the blank part of the picture Set the icon and title of the window //Set to the maximum window, do not change the window size this->setFixedSize(481,579); ...

Posted by czambran on Tue, 19 May 2020 17:08:10 +0200

Task 25 - first reptile test

First question: use the requests library to visit Baidu homepage 20 times, and return the length of his text and content attributes.   1 # -*- coding: utf-8 -*- 2 """ 3 Created on Tue May 19 10:12:16 2020 4 5 @author: 49594 6 """ 7 8 import requests 9 url = "https://www.baidu.com/" 10 for i in range(20): 11 try: 12 rest ...

Posted by gp177 on Tue, 19 May 2020 16:43:11 +0200

In depth analysis of Spring IOC loading BeanDefinition case details

  This paper mainly analyzes the loading of BeanDefinition in spring. We will focus on its analysis in the following articles.BeanDefinition belongs to the spring bean module. It's for the spring bean We know that there are many ways to define beans in spring, such as XML, annotations, and custom tags. There are also many types of colleagu ...

Posted by Dm7 on Tue, 19 May 2020 13:12:46 +0200

BOM and DOM operations for JavaScript front-end development

[Directory] I. BOM Operation 1. window Object 2. window child object 3. Hisry Object 4. location object (master) 5. Pop-up box 6. Timer-related 2. DOM Manipulation 1. DOM-related concepts 2. Find labels 3. Node Operation 4. Get Value Operation 5. class, css operations   (Here's what you do with a browser in a mac notebook (check the con ...

Posted by timcapulet on Mon, 18 May 2020 18:20:38 +0200

VUE course -- 16. style binding

1, Summary One sentence summary: Style binding (inline style binding) also has object syntax and array syntax. Object syntax is that key value pairs represent style names and style values. Array syntax is that multiple objects representing styles can be placed in an array <div id="app"> <!--Object syntax--> <p :style="{co ...

Posted by justinchrono on Sat, 16 May 2020 06:01:48 +0200

[ML] write a credit qualification evaluation system -- handwritten logistic regression model

[ML] write a credit qualification evaluation system -- handwritten logistic regression model In the era when everyone talks about big data, the position of data processing is becoming more and more important. A bank may face tens of thousands of loan applications every day. If it is audited manually, ...

Posted by stuartc1 on Fri, 15 May 2020 14:59:04 +0200

Fastjson Deserialization Vulnerability History

Author: Longofo@knows Chuangyu 404 Laboratory Time: April 27, 2020 Original address: https://paper.seebug.org/1192/English version: https://paper.seebug.org/1193/ Fastjson doesn't have a cve number, it's not very good to look for a timeline, and it doesn't know how to write at first, but it slowly writes something out. Fortunately, fastjson is ...

Posted by slava_php on Tue, 12 May 2020 19:05:20 +0200

Problems associated with the Bootstrap modal box

1. Close the bootstrap modal box by adding a click event to the button above it This will cause the modal box to disappear, but the mask behind the modal box remains on the page, and it took a while to find out that you want to add an attribute data-dismiss="modal" to the button without adding additional click events. $("#cancel"). ...

Posted by wrwilson on Mon, 11 May 2020 20:39:47 +0200