[go: up one dir, main page]

CN111190592B - A page creation method, storage medium, electronic device and system - Google Patents

A page creation method, storage medium, electronic device and system Download PDF

Info

Publication number
CN111190592B
CN111190592B CN201811361001.3A CN201811361001A CN111190592B CN 111190592 B CN111190592 B CN 111190592B CN 201811361001 A CN201811361001 A CN 201811361001A CN 111190592 B CN111190592 B CN 111190592B
Authority
CN
China
Prior art keywords
function
controller
custom
page creation
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811361001.3A
Other languages
Chinese (zh)
Other versions
CN111190592A (en
Inventor
汪刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mingshida Beijing Sports Technology Co ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201811361001.3A priority Critical patent/CN111190592B/en
Publication of CN111190592A publication Critical patent/CN111190592A/en
Application granted granted Critical
Publication of CN111190592B publication Critical patent/CN111190592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种页面创建方法、存储介质、电子设备及系统,涉及通信技术领域,该方法包括以下步骤:创建父类控制器;预设多个功能种类参数;创建多个子类控制器,各子类控制器分别与一种功能种类参数对应;父类控制器利用自定义分配函数根据各功能种类参数,分别向各子类控制器分配与功能种类参数对应的页面创建函数的调用地址,存入对应的子类控制器内部预设的自定义调用文件中;将功能种类参数存入对应的子类控制器中预设的自定义声明文件;利用各子类控制器进行页面创建工作。本发明利用各子类控制器借助各页面创建函数进行页面创建工作,使得页面创建工作所需的程序更为精简,减少代码编写的工作量,提高页面创建工作的工作效率。

Figure 201811361001

The invention discloses a page creation method, a storage medium, an electronic device and a system, and relates to the technical field of communications. The method includes the following steps: creating a parent controller; presetting multiple function type parameters; creating multiple subclass controllers, Each sub-type controller corresponds to a function type parameter respectively; the parent type controller uses the self-defined allocation function to allocate the calling address of the page creation function corresponding to the function type parameter to each sub-type controller according to the function type parameter. Save into the custom calling file preset in the corresponding subclass controller; save the function type parameters into the preset custom declaration file in the corresponding subclass controller; use each subclass controller to create pages. The invention utilizes various sub-type controllers to perform page creation work with the help of various page creation functions, so that the program required for the page creation work is more streamlined, the workload of code writing is reduced, and the work efficiency of the page creation work is improved.

Figure 201811361001

Description

一种页面创建方法、存储介质、电子设备及系统A page creation method, storage medium, electronic device and system

技术领域technical field

本发明涉及通信技术领域,具体涉及一种页面创建方法、存储介质、电子设备及系统。The present invention relates to the field of communication technologies, in particular to a page creation method, a storage medium, an electronic device and a system.

背景技术Background technique

在现代的程序开发中,在进行页面创建时,往往需要输入很多代码,不同的代码针对一种功能,多种代码配合,完成页面创建工作;In modern program development, when creating a page, it is often necessary to enter a lot of codes. Different codes are aimed at one function, and a variety of codes cooperate to complete the page creation work;

但由于现在的页面功能以及内容越来越丰富,各代码又存在一些类似或相关的内容,当需要创建功能以及内容较多的页面时,传统的创建方式,代码内容较多,程序员工作量较大,导致工作任务重,完成效率低下;However, as the functions and content of the current pages are getting richer and richer, and there are some similar or related content in each code, when it is necessary to create pages with more functions and content, the traditional creation method has more code content and programmer workload. Larger, resulting in heavy work tasks and low completion efficiency;

因此,急需一种页面创建方法,精简创建页面的程序代码,减少工作量,提高工作效率。Therefore, there is an urgent need for a page creation method that simplifies the program code for creating pages, reduces workload and improves work efficiency.

发明内容SUMMARY OF THE INVENTION

针对现有技术中存在的缺陷,本发明的目的在于提供一种页面创建方法,利用各子类控制器借助各页面创建函数进行页面创建工作,使得页面创建工作所需的程序更为精简,提高页面创建工作的工作效率。In view of the defects existing in the prior art, the purpose of the present invention is to provide a page creation method, which utilizes various subclass controllers to perform page creation work with the help of each page creation function, so that the program required for the page creation work is more streamlined and improved. Productivity of page creation work.

为达到以上目的,本发明采取的技术方案是:In order to achieve the above purpose, the technical scheme adopted in the present invention is:

第一方面,本发明提供一种页面创建方法,其包括以下步骤:In a first aspect, the present invention provides a method for creating a page, which includes the following steps:

创建父类控制器,其配置有自定义分配函数;Create a parent class controller, which is configured with a custom allocation function;

预设多个功能种类参数,所述功能种类参数用于表示页面创建时所需的创建功能种类;A plurality of function type parameters are preset, and the function type parameters are used to indicate the creation function type required when the page is created;

创建多个子类控制器,各所述子类控制器分别与一种所述功能种类参数对应;Create a plurality of subclass controllers, each of which corresponds to one of the function type parameters;

所述父类控制器利用所述自定义分配函数根据各所述功能种类参数,分别向各所述子类控制器分配与所述功能种类参数对应的页面创建函数的调用地址,存入对应的所述子类控制器内部预设的自定义调用文件中;The parent class controller allocates the calling address of the page creation function corresponding to the function class parameter to each of the subclass controllers according to each of the function type parameters by using the self-defined allocation function, and stores the corresponding in the custom calling file preset inside the subclass controller;

将所述功能种类参数存入对应的所述子类控制器中预设的所述自定义声明文件,自定义声明文件用于标记所述子类控制器所对应的所述创建功能种类;saving the function type parameter into the custom declaration file preset in the corresponding subclass controller, and the custom declaration file is used to mark the creation function type corresponding to the subclass controller;

利用各所述子类控制器进行页面创建工作。Page creation is performed using each of the subclassed controllers.

在上述技术方案的基础上,所述父类控制器配置有一公用接口,所述父类控制器借助所述公用接口分别向各所述子类控制器分配与所述功能种类参数对应的页面创建函数的调用地址。On the basis of the above technical solution, the parent class controller is configured with a common interface, and the parent class controller allocates the page creation corresponding to the function type parameter to each of the child class controllers by means of the common interface. The calling address of the function.

在上述技术方案的基础上,该方法还包括以下步骤:On the basis of the above technical solution, the method further comprises the following steps:

预设多个自定义参数,各所述自定义参数至少与一种页面创建函数对应,所述自定义参数用于在所述页面创建函数被调用时,存储对应的数据信息;Presetting a plurality of custom parameters, each of the custom parameters corresponds to at least one page creation function, and the custom parameters are used to store corresponding data information when the page creation function is called;

所述父类控制器利用所述自定义分配函数根据所述功能种类参数,向所述子类控制器分配与所述功能种类参数对应的所述页面创建函数对应的所述自定义参数,存入所述自定义调用文件中。The parent class controller allocates the custom parameter corresponding to the page creation function corresponding to the function class parameter to the subclass controller according to the function type parameter by using the custom allocation function, and saves the parameter. into the custom call file.

在上述技术方案的基础上,所述页面创建函数至少包括背景颜色设定函数、文字视图设定函数、字体颜色设定函数、字体大小设定函数以及图像插入函数。Based on the above technical solution, the page creation function includes at least a background color setting function, a text view setting function, a font color setting function, a font size setting function and an image insertion function.

在上述技术方案的基础上,所述自定义调用文件以及所述自定义声明文件均配置有Label控件。On the basis of the above technical solution, both the custom calling file and the custom declaration file are configured with a Label control.

第二方面,本发明还提供一种存储介质,该存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面的页面创建方法。In a second aspect, the present invention further provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the page creation method of the first aspect is implemented.

第三方面,本发明还提供一种电子设备,包括存储器和处理器,存储器上储存有在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面的页面创建方法。In a third aspect, the present invention also provides an electronic device, including a memory and a processor, where a computer program running on the processor is stored in the memory, and the processor implements the page creation of the first aspect when the processor executes the computer program method.

第四方面,本发明还提供一种页面创建系统,其包括:In a fourth aspect, the present invention also provides a page creation system, comprising:

多个子类控制器,各所述子类控制器分别与一种预设的功能种类参数对应,各所述子类控制器内部预设有自定义调用文件以及自定义声明文件,所述自定义声明文件用于标记所述子类控制器所对应的创建功能种类;A plurality of subclass controllers, each subclass controller corresponds to a preset function type parameter, each subclass controller is preset with a custom calling file and a custom declaration file, the custom The declaration file is used to mark the creation function category corresponding to the subclass controller;

父类控制器,其配置有自定义分配函数,所述父类控制器用于利用所述自定义分配函数根据各所述功能种类参数,分别向各所述子类控制器分配与所述功能种类参数对应的页面创建函数的调用地址,存入对应的所述自定义调用文件中,还用于将所述功能种类参数存入对应的所述自定义声明文件;A parent class controller, which is configured with a custom allocation function, and the parent class controller is configured to use the custom allocation function to allocate the function type to each of the subclass controllers according to the function type parameters. The calling address of the page creation function corresponding to the parameter is stored in the corresponding custom calling file, and is also used for storing the function type parameter in the corresponding custom declaration file;

页面创建单元,其用于利用各所述子类控制器进行页面创建工作。A page creation unit, which is used to perform page creation work using each of the subclass controllers.

在上述技术方案的基础上,所述父类控制器配置有一公用接口,所述父类控制器借助所述公用接口分别向各所述子类控制器分配与所述功能种类参数对应的页面创建函数的调用地址。On the basis of the above technical solution, the parent class controller is configured with a common interface, and the parent class controller allocates the page creation corresponding to the function type parameter to each of the child class controllers by means of the common interface. The calling address of the function.

与现有技术相比,本发明的优点在于:Compared with the prior art, the advantages of the present invention are:

本发明根据需要将各创建函数的调用地址分配给各子类控制器,而后直接利用各子类控制器借助各页面创建函数进行页面创建工作,使得页面创建工作所需的程序更为精简,减少代码编写的工作量,提高页面创建工作的工作效率。According to the invention, the calling address of each creation function is allocated to each sub-type controller as required, and then each sub-type controller is directly used to perform page creation work with the help of each page creation function, so that the program required for the page creation work is more streamlined and reduced. The workload of code writing improves the work efficiency of page creation.

附图说明Description of drawings

图1为本发明实施例一提供的一种页面创建方法的步骤流程图;1 is a flowchart of steps of a method for creating a page according to Embodiment 1 of the present invention;

图2为本发明实施例二提供的一种页面创建方法的步骤流程图;2 is a flowchart of steps of a method for creating a page according to Embodiment 2 of the present invention;

图3为本发明实施例三提供的一种页面创建系统的结构框图;3 is a structural block diagram of a system for creating a page according to Embodiment 3 of the present invention;

图中:1、子类控制器;2、父类控制器;3、页面创建单元。In the figure: 1. Subclass controller; 2. Parent class controller; 3. Page creation unit.

具体实施方式Detailed ways

以下结合附图对本发明的实施例作进一步详细说明。The embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.

本发明实施例提供一种页面创建方法、存储介质、电子设备及系统,根据页面创建的需要,创建多个子类控制器,并利用父类控制器根据页面创建的需要,将各页面创建函数的调用地址分配给各子类控制器,而后直接利用各子类控制器借助各页面创建函数进行页面创建工作,使得页面创建工作所需的程序更为精简,提高页面创建工作的工作效率,减少编程工作量。Embodiments of the present invention provide a method, storage medium, electronic device and system for creating pages. According to the needs of page creation, a plurality of subclass controllers are created, and the parent class controller is used to create a page creation function according to the needs of page creation. The calling address is allocated to each sub-type controller, and then each sub-type controller is directly used to create the page with the help of each page creation function, which makes the program required for the page creation work more streamlined, improves the work efficiency of the page creation work, and reduces programming. workload.

为达到上述技术效果,本申请的总体思路如下:In order to achieve the above-mentioned technical effect, the general idea of the application is as follows:

一种页面创建方法,其包括以下步骤:A page creation method, which includes the following steps:

S1、创建父类控制器,其配置有自定义分配函数;S1. Create a parent class controller, which is configured with a custom allocation function;

S2、预设多个功能种类参数,功能种类参数用于表示页面创建时所需的创建功能种类;S2, preset multiple function type parameters, and the function type parameter is used to indicate the type of creation function required when the page is created;

S3、创建多个子类控制器,各子类控制器分别与一种功能种类参数对应;S3. Create multiple sub-type controllers, each sub-type controller corresponds to a function type parameter;

S4、父类控制器利用自定义分配函数根据各功能种类参数,分别向各子类控制器分配与功能种类参数对应的页面创建函数的调用地址,存入对应的子类控制器内部预设的自定义调用文件中;S4. The parent controller allocates the calling address of the page creation function corresponding to the function type parameter to each sub-type controller by using the self-defined allocation function according to the parameters of each function type, and stores the call address of the page creation function corresponding to the function type parameter in the corresponding sub-type controller. In the custom call file;

S5、将功能种类参数存入对应的子类控制器中预设的自定义声明文件,自定义声明文件用于标记子类控制器所对应的创建功能种类;S5. Store the function type parameters in a preset custom declaration file in the corresponding subclass controller, and the custom declaration file is used to mark the creation function type corresponding to the subclass controller;

S6、利用各子类控制器进行页面创建工作。S6, using various sub-type controllers to create a page.

实施例一Example 1

参见图1所示,本发明实施例提供一种页面创建方法,包括以下步骤:Referring to FIG. 1, an embodiment of the present invention provides a method for creating a page, including the following steps:

S1、创建父类控制器,其配置有自定义分配函数;S1. Create a parent class controller, which is configured with a custom allocation function;

S2、预设多个功能种类参数,功能种类参数用于表示页面创建时所需的创建功能种类;S2, preset multiple function type parameters, and the function type parameter is used to indicate the type of creation function required when the page is created;

S3、创建多个子类控制器,各子类控制器分别与一种功能种类参数对应;S3. Create multiple sub-type controllers, each sub-type controller corresponds to a function type parameter;

S4、父类控制器利用自定义分配函数根据各功能种类参数,分别向各子类控制器分配与功能种类参数对应的页面创建函数的调用地址,存入对应的子类控制器内部预设的自定义调用文件中;S4. The parent controller allocates the calling address of the page creation function corresponding to the function type parameter to each sub-type controller by using the self-defined allocation function according to the parameters of each function type, and stores the call address of the page creation function corresponding to the function type parameter in the corresponding sub-type controller. In the custom call file;

S5、将功能种类参数存入对应的子类控制器中预设的自定义声明文件,自定义声明文件用于标记子类控制器所对应的创建功能种类;S5. Store the function type parameters in a preset custom declaration file in the corresponding subclass controller, and the custom declaration file is used to mark the creation function type corresponding to the subclass controller;

S6、利用各子类控制器进行页面创建工作。S6, using various sub-type controllers to create a page.

本发明实施例,首先创建父类控制器,父类控制器配置有自定义分配函数,根据页面创建的需要,创建多个子类控制器,并利用父类控制器根据页面创建的需要,将各页面创建函数的调用地址分配给各子类控制器,而后直接利用各子类控制器借助各页面创建函数进行页面创建工作,使得页面创建工作所需的程序更为精简,提高页面创建工作的工作效率,减少编程工作量。In the embodiment of the present invention, a parent class controller is first created, the parent class controller is configured with a custom allocation function, multiple subclass controllers are created according to the needs of page creation, and the parent class controller is used to assign each subclass controller according to the needs of page creation. The calling address of the page creation function is assigned to each subclass controller, and then each subclass controller is directly used to perform the page creation work with the help of each page creation function, which makes the program required for the page creation work more streamlined and improves the work of the page creation work. efficiency and reduce programming workload.

需要说明的是,父类控制器以及子类控制器属于父类子类机制,自定义继承函数为常用的子类继承父类的方法,自定义继承函数可以是super函数;It should be noted that the parent class controller and the subclass controller belong to the parent class subclass mechanism, the custom inheritance function is a common method for subclasses to inherit the parent class, and the custom inheritance function can be a super function;

事先,在创建父类控制器时,将各页面创建函数的调用地址进行统计,存入父类控制器中,而各页面创建函数具体诸如字体设定函数、页面高度设定函数、页面背景颜色设定函数,具体函数与现有的页面创建函数相同;In advance, when the parent class controller is created, the calling address of each page creation function is counted and stored in the parent class controller, and each page creation function is specific such as font setting function, page height setting function, and page background color. Set the function, the specific function is the same as the existing page creation function;

而在需要创建子类控制器,则根据需要向其分配的功能,设定一个功能种类参数,利用功能种类参数标记子类控制器,用于表示该子类控制器对应的功能,进而子类控制器继承与功能种类参数对应的页面创建函数,具体继承方法可以是super函数;When a subclass controller needs to be created, a function type parameter is set according to the function assigned to it, and the subclass controller is marked with the function type parameter to indicate the corresponding function of the subclass controller, and then the subclass The controller inherits the page creation function corresponding to the function type parameter, and the specific inheritance method can be the super function;

而在具体的页面创建时,则与现有的页面创建步骤一致,本申请仅是在对页面创建函数调用步骤进行了优化,不再需要将各页面创建函数的代码写入程序中,仅使用子类控制器即可调用相应的页面创建函数,基于常规的页面创建操作进行页面创建工作。When a specific page is created, it is consistent with the existing page creation steps. This application only optimizes the page creation function calling step, and it is no longer necessary to write the code of each page creation function into the program. The subclass controller can call the corresponding page creation function to create the page based on the conventional page creation operation.

本发明实施例中,首先在步骤S1,先创建一个父类控制器,其配置有自定义分配函数;In the embodiment of the present invention, first in step S1, a parent class controller is created, which is configured with a custom allocation function;

接着在步骤S2,预设多个功能种类参数,功能种类参数用于表示页面创建时所需的创建功能种类;Next, in step S2, a plurality of function type parameters are preset, and the function type parameters are used to represent the required creation function types when the page is created;

需要说明的是,功能种类参数具体可以是页面创建时所需的创建功能种类,诸如页面背景颜色、页面尺寸、页面字体大小、页面字体等,即每一种功能种类参数对应一种页面的创建功能种类,而自定义分配函数则是在各功能种类参数以及各页面创建函数之间建立一种联系,当自定义分配函数获得功能种类参数时,自定义分配函数可以根据功能种类参数获得与功能种类参数对应的页面创建函数的调用地址,进而进行分配工作;It should be noted that the function type parameter can specifically be the creation function type required for page creation, such as page background color, page size, page font size, page font, etc., that is, each function type parameter corresponds to the creation of a page. The function type, and the custom allocation function is to establish a connection between the parameters of each function type and the page creation function. When the custom allocation function obtains the function type parameter, the custom allocation function can obtain and function according to the function type parameter. The calling address of the page creation function corresponding to the type parameter, and then assign work;

其中,页面创建函数具体是指在页面创建工作过程中,分别用于完成不同页面创建任务的函数,诸如页面背景颜色、页面尺寸、页面字体大小、页面字体等项目的创建设定工作;Among them, the page creation function specifically refers to the functions used to complete different page creation tasks in the process of page creation, such as the creation and setting of items such as page background color, page size, page font size, and page font;

进而在步骤S3中,会创建多个子类控制器,各子类控制器分别与一种功能种类参数对应,即每一个子类控制器实际上也与一种页面创建功能相对应,一个子类控制器对应一种页面创建功能;Furthermore, in step S3, a plurality of subclass controllers are created, and each subclass controller corresponds to a function type parameter, that is, each subclass controller actually corresponds to a page creation function, and a subclass controller corresponds to a function type parameter. The controller corresponds to a page creation function;

其中,子类控制器中预设有两个文件,一个是自定义声明文件,一个是自定义调用文件,自定义声明文件用于存储与该子类控制器对应的功能种类参数,而自定义调用文件则用于存储与该子类控制器对应的功能种类参数相对应的页面创建函数的调用地址;Among them, two files are preset in the subclass controller, one is a custom declaration file, the other is a custom calling file, the custom declaration file is used to store the function type parameters corresponding to the subclass controller, and the custom declaration file The calling file is used to store the calling address of the page creation function corresponding to the function type parameter corresponding to the subclass controller;

故而在步骤S4中,父类控制器利用自定义分配函数根据各功能种类参数,分别向各子类控制器分配与功能种类参数对应的页面创建函数的调用地址,存入对应的子类控制器内部预设的自定义调用文件中;Therefore, in step S4, the parent controller uses the self-defined allocation function to allocate the calling address of the page creation function corresponding to the function type parameter to each sub-type controller according to the parameters of each function type, and stores it in the corresponding sub-type controller. In the internal preset custom call file;

进而在步骤S5中,将功能种类参数存入对应的子类控制器中预设的自定义声明文件,自定义声明文件用于标记子类控制器所对应的创建功能种类;Further, in step S5, the function type parameter is stored in a custom declaration file preset in the corresponding subclass controller, and the custom declaration file is used to mark the creation function type corresponding to the subclass controller;

当上述步骤均完成后,开始页面创建的工作步骤S6,利用各子类控制器进行页面创建工作;When the above steps are all completed, the work step S6 of page creation is started, and the page creation work is performed by using various sub-type controllers;

需要说明的是,进行页面创建时,应该获取需要进行页面创建的页面创建需求数据,根据页面创建需求数据,再借助各子类控制器进行页面创建工作;It should be noted that when creating a page, you should obtain the page creation requirement data that needs to be created, create the requirement data according to the page, and then use various sub-type controllers to create the page;

本发明实施例在进行页面创建工作时,与常规的页面创建手段一致,优势在于本发明实施例将各页面创建函数借助各子类控制器进行使用,减少了代码编写的工作量,提高了工作效率,降低了代码编写出错的风险;When the page creation work is performed in the embodiment of the present invention, it is consistent with the conventional page creation method. Efficiency, reducing the risk of coding errors;

本发明实施例实际上是根据需求来制定多个子类控制器,一个子类控制器对应一种页面创建所需的功能,这样在进行页面创建时,无需再输入大量代码,也无需再将现有的页面创建函数重复写入,当需要使用某一页面创建函数时,直接调用与其对应的子类控制器即可,降低了程序上的复杂程度,减少了编程时工作量。In the embodiment of the present invention, a plurality of sub-class controllers are actually formulated according to requirements, and one sub-class controller corresponds to a function required for page creation, so that when creating a page, there is no need to input a large amount of code, and there is no need to recreate the Some page creation functions are written repeatedly. When a page creation function needs to be used, the corresponding subclass controller can be called directly, which reduces the complexity of the program and reduces the workload of programming.

本发明实施例中,父类控制器配置有一公用接口,父类控制器借助公用接口分别向各子类控制器分配与功能种类参数对应的页面创建函数的调用地址。In the embodiment of the present invention, the parent class controller is configured with a public interface, and the parent class controller allocates the calling address of the page creation function corresponding to the function type parameter to each child class controller by means of the public interface.

本发明实施例中,该方法还包括以下步骤:In the embodiment of the present invention, the method further comprises the following steps:

预设多个自定义参数,各自定义参数至少与一种页面创建函数对应,自定义参数用于在页面创建函数被调用时,存储对应的数据信息;Preset multiple custom parameters, each custom parameter corresponds to at least one page creation function, and the custom parameter is used to store corresponding data information when the page creation function is called;

父类控制器利用自定义分配函数根据功能种类参数,向子类控制器分配与功能种类参数对应的页面创建函数对应的自定义参数,存入自定义调用文件中;The parent class controller uses the custom allocation function to allocate the custom parameters corresponding to the page creation function corresponding to the function type parameters to the subclass controller according to the function type parameters, and store them in the custom call file;

上述步骤可以理解为各页面创建函数的正常工作提供保障,不同的页面创建函数可能需要不同的参数,传统的页面创建过程中,会调用各页面创建函数,在调用的同时,会将所需的数据添加至各页面创建函数需要用到的参数中,The above steps can be understood to provide guarantee for the normal operation of each page creation function. Different page creation functions may require different parameters. In the traditional page creation process, each page creation function will be called. The data is added to the parameters required by each page creation function.

而本发明实施例中,是利用各子类控制器调用各页面创建函数,故而同样需要向各自雷控制器分配与功能种类参数对应的页面创建函数对应的自定义参数,从而保证各子类控制器在调用各页面创建函数时,各页面创建函数能够获得自己所需的参数,进行正常工作。However, in the embodiment of the present invention, each sub-type controller is used to call each page creation function, so it is also necessary to assign a user-defined parameter corresponding to the page creation function corresponding to the function type parameter to each lightning controller, so as to ensure the control of each sub-type. When the browser calls each page creation function, each page creation function can obtain its own required parameters and work normally.

在上述技术方案的基础上,页面创建函数至少包括背景颜色设定函数、文字视图设定函数、字体颜色设定函数、字体大小设定函数以及图像插入函数。Based on the above technical solution, the page creation function includes at least a background color setting function, a text view setting function, a font color setting function, a font size setting function and an image insertion function.

在上述技术方案的基础上,自定义调用文件以及自定义声明文件均配置有Label控件;On the basis of the above technical solutions, both the custom calling file and the custom declaration file are configured with Label controls;

需要说明的是,iOS系统中的Label控件用于显示文字的。It should be noted that the Label control in the iOS system is used to display text.

必要时,父类控制器以及子类控制器均可以采用视图的形式,能够更直接的查询数据;When necessary, both the parent class controller and the child class controller can take the form of views, which can query data more directly;

需要说明的是,视图是指计算机数据库中的视图,是一个虚拟表,其内容由查询定义,同真实的表一样,视图包含一系列带有名称的列和行数据,但视图并不在数据库中以存储的数据值集形式存在,行和列数据来自由定义视图的查询所引用的表,并且在引用视图时动态生成。It should be noted that a view refers to a view in a computer database. It is a virtual table whose content is defined by a query. Like a real table, a view contains a series of column and row data with names, but the view is not in the database. Existing as a stored set of data values, row and column data come from tables referenced by the query that defines the view, and are dynamically generated when the view is referenced.

基于同一发明构思,本申请提供了实施例一对应的另一种页面创建方法的实施例,详见实施例二Based on the same inventive concept, the present application provides an embodiment of another page creation method corresponding to Embodiment 1. For details, refer to Embodiment 2

实施例二Embodiment 2

如图2所示,本发明第二实施例提供了一种页面创建方法,其包括以下步骤:As shown in FIG. 2 , a second embodiment of the present invention provides a page creation method, which includes the following steps:

Q1、创建第一单元,其配置有自定义分配函数;Q1. Create the first unit, which is configured with a custom allocation function;

Q2、获取多个功能种类参数,功能种类参数用于表示页面创建时所需的创建功能种类;Q2. Obtain multiple function type parameters. The function type parameter is used to indicate the type of creation function required for page creation;

Q3、创建多个第二单元,各子类控制器分别与一种功能种类参数对应;Q3. Create multiple second units, each sub-type controller corresponds to a function type parameter;

Q4、第一单元利用自定义分配函数根据各功能种类参数,分别向各第二单元分配与功能种类参数对应的页面创建函数的调用地址,存入对应的第二单元内部预设的自定义调用文件中;Q4. The first unit uses the self-defined allocation function to allocate the calling address of the page creation function corresponding to the function type parameter to each second unit according to the parameters of each function type, and stores the corresponding custom call address preset in the second unit in the file;

Q5、将功能种类参数存入对应的第二单元中预设的自定义声明文件,自定义声明文件用于标记第二单元所对应的创建功能种类;Q5. Store the function type parameters in the preset custom declaration file in the corresponding second unit, and the custom declaration file is used to mark the creation function type corresponding to the second unit;

Q6、利用各第二单元进行页面创建工作。Q6. Use each second unit to create a page.

本发明实施例,首先创建第一单元,第一单元配置有自定义分配函数,根据页面创建的需要,创建多个第二单元,并利用第一单元根据页面创建的需要,将各页面创建函数的调用地址分配给各第二单元,而后直接利用各第二单元借助各页面创建函数进行页面创建工作,使得页面创建工作所需的程序更为精简,提高页面创建工作的工作效率,减少编程工作量。In this embodiment of the present invention, a first unit is first created, the first unit is configured with a custom allocation function, a plurality of second units are created according to the needs of page creation, and the first unit is used to create functions for each page according to the needs of page creation Allocating the calling address to each second unit, and then directly using each second unit to perform page creation work with the help of each page creation function, which makes the program required for page creation work more streamlined, improves the work efficiency of page creation work, and reduces programming work. quantity.

本发明实施例中,首先在步骤Q1,先创建一个第一单元,其配置有自定义分配函数;In the embodiment of the present invention, first in step Q1, a first unit is created, which is configured with a self-defined allocation function;

接着在步骤Q2,预设多个功能种类参数,功能种类参数用于表示页面创建时所需的创建功能种类;Next, in step Q2, a plurality of function type parameters are preset, and the function type parameters are used to represent the creation function type required when the page is created;

需要说明的是,功能种类参数具体可以是页面创建时所需的创建功能种类,诸如页面背景颜色、页面尺寸、页面字体大小、页面字体等,即每一种功能种类参数对应一种页面的创建功能种类,而自定义分配函数则是在各功能种类参数以及各页面创建函数之间建立一种联系,当自定义分配函数获得功能种类参数时,自定义分配函数可以根据功能种类参数获得与功能种类参数对应的页面创建函数的调用地址,进而进行分配工作;It should be noted that the function type parameter can specifically be the creation function type required for page creation, such as page background color, page size, page font size, page font, etc., that is, each function type parameter corresponds to the creation of a page. The function type, and the custom allocation function is to establish a connection between the parameters of each function type and the page creation function. When the custom allocation function obtains the function type parameter, the custom allocation function can obtain and function according to the function type parameter. The calling address of the page creation function corresponding to the type parameter, and then assign work;

其中,页面创建函数具体是指在页面创建工作过程中,分别用于完成不同页面创建任务的函数,诸如页面背景颜色、页面尺寸、页面字体大小、页面字体等项目的创建设定工作;Among them, the page creation function specifically refers to the functions used to complete different page creation tasks in the process of page creation, such as the creation and setting of items such as page background color, page size, page font size, and page font;

进而在步骤Q3中,会创建多个第二单元,各第二单元分别与一种功能种类参数对应,即每一个第二单元实际上也与一种页面创建功能相对应,一个第二单元对应一种页面创建功能;Furthermore, in step Q3, a plurality of second units will be created, and each second unit corresponds to a function type parameter, that is, each second unit actually corresponds to a page creation function, and one second unit corresponds to A page creation function;

其中,第二单元中预设有两个文件,一个是自定义声明文件,一个是自定义调用文件,自定义声明文件用于存储与该第二单元对应的功能种类参数,而自定义调用文件则用于存储与该第二单元对应的功能种类参数相对应的页面创建函数的调用地址;Among them, two files are preset in the second unit, one is a custom declaration file, the other is a custom calling file, the custom declaration file is used to store the function type parameters corresponding to the second unit, and the custom calling file is used. then used to store the calling address of the page creation function corresponding to the function type parameter corresponding to the second unit;

故而在步骤Q4中,第一单元利用自定义分配函数根据各功能种类参数,分别向各第二单元分配与功能种类参数对应的页面创建函数的调用地址,存入对应的第二单元内部预设的自定义调用文件中;Therefore, in step Q4, the first unit allocates the calling address of the page creation function corresponding to the function type parameter to each second unit by using the self-defined allocation function according to each function type parameter, and stores it in the corresponding second unit internal preset. in the custom call file;

进而在步骤Q5中,将功能种类参数存入对应的第二单元中预设的自定义声明文件,自定义声明文件用于标记第二单元所对应的创建功能种类;And then in step Q5, the function category parameter is stored in the preset custom declaration file in the corresponding second unit, and the custom declaration file is used to mark the creation function category corresponding to the second unit;

当上述步骤均完成后,开始页面创建的工作步骤Q6,利用各第二单元进行页面创建工作;When the above steps are all completed, the work step Q6 of page creation is started, and each second unit is used to create a page;

需要说明的是,进行页面创建时,应该获取需要进行页面创建的页面创建需求数据,根据页面创建需求数据,再借助各第二单元进行页面创建工作;It should be noted that when creating a page, you should obtain the page creation requirement data that needs to be created, create the requirement data according to the page, and then use each second unit to create the page;

本发明实施例在进行页面创建工作时,与常规的页面创建手段一致,优势在于本发明实施例将各页面创建函数借助各第二单元进行使用,减少了代码编写的工作量,提高了工作效率,降低了代码编写出错的风险;When the page creation work is performed in the embodiment of the present invention, it is consistent with the conventional page creation method. , reducing the risk of coding errors;

本发明实施例实际上是根据需求来制定多个第二单元,一个第二单元对应一种页面创建所需的功能,这样在进行页面创建时,无需再输入大量代码,也无需再将现有的页面创建函数重复写入,当需要使用某一页面创建函数时,直接调用与其对应的第二单元即可,降低了程序上的复杂程度,减少了编程时工作量。In this embodiment of the present invention, a plurality of second units are actually formulated according to requirements, and one second unit corresponds to a function required for page creation. In this way, when creating a page, there is no need to input a large amount of code, and there is no need to add existing The page creation function is repeatedly written. When a page creation function needs to be used, the second unit corresponding to it can be directly called, which reduces the complexity of the program and reduces the workload during programming.

本发明实施例中,第一单元配置有一公用接口,第一单元借助公用接口分别向各第二单元分配与功能种类参数对应的页面创建函数的调用地址。In the embodiment of the present invention, the first unit is configured with a public interface, and the first unit allocates the calling address of the page creation function corresponding to the function type parameter to each second unit by means of the public interface.

本发明实施例中,该方法还包括以下步骤:In the embodiment of the present invention, the method further comprises the following steps:

预设多个自定义参数,各自定义参数至少与一种页面创建函数对应,自定义参数用于在页面创建函数被调用时,存储对应的数据信息;Preset multiple custom parameters, each custom parameter corresponds to at least one page creation function, and the custom parameter is used to store corresponding data information when the page creation function is called;

第一单元利用自定义分配函数根据功能种类参数,向第二单元分配与功能种类参数对应的页面创建函数对应的自定义参数,存入自定义调用文件中;The first unit allocates the custom parameters corresponding to the page creation function corresponding to the function type parameters to the second unit by using the custom allocation function according to the function type parameters, and stores them in the custom calling file;

上述步骤可以理解为各页面创建函数的正常工作提供保障,不同的页面创建函数可能需要不同的参数,传统的页面创建过程中,会调用各页面创建函数,在调用的同时,会将所需的数据添加至各页面创建函数需要用到的参数中,The above steps can be understood to provide guarantee for the normal operation of each page creation function. Different page creation functions may require different parameters. In the traditional page creation process, each page creation function will be called. The data is added to the parameters required by each page creation function.

而本发明实施例中,是利用各第二单元调用各页面创建函数,故而同样需要向各自雷控制器分配与功能种类参数对应的页面创建函数对应的自定义参数,从而保证各第二单元在调用各页面创建函数时,各页面创建函数能够获得自己所需的参数,进行正常工作。In the embodiment of the present invention, each second unit is used to call each page creation function, so it is also necessary to assign custom parameters corresponding to the page creation function corresponding to the function type parameter to each lightning controller, so as to ensure that each second unit is in the When calling each page creation function, each page creation function can obtain its own required parameters and work normally.

在上述技术方案的基础上,页面创建函数至少包括背景颜色设定函数、文字视图设定函数、字体颜色设定函数、字体大小设定函数以及图像插入函数。Based on the above technical solution, the page creation function includes at least a background color setting function, a text view setting function, a font color setting function, a font size setting function and an image insertion function.

在上述技术方案的基础上,自定义调用文件以及自定义声明文件均配置有Label控件;On the basis of the above technical solutions, both the custom calling file and the custom declaration file are configured with Label controls;

需要说明的是,iOS系统中的Label控件用于显示文字的。It should be noted that the Label control in the iOS system is used to display text.

必要时,第一单元以及第二单元均可以采用视图的形式,能够更直接的查询数据;When necessary, both the first unit and the second unit can be in the form of views, which can query data more directly;

需要说明的是,视图是指计算机数据库中的视图,是一个虚拟表,其内容由查询定义,同真实的表一样,视图包含一系列带有名称的列和行数据,但视图并不在数据库中以存储的数据值集形式存在,行和列数据来自由定义视图的查询所引用的表,并且在引用视图时动态生成。It should be noted that a view refers to a view in a computer database. It is a virtual table whose content is defined by a query. Like a real table, a view contains a series of column and row data with names, but the view is not in the database. Existing as a stored set of data values, row and column data come from tables referenced by the query that defines the view, and are dynamically generated when the view is referenced.

基于同一发明构思,本申请提供了实施例一对应的页面创建系统的实施例,详见实施例三 Based on the same inventive concept, the present application provides an embodiment of the page creation system corresponding to Embodiment 1. For details, please refer to Embodiment 3

实施例三Embodiment 3

如图3所示,本发明第三实施例提供了一种页面创建系统,其包括:As shown in FIG. 3, a third embodiment of the present invention provides a page creation system, which includes:

多个子类控制器1,各子类控制器1分别与一种预设的功能种类参数对应,各子类控制器1内部预设有自定义调用文件以及自定义声明文件,自定义声明文件用于标记子类控制器1所对应的创建功能种类;A plurality of sub-type controllers 1, each sub-type controller 1 corresponds to a preset function type parameter, each sub-type controller 1 is preset with a custom call file and a custom declaration file, and the custom declaration file is used for The creation function type corresponding to the marker subclass controller 1;

父类控制器2,其配置有自定义分配函数,父类控制器2用于利用自定义分配函数根据各功能种类参数,分别向各子类控制器1分配与功能种类参数对应的页面创建函数的调用地址,存入对应的自定义调用文件中,还用于将功能种类参数存入对应的自定义声明文件;The parent class controller 2 is configured with a custom allocation function. The parent class controller 2 is used to use the custom allocation function to allocate page creation functions corresponding to the function type parameters to each subclass controller 1 according to the parameters of each function type. The calling address is stored in the corresponding custom calling file, and is also used to store the function type parameters in the corresponding custom declaration file;

页面创建单元3,其用于利用各子类控制器1进行页面创建工作。The page creation unit 3 is used for creating pages by using each sub-type controller 1 .

本发明实施例实际上是根据需求通过父类控制器2来制定多个子类控制器1,一个子类控制器1对应一种页面创建所需的功能,这样在进行页面创建时,无需再输入大量代码,也无需再将现有的页面创建函数重复写入,当需要使用某一页面创建函数时,直接调用与其对应的子类控制器1即可,降低了程序上的复杂程度,减少了编程时工作量。In this embodiment of the present invention, multiple sub-class controllers 1 are actually formulated through the parent-class controller 2 according to requirements, and one sub-class controller 1 corresponds to a function required for page creation, so that when creating a page, no additional input is required. There is a lot of code, and there is no need to repeatedly write the existing page creation function. When a page creation function needs to be used, it can directly call the corresponding subclass controller 1, which reduces the complexity of the program and reduces the workload when programming.

本发明实施例中,父类控制器2配置有一公用接口,父类控制器2借助公用接口分别向各子类控制器1分配与功能种类参数对应的页面创建函数的调用地址。In the embodiment of the present invention, the parent class controller 2 is configured with a public interface, and the parent class controller 2 allocates the calling address of the page creation function corresponding to the function type parameter to each child class controller 1 by means of the public interface.

本发明实施例中,该系统在工作时包括以下工序:In the embodiment of the present invention, the system includes the following steps during operation:

预设多个自定义参数,各自定义参数至少与一种页面创建函数对应,自定义参数用于在页面创建函数被调用时,存储对应的数据信息;Preset multiple custom parameters, each custom parameter corresponds to at least one page creation function, and the custom parameter is used to store corresponding data information when the page creation function is called;

父类控制器2利用自定义分配函数根据功能种类参数,向子类控制器1分配与功能种类参数对应的页面创建函数对应的自定义参数,存入自定义调用文件中。The parent class controller 2 allocates the user-defined parameters corresponding to the page creation function corresponding to the function type parameter to the subclass controller 1 by using the user-defined allocation function according to the function type parameters, and stores them in the user-defined calling file.

本发明实施例中,页面创建函数至少包括背景颜色设定函数、文字视图设定函数、字体颜色设定函数、字体大小设定函数以及图像插入函数。In this embodiment of the present invention, the page creation function includes at least a background color setting function, a text view setting function, a font color setting function, a font size setting function, and an image insertion function.

本发明实施例中,自定义调用文件以及自定义声明文件均配置有Label控件。In the embodiment of the present invention, both the custom calling file and the custom declaration file are configured with a Label control.

基于同一发明构思,本申请提供了实施例一对应的存储介质的实施例,详见实施例四 Based on the same inventive concept, the present application provides an embodiment of the storage medium corresponding to Embodiment 1. For details, see Embodiment 4 for details.

实施例四Embodiment 4

本发明第四实施例提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现第一实施例至实施例二中的所有方法步骤或部分方法步骤。A fourth embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements all or part of the method steps in the first embodiment to the second embodiment.

本发明实现上述第一实施例至实施例二中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,计算机程序包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The present invention realizes all or part of the processes in the first embodiment to the second embodiment, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can be When executed by the processor, the steps of the foregoing method embodiments may be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate forms, and the like. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in computer-readable media may be appropriately increased or decreased in accordance with the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media does not include Electrical carrier signals and telecommunication signals.

基于同一发明构思,本申请提供了实施例一对应的电子设备的实施例,详见实施例五 Based on the same inventive concept, the present application provides an embodiment of the electronic device corresponding to Embodiment 1. For details, please refer to Embodiment 5

实施例五Embodiment 5

本发明第五实施例还提供一种电子设备,包括存储器和处理器,存储器上储存有在处理器上运行的计算机程序,处理器执行计算机程序时实现第一实施例至实施例二中的所有方法步骤或部分方法步骤。A fifth embodiment of the present invention also provides an electronic device, including a memory and a processor, the memory stores a computer program running on the processor, and when the processor executes the computer program, all of the first to second embodiments are implemented A method step or part of a method step.

所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,处理器是计算机装置的控制中心,利用各种接口和线路连接整个计算机装置的各个部分。The processor may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf processors Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The processor is the control center of the computer device, and uses various interfaces and lines to connect various parts of the entire computer device.

存储器可用于存储计算机程序和/或模块,处理器通过运行或执行存储在存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现计算机装置的各种功能。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、视频数据等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory can be used to store computer programs and/or modules, and the processor implements various functions of the computer device by running or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory can mainly include a stored program area and a stored data area, wherein the stored program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function; The use of created data (such as audio data, video data, etc.) and so on. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory such as hard disk, internal memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card , a flash memory card (Flash Card), at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、服务器或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, server or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including but not limited to disk storage, optical storage, and the like.

本发明是参照根据本发明实施例的方法、设备(系统)、服务器和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), servers and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims (9)

1. A page creation method, characterized in that it comprises the steps of:
creating a parent controller configured with a custom distribution function;
presetting a plurality of function type parameters, wherein the function type parameters are used for representing the creation function type required by page creation;
creating a plurality of subclass controllers, wherein each subclass controller corresponds to one function type parameter;
the parent controller allocates calling addresses of the page creating functions corresponding to the function type parameters to the child controllers respectively according to the function type parameters by using the custom allocation function, and stores the calling addresses into custom calling files preset in the corresponding child controllers;
storing the function type parameters into a custom statement file preset in the corresponding subclass controller, wherein the custom statement file is used for marking the creating function type corresponding to the subclass controller;
and performing page creation work by utilizing each subclass controller.
2. The method of claim 1, wherein: and the parent controller is configured with a common interface, and the parent controller allocates the calling address of the page creation function corresponding to the function type parameter to each child controller by virtue of the common interface.
3. The method of claim 1, further comprising the steps of:
presetting a plurality of custom parameters, wherein each custom parameter at least corresponds to a page creation function, and the custom parameters are used for storing corresponding data information when the page creation function is called;
and the parent controller distributes the custom parameters corresponding to the page creation function corresponding to the function type parameters to the child controller by using the custom distribution function according to the function type parameters, and stores the custom parameters into the custom calling file.
4. The method of claim 1, wherein: the page creation function includes at least a background color setting function, a text view setting function, a font color setting function, a font size setting function, and an image insertion function.
5. The method of claim 1, wherein: and both the custom calling file and the custom declaration file are provided with Label controls.
6. A storage medium having a computer program stored thereon, characterized in that: the computer program, when executed by a processor, implements the method of any of claims 1 to 5.
7. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program for execution on the processor, the electronic device comprising: the processor, when executing the computer program, implements the method of any of claims 1 to 5.
8. A page creation system, comprising:
each subclass controller corresponds to a preset function type parameter, a user-defined calling file and a user-defined declaration file are preset in each subclass controller, and the user-defined declaration file is used for marking the corresponding created function type of the subclass controller;
the parent controller is configured with a custom distribution function, and is used for respectively distributing a calling address of a page creation function corresponding to the function type parameter to each child controller by using the custom distribution function according to each function type parameter, storing the calling address into the corresponding custom calling file, and storing the function type parameter into the corresponding custom declaration file;
and the page creating unit is used for utilizing each subclass controller to perform page creating work.
9. The system of claim 8, wherein: and the parent controller is configured with a common interface, and the parent controller allocates the calling address of the page creation function corresponding to the function type parameter to each child controller by virtue of the common interface.
CN201811361001.3A 2018-11-15 2018-11-15 A page creation method, storage medium, electronic device and system Active CN111190592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811361001.3A CN111190592B (en) 2018-11-15 2018-11-15 A page creation method, storage medium, electronic device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811361001.3A CN111190592B (en) 2018-11-15 2018-11-15 A page creation method, storage medium, electronic device and system

Publications (2)

Publication Number Publication Date
CN111190592A CN111190592A (en) 2020-05-22
CN111190592B true CN111190592B (en) 2022-06-21

Family

ID=70705606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811361001.3A Active CN111190592B (en) 2018-11-15 2018-11-15 A page creation method, storage medium, electronic device and system

Country Status (1)

Country Link
CN (1) CN111190592B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902383A (en) * 2014-03-26 2014-07-02 浪潮电子信息产业股份有限公司 Method for designing resource managers on basis of inheritance mechanisms
CN107402766A (en) * 2017-07-31 2017-11-28 武汉斗鱼网络科技有限公司 Page layout management method and device
CN107729452A (en) * 2017-10-09 2018-02-23 武汉斗鱼网络科技有限公司 Webpage loading method, device, electronic equipment and computer-readable recording medium
CN108008955A (en) * 2017-12-15 2018-05-08 北京小米移动软件有限公司 Show the method, apparatus of self-defined control information
CN108255564A (en) * 2018-01-18 2018-07-06 北京摩拜科技有限公司 The methods of exhibiting and electronic equipment of five application page

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6973624B2 (en) * 2002-02-26 2005-12-06 Microsoft Corporation Page function architectural framework
GB0517357D0 (en) * 2005-08-25 2005-10-05 Corizon Ltd User interface generation
US7958145B2 (en) * 2007-11-20 2011-06-07 International Business Machines Corporation Creating multiple MBeans from a factory MBean
DE102013001196A1 (en) * 2013-01-24 2014-07-24 Fujitsu Technology Solutions Intellectual Property Gmbh A method of providing a user interface, computer system and computer program product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902383A (en) * 2014-03-26 2014-07-02 浪潮电子信息产业股份有限公司 Method for designing resource managers on basis of inheritance mechanisms
CN107402766A (en) * 2017-07-31 2017-11-28 武汉斗鱼网络科技有限公司 Page layout management method and device
CN107729452A (en) * 2017-10-09 2018-02-23 武汉斗鱼网络科技有限公司 Webpage loading method, device, electronic equipment and computer-readable recording medium
CN108008955A (en) * 2017-12-15 2018-05-08 北京小米移动软件有限公司 Show the method, apparatus of self-defined control information
CN108255564A (en) * 2018-01-18 2018-07-06 北京摩拜科技有限公司 The methods of exhibiting and electronic equipment of five application page

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Development of scenes drawing system for urban road accidents;Yangshan Tang;《https://ieeexplore.ieee.org/abstract/document/5985823》;20110815;全文第1-6页 *
iOS开发笔记之三十七——OC中父类与子类之间相互调用方法的总结;Leon0206;《https://blog.csdn.net/lizitao/article/details/45196777》;20150422;全文第1-2页 *

Also Published As

Publication number Publication date
CN111190592A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
CN111723079A (en) Data migration method, device, computer equipment and storage medium
CN110647564B (en) Hive table building method, electronic device and computer readable storage medium
CN111475162A (en) Page generating method, device, server and storage medium
CN113094125A (en) Business process processing method, device, server and storage medium
CN109345108A (en) Task allocation method, device, device and storage medium
CN108170465A (en) A kind of version information management method, electronic equipment and readable storage medium storing program for executing
CN111191161B (en) Page display method, storage medium, electronic device and system
CN112003769A (en) Message processing method, device and equipment
CN109948608B (en) License plate number recognition method, computer device and computer readable storage medium
CN108664249B (en) Method, device, electronic device and computer-readable storage medium for improving string storage efficiency
CN111190592B (en) A page creation method, storage medium, electronic device and system
CN116228153A (en) Engineering project design change price management method, system, equipment and medium
CN115437700A (en) Method, device, system and medium for automatically configuring hardware resources of driver
CN109976632A (en) text animation control method and device, storage medium and processor
CN108897532B (en) Method and device for class factory registration and electronic equipment
CN113434489B (en) A real-time database online expansion method, system, device and storage medium
CN116009841A (en) A file submission conflict management method, system and device
CN112000414B (en) Configurable display method and device for parameter information
CN115964095A (en) General API interface configuration and arrangement method, system, medium and equipment
CN107122489A (en) A kind of data comparison method and device
CN115145634A (en) A system management software self-adapting method, device and medium
CN109189378B (en) Data processing method and related device
WO2022105494A1 (en) Automatic data backfilling method and apparatus, electronic device, and computer storage medium
CN113282028A (en) Equipment state feedback method, system and device in operation scene and storage medium
CN113626033B (en) Modification method of mobile terminal interface and device, computer terminal equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250113

Address after: 1208, 12th Floor, Building 2, 186A Litang Road, Changping District, Beijing 100000

Patentee after: Mingshida (Beijing) Sports Technology Co.,Ltd.

Country or region after: China

Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

Country or region before: China