freemark+dom4j to realize automatic word export

We usually export word through poi. POI is best at the operation of EXCEL. The style control of word operation is too cumbersome. Today we will introduce how to export word templates through FREEMARK. [TOC] Development preparation The implementation of this paper is based on springboot, so all the products used in the project are derived fro ...

Posted by Joshv1288 on Mon, 25 May 2020 04:04:56 +0200

setInterval and setTimeout of Canvas drawing raindrops (2)

Thank you for your guidance. In view of the bad nature of setInterval, modify it, implement setInterval with setTimeout, and put it in the move attribute of Rain prototype. Operation result: the screen is in disorder and the browser is stuck.. as a result of: setTimeout and setInterval should not be written in the fu ...

Posted by Hepp on Sun, 24 May 2020 17:37:06 +0200

prototype of JAVA design pattern

Prototype mode: Prototype mode is also called clone mode Java native cloning mode Cloneable must be implemented to implement clone mode Interface, if not implementedJava.lang.CloneNotSupportedExceptionabnormal clone mode is convenient when the properties of a class are already set and many objects with the same attribute values need to be crea ...

Posted by swell on Sat, 23 May 2020 18:48:08 +0200

UITableView to modify the font size of its own retrieval column

� UITableView can't be modified by using its own retrieval column. How to modify it? Get UITableViewIndex before HeaderView will display -(void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section { for (UIView *view in [tableView subviews]) { if ([view isKindOfClass:[NSClassFromStr ...

Posted by Roddy87 on Sat, 23 May 2020 17:14:14 +0200

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