CN111309323B - Parameter initialization method and device and electronic equipment - Google Patents
Parameter initialization method and device and electronic equipment Download PDFInfo
- Publication number
- CN111309323B CN111309323B CN202010062205.8A CN202010062205A CN111309323B CN 111309323 B CN111309323 B CN 111309323B CN 202010062205 A CN202010062205 A CN 202010062205A CN 111309323 B CN111309323 B CN 111309323B
- Authority
- CN
- China
- Prior art keywords
- page
- code file
- transferred
- parameter
- parameters
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation 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)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域Technical field
本公开涉及互联网技术领域,尤其涉及一种参数初始化方法、装置和电子设备。The present disclosure relates to the field of Internet technology, and in particular, to a parameter initialization method, device and electronic equipment.
背景技术Background technique
随着互联网技术的发展,网页应用(web application)或者客户端应用(clientapplication)可以提供更加复杂的功能。意味着,网页应用的代码文件或者客户端应用的代码文件需要承载更多的代码,来实现更加复杂的功能。With the development of Internet technology, web applications or client applications can provide more complex functions. This means that the code files of web applications or client applications need to carry more code to implement more complex functions.
在网页应用或者客户端应用的开发过程中,页面的代码文件所包含的相关参数一般需要初始化。During the development process of web applications or client applications, the relevant parameters contained in the code files of the page generally need to be initialized.
发明内容Contents of the invention
提供该公开内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该公开内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。This Disclosure is provided to introduce in simplified form the concepts that are later described in detail in the Detailed Description. This disclosure section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to be used to limit the scope of the claimed technical solution.
本公开实施例提供了一种参数初始化方法、装置和电子设备,降低了对第一页面的代码文件中的待初始化参数进行初始化的复杂度。Embodiments of the present disclosure provide a parameter initialization method, device and electronic device, which reduce the complexity of initializing parameters to be initialized in the code file of the first page.
第一方面,本公开实施例提供了一种参数初始化方法,该方法包括:根据第一页面的代码文件中包含的预定义格式的注解信息,确定第一页面的代码文件中的待初始化参数;根据第二页面的代码文件中包含的预定义格式的注解信息,生成第二页面待传递至第一页面的待传递参数信息;根据待传递参数信息,对第一页面的代码文件中的待初始化参数进行初始化。In a first aspect, embodiments of the present disclosure provide a parameter initialization method, which method includes: determining parameters to be initialized in the code file of the first page based on annotation information in a predefined format contained in the code file of the first page; According to the predefined format annotation information contained in the code file of the second page, the parameter information to be transferred to the first page is generated; according to the parameter information to be transferred, the parameter information to be initialized in the code file of the first page is generated. Parameters are initialized.
第二方面,本公开实施例提供了一种参数初始化装置,该装置包括:确定单元,用于根据第一页面的代码文件中包含的预定义格式的注解信息,确定第一页面的代码文件中的待初始化参数;第一生成单元,用于根据第二页面的代码文件中包含的预定义格式的注解信息,生成第二页面待传递至第一页面的待传递参数信息;初始化单元,用于根据待传递参数信息,对第一页面的代码文件中的待初始化参数进行初始化。In a second aspect, embodiments of the present disclosure provide a parameter initialization device. The device includes: a determining unit configured to determine, based on the annotation information in a predefined format contained in the code file of the first page, the code file of the first page. The parameters to be initialized; the first generation unit is used to generate the parameter information to be transferred to the first page from the second page based on the predefined format annotation information contained in the code file of the second page; the initialization unit is used to Initialize the parameters to be initialized in the code file of the first page according to the parameter information to be passed.
第三方面,本公开实施例提供了一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如第一方面所述的参数初始化方法。In a third aspect, embodiments of the present disclosure provide an electronic device, including: one or more processors; a storage device configured to store one or more programs. When the one or more programs are processed by the one or more Execution by multiple processors causes the one or more processors to implement the parameter initialization method described in the first aspect.
第四方面,本公开实施例提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面所述的参数初始化方法的步骤。In a fourth aspect, embodiments of the present disclosure provide a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the steps of the parameter initialization method as described in the first aspect are implemented.
本公开实施例提供的参数初始化方法、装置和电子设备,首先根据第一页面的代码文件中包含的预定义格式的注解信息,确定第一页面的代码文件中的待初始化参数,然后根据第二页面的代码文件中包含的预定义格式的注解信息,生成第二页面待传递至第一页面的待传递参数信息,而后根据所生成的待传递参数信息,对第一页面的代码文件中的待初始化参数进行初始化。从而在不需要额外的解析代码文件的前提下,实现第一页面的代码文件中的待初始化参数的初始化。进一步降低了对第一页面的代码文件中的待初始化参数进行初始化的复杂度。The parameter initialization method, device and electronic device provided by the embodiments of the present disclosure first determine the parameters to be initialized in the code file of the first page based on the predefined format annotation information contained in the code file of the first page, and then determine the parameters to be initialized in the code file of the first page based on the second page. The predefined format annotation information contained in the code file of the page generates the parameter information to be transferred from the second page to the first page, and then based on the generated parameter information to be transferred, the parameter information to be transferred in the code file of the first page is Initialization parameters are initialized. Thus, the parameters to be initialized in the code file of the first page can be initialized without the need for additional parsing code files. This further reduces the complexity of initializing the parameters to be initialized in the code file of the first page.
附图说明Description of drawings
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages, and aspects of various embodiments of the present disclosure will become more apparent with reference to the following detailed description taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It is to be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
图1是根据本公开的参数初始化方法的一个实施例的流程图;Figure 1 is a flow chart of an embodiment of a parameter initialization method according to the present disclosure;
图2是根据本公开的参数初始化方法的一个应用场景的示意图;Figure 2 is a schematic diagram of an application scenario of the parameter initialization method according to the present disclosure;
图3是根据本公开的参数初始化方法的又一个实施例的流程图;Figure 3 is a flow chart of yet another embodiment of a parameter initialization method according to the present disclosure;
图4是根据本公开的参数初始化装置的一个实施例的结构示意图;Figure 4 is a schematic structural diagram of an embodiment of a parameter initialization device according to the present disclosure;
图5是本公开的一个实施例的参数初始化方法可以应用于其中的示例性系统架构;Figure 5 is an exemplary system architecture in which the parameter initialization method of one embodiment of the present disclosure can be applied;
图6是根据本公开实施例提供的电子设备的基本结构的示意图。FIG. 6 is a schematic diagram of the basic structure of an electronic device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, which rather are provided for A more thorough and complete understanding of this disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of the present disclosure.
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that various steps described in the method implementations of the present disclosure may be executed in different orders and/or in parallel. Furthermore, method embodiments may include additional steps and/or omit performance of illustrated steps. The scope of the present disclosure is not limited in this regard.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "include" and its variations are open-ended, ie, "including but not limited to." The term "based on" means "based at least in part on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; and the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as “first” and “second” mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units. Or interdependence.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in this disclosure are illustrative and not restrictive. Those skilled in the art will understand that unless the context clearly indicates otherwise, it should be understood as "one or Multiple”.
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are for illustrative purposes only and are not used to limit the scope of these messages or information.
请参考图1,其示出了根据本公开的参数初始化方法的一个实施例的流程。如图1所示该参数初始化方法,包括以下步骤:Please refer to FIG. 1 , which shows a flow of an embodiment of a parameter initialization method according to the present disclosure. As shown in Figure 1, the parameter initialization method includes the following steps:
步骤101,根据第一页面的代码文件中包含的预定义格式的注解信息,确定第一页面的代码文件中的待初始化参数。Step 101: Determine the parameters to be initialized in the code file of the first page based on the predefined format annotation information contained in the code file of the first page.
在本实施例中,执行参数初始化方法的电子设备可以确定第一页面的代码文件中包含的预定义格式的注解信息。In this embodiment, the electronic device executing the parameter initialization method may determine the annotation information in the predefined format contained in the code file of the first page.
上述代码文件可以是对页面进行编码的代码所在的文件。可以理解,第一页面的代码文件可以是对第一页面进行编码的代码所在的文件。The above code file can be the file where the code that encodes the page resides. It can be understood that the code file of the first page may be the file in which the code for encoding the first page is located.
上述注解信息可以是对代码文件中的参数和参数值进行解释的信息。可以理解,注解信息可以是包含在代码文件中的信息,而不是包含在其它文件中的信息。上述预定义格式可以是预先定义的格式。The above annotation information may be information explaining parameters and parameter values in the code file. It can be understood that the annotation information may be information contained in the code file, rather than information contained in other files. The above-mentioned predefined format may be a predefined format.
在一些场景中,执行参数初始化方法的电子设备首先可以确定第一页面的代码文件中包含的注解信息,然后再从中确定预定义格式的注解信息。In some scenarios, the electronic device executing the parameter initialization method can first determine the annotation information contained in the code file of the first page, and then determine the annotation information in the predefined format therefrom.
在本实施例中,确定第一页面的代码文件中包含的预定义格式的注解信息之后,执行参数初始化方法的电子设备可以进一步确定第一页面的代码文件中的待初始化参数。In this embodiment, after determining the annotation information in the predefined format contained in the code file of the first page, the electronic device executing the parameter initialization method may further determine the parameters to be initialized in the code file of the first page.
在一些场景中,预定义格式的注解信息中可以包含参数是否需要初始化的信息。此时,执行参数初始化方法的电子设备可以根据第一页面的代码文件中包含的预定义格式的注解信息,确定第一页面的代码文件中的待初始化参数。在一些实现方式中,响应于检测到第二页面跳转至第一页面的触发操作,执行参数初始化方法的电子设备可以根据第一页面的代码文件中包含的预定义格式的注解信息,确定第一页面的代码文件中的待初始化参数。In some scenarios, the annotation information in the predefined format can include information about whether parameters need to be initialized. At this time, the electronic device executing the parameter initialization method can determine the parameters to be initialized in the code file of the first page based on the annotation information in the predefined format contained in the code file of the first page. In some implementations, in response to detecting the triggering operation of jumping from the second page to the first page, the electronic device executing the parameter initialization method may determine the second page based on the predefined format annotation information contained in the code file of the first page. Parameters to be initialized in the code file of a page.
上述触发操作可以是技术人员在页面开过程中对第二页面中预先指定的控件执行的单机、双击、滑动等操作。可以理解,技术人员对第二页面中预先指定的控件执行操作之后,可以触发第二页面跳转至第一页面。The above-mentioned triggering operations may be stand-alone, double-clicking, sliding and other operations performed by technicians on pre-specified controls on the second page during the page opening process. It can be understood that after the technician performs operations on the pre-specified controls on the second page, the second page can be triggered to jump to the first page.
在这些实现方式中,响应于检测到第二页面跳转至第一页面的触发操作,确定第一页面的代码文件中的待初始化参数,意味着,在第二页面向第一页面跳转的时机下,确定第一页面的代码文件中待初始化参数。从而实现了在第二页面向第一页面跳转的时机下,根据第二页面待传递至第一页面的待传递参数信息,对第一页面的代码文件中的待初始化参数进行初始化。In these implementations, in response to detecting the triggering operation of jumping from the second page to the first page, determining the parameters to be initialized in the code file of the first page means that when the second page jumps to the first page, When the time comes, determine the parameters to be initialized in the code file of the first page. Thus, when the second page jumps to the first page, the parameters to be initialized in the code file of the first page are initialized according to the parameter information to be transferred from the second page to the first page.
步骤102,根据第二页面的代码文件中包含的预定义格式的注解信息,生成第二页面待传递至第一页面的待传递参数信息。Step 102: Generate parameter information to be transferred from the second page to the first page based on the predefined format annotation information contained in the code file of the second page.
在本实施例中,执行参数初始化方法的电子设备可以按照类似步骤101中描述的方式,确定第二页面的代码文件中包含的预定义格式的注解信息。此处不再赘述。In this embodiment, the electronic device executing the parameter initialization method can determine the annotation information in the predefined format contained in the code file of the second page in a manner similar to that described in step 101. No further details will be given here.
在本实施例中,确定第二页面的代码文件中包含的预定义格式的注解信息之后,执行参数初始化方法的电子设备可以根据所确定的预定义格式的注解信息,生成第二页面待传递至第一页面的待传递参数信息。In this embodiment, after determining the annotation information in the predefined format contained in the code file of the second page, the electronic device executing the parameter initialization method can generate the second page to be passed to the server based on the determined annotation information in the predefined format. The parameter information to be passed on the first page.
上述待传递参数信息可以是包含待传递参数和对应的待传递参数值的信息。实践中,第一页面可以是在第二页面的基础上进行显示的页面。因此,在对第一页面进行显示之前,需要将第二页面的相关参数和对应的参数值传递至第一页面。The above parameter information to be transferred may be information including the parameter to be transferred and the corresponding parameter value to be transferred. In practice, the first page may be a page displayed based on the second page. Therefore, before displaying the first page, the relevant parameters and corresponding parameter values of the second page need to be transferred to the first page.
在一些场景中,执行参数初始化方法的电子设备可以将待传递参数信息指示的参数和对应的参数值组合成键-值(key-value)对,而后将包含这些键-值对的信息作为所生成的待传递参数信息。In some scenarios, the electronic device executing the parameter initialization method can combine the parameters indicated by the parameter information to be transferred and the corresponding parameter values into key-value (key-value) pairs, and then use the information containing these key-value pairs as all Generated parameter information to be passed.
需要说明的是,执行参数初始化方法的电子设备可以并行地执行步骤101和步骤102,也可以按照一定的先后顺序分别执行步骤101和步骤102。此处不做具体限定。It should be noted that the electronic device that executes the parameter initialization method may execute steps 101 and 102 in parallel, or may execute steps 101 and 102 respectively in a certain sequence. There are no specific limitations here.
步骤103,根据待传递参数信息,对第一页面的代码文件中的待初始化参数进行初始化。Step 103: Initialize the parameters to be initialized in the code file of the first page according to the parameter information to be transferred.
在本实施例中,执行参数初始化方法的电子设备可以根据待传递参数信息,对第一页面的代码文件中的待初始化参数进行初始化。In this embodiment, the electronic device executing the parameter initialization method can initialize the parameters to be initialized in the code file of the first page according to the parameter information to be transferred.
在一些场景中,对于第一页面的代码文件中的待初始化参数,执行参数初始化方法的电子设备可以从所确定的待传递参数信息中确定该参数所对应的参数值,而后将所确定的参数值作为该参数的初始值。In some scenarios, for the parameters to be initialized in the code file of the first page, the electronic device executing the parameter initialization method can determine the parameter value corresponding to the parameter from the determined parameter information to be transferred, and then transfer the determined parameter value as the initial value of this parameter.
在一些实现方式中,执行步骤103之后,执行参数初始化方法的电子设备可以按照第一页面的初始化参数后的代码文件,显示第一页面。In some implementations, after performing step 103, the electronic device executing the parameter initialization method may display the first page according to the code file after initializing the parameters of the first page.
在这些实现方式中,首先根据第二页面待传递至第一页面的待传递参数信息,对第一页面的代码文件中的待初始化参数进行初始化,然后按照初始化参数后的代码文件,对第一页面进行显示。从而实现了在第二页面的基础上,对第一页面进行显示。In these implementations, first, the parameters to be initialized in the code file of the first page are initialized according to the parameter information to be transferred to the first page from the second page, and then the first page is initialized according to the code file after the initialization parameters. The page is displayed. Thus, the first page is displayed on the basis of the second page.
请参考图2,其示出了根据本公开实施例的参数初始化方法的一个应用场景。如图2所示,终端设备201可以根据第一页面的代码文件202中包含的预定格式的注解信息2021,确定第一页面的代码文件202中的待初始化参数203。终端设备201还可以根据第二页面的代码文件204中包含的预定义格式的注解信息2041,生成第二页面待传递至第一页面的待传递参数信息205。进一步,终端设备201可以根据待传递参数信息205,对第一页面的代码文件中的待初始化参数203进行初始化。Please refer to FIG. 2 , which shows an application scenario of the parameter initialization method according to an embodiment of the present disclosure. As shown in FIG. 2 , the terminal device 201 can determine the parameters to be initialized 203 in the code file 202 of the first page based on the predetermined format annotation information 2021 contained in the code file 202 of the first page. The terminal device 201 can also generate the parameter information 205 to be transferred from the second page to the first page based on the predefined format annotation information 2041 contained in the code file 204 of the second page. Further, the terminal device 201 can initialize the parameters to be initialized 203 in the code file of the first page according to the parameter information 205 to be transferred.
为了实现对页面的代码文件所包含的待初始化参数进行初始化,在相关技术中,通过解析代码文件中包含的解析代码,解析出对页面的代码文件所包含的待初始化参数进行初始化的参数信息,而后根据解析出的参数信息,对页面的代码文件中的待初始化参数进行初始化。In order to initialize the parameters to be initialized contained in the code file of the page, in related technologies, the parameter information for initializing the parameters to be initialized contained in the code file of the page is parsed by parsing the parsing code contained in the code file, Then, based on the parsed parameter information, the parameters to be initialized in the code file of the page are initialized.
在本实施例中,通过第一页面的代码文件中预定义格式的注解信息,确定第一页面的代码文件中的待初始化参数,通过第二页面的代码文件中预定义格式的注解信息,确定第二页面待传递至第一页面的待传递参数信息,进一步,根据所确定的待传递参数信息,对所确定的待初始化参数进行初始化。由此,在不需要额外的解析代码文件的前提下,通过第二页面待传递至第一页面的待传递参数信息,实现对第一页面的代码文件中的待初始化参数的初始化。一方面,由于不需要额外地对解析代码文件进行解析,从而降低了对第一页面的代码文件中的待初始化参数进行初始化的复杂度。另一方面,由于不需要额外地对解析代码文件进行存储,从而降低了对存储空间的占用。In this embodiment, the parameters to be initialized in the code file of the first page are determined through the annotation information in the predefined format in the code file on the first page, and the parameters to be initialized in the code file on the second page are determined through the annotation information in the predefined format in the code file on the second page. The parameter information to be transferred from the second page is to be transferred to the first page, and further, the determined parameter to be initialized is initialized according to the determined parameter information to be transferred. Therefore, without the need for additional parsing code files, the parameters to be initialized in the code file of the first page are initialized through the parameter information to be transferred to the first page from the second page. On the one hand, since there is no need to additionally parse the parsing code file, the complexity of initializing the parameters to be initialized in the code file of the first page is reduced. On the other hand, since there is no need to store additional parsing code files, the storage space occupied is reduced.
请继续参考图3,其示出了根据本公开的参数初始化方法的又一个实施例的流程。如图3所示,该参数初始化方法,包括以下步骤:Please continue to refer to FIG. 3 , which shows a process of yet another embodiment of a parameter initialization method according to the present disclosure. As shown in Figure 3, this parameter initialization method includes the following steps:
步骤301,对第二页面的代码文件中包含的预定义格式的注解信息进行处理,生成目标类。Step 301: Process the annotation information in the predefined format contained in the code file of the second page to generate a target class.
在本实施例中,参数初始化方法的执行主体可以根据第二页面的代码文件中包含的预定义格式的注解信息,生成目标类(class)。In this embodiment, the execution body of the parameter initialization method can generate a target class (class) based on the annotation information in a predefined format contained in the code file on the second page.
上述目标类可以用于确定第二页面的待传递参数和对应的待传递参数值。在这里,目标类可以是对第二页面的待传递参数和对应的待传递参数值进行封装的载体。The above target class can be used to determine the parameters to be passed and the corresponding parameter values to be passed on the second page. Here, the target class may be a carrier that encapsulates the parameters to be passed and the corresponding parameter values to be passed on the second page.
在一些场景中,参数初始化方法的执行主体可以预先内置生成目标类的程序,进而通过该程序,对第二页面的代码文件中包含的预定义格式的注解信息进行处理,生成目标。In some scenarios, the execution body of the parameter initialization method can have a program for generating the target class built-in in advance, and then use this program to process the annotation information in the predefined format contained in the code file on the second page to generate the target.
在一些实现方式中,参数初始化方法的执行主体可以按照如下方式执行步骤301。In some implementations, the execution body of the parameter initialization method can perform step 301 as follows.
具体地,参数初始化方法的执行主体可以通过对第二页面的代码文件进行编译的编译器,对第二页面的代码文件中包含的预定义格式的注解信息进行处理,生成目标类。Specifically, the execution body of the parameter initialization method can process the predefined format annotation information contained in the code file of the second page through a compiler that compiles the code file of the second page to generate the target class.
在这些实现方式中,可以在第二页面的代码文件的编译过程中,生成目标类。意味着,可以在结合第二页面的代码文件的编译结果的基础上,生成目标类。从而提升生成目标类的准确度。In these implementations, the target class can be generated during the compilation process of the code file on the second page. This means that the target class can be generated based on the compilation result of the code file on the second page. Thereby improving the accuracy of generating target classes.
步骤302,根据第一页面的代码文件中包含的预定义格式的注解信息,确定第一页面的代码文件中的待初始化参数。Step 302: Determine the parameters to be initialized in the code file of the first page based on the annotation information in the predefined format contained in the code file of the first page.
上述步骤302可以按照如图1所示实施例中的步骤101类似的方式执行,上文针对步骤101的描述也适用于步骤302,此处不再赘述。The above step 302 can be performed in a manner similar to step 101 in the embodiment shown in Figure 1. The above description of step 101 is also applicable to step 302, and will not be described again here.
步骤303,通过目标类,确定第二页面待传递至第一页面的待传递参数和对应的待传递参数值。Step 303: Determine the parameters to be transferred from the second page to the first page and the corresponding parameter values to be transferred through the target class.
在本实施例中,参数初始化方法的执行主体可以调用目标类,确定第二页面待传递至第一页面的待传递参数和对应的待传递参数值。In this embodiment, the execution body of the parameter initialization method can call the target class to determine the parameters to be transferred from the second page to the first page and the corresponding parameter values to be transferred.
步骤304,根据待传递至第一页面的待传递参数和对应的待传递参数值,生成待传递参数信息。Step 304: Generate parameter information to be transferred based on the parameters to be transferred to the first page and the corresponding parameter values to be transferred.
在本实施例中,参数初始化方法的执行主体可以根据待传递至第一页面的待传递参数和对应的待传递参数值,生成待传递参数信息。In this embodiment, the execution body of the parameter initialization method may generate parameter information to be transferred based on the parameters to be transferred to the first page and the corresponding parameter values to be transferred.
在一些场景中,执行参数初始化方法的电子设备可以将所确定的待传递参数和对应的待传递参数值组合成键-值对,而后将包含这些键-值对的信息作为所生成的待传递参数信息。In some scenarios, the electronic device executing the parameter initialization method can combine the determined parameters to be transferred and the corresponding parameter values to be transferred into key-value pairs, and then use the information containing these key-value pairs as the generated parameters to be transferred. Parameter information.
步骤305,根据待传递参数信息,对第一页面的代码文件中的待初始化参数进行初始化。Step 305: Initialize the parameters to be initialized in the code file of the first page according to the parameter information to be transferred.
上述步骤305可以按照如图1所示实施例中的步骤103类似的方式执行,上文针对步骤103的描述也适用于步骤305,此处不再赘述。The above step 305 can be performed in a manner similar to step 103 in the embodiment shown in Figure 1. The above description of step 103 is also applicable to step 305, and will not be described again here.
在本实施例中,通过第二页面的代码文件中包含的预定义格式的注解信息,生成目标类,通过调用目标类,确定第二页面待传递至第一页面的待传递参数和对应的待传递参数值,通过所确定的待传递参数和对应的待传递参数值,生成第二页面待传递至第一页面的待传递参数信息。由此,可以在调用目标类的基础上,生成第二页面待传递至第一页面的待传递参数信息。在待传递参数(或者待传递参数值)的数量较多时,调用目标类,可以降低生成待传递参数信息的复杂度,进一步降低对第一页面的代码文件中的待初始化参数进行初始化的复杂度。In this embodiment, the target class is generated through the predefined format annotation information contained in the code file of the second page, and by calling the target class, the parameters to be passed from the second page to the first page and the corresponding parameters to be passed are determined. Pass parameter values, and generate parameter information to be passed from the second page to the first page through the determined parameters to be passed and the corresponding parameter values to be passed. Thus, on the basis of calling the target class, the parameter information to be transferred to the first page from the second page can be generated. When there are a large number of parameters to be passed (or parameter values to be passed), calling the target class can reduce the complexity of generating parameter information to be passed, and further reduce the complexity of initializing the parameters to be initialized in the code file of the first page. .
进一步参考图4,作为对上述各图所示方法的实现,本公开提供了一种参数初始化装置的一个实施例,该装置实施例与图1所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。With further reference to Figure 4, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a parameter initialization device. The device embodiment corresponds to the method embodiment shown in Figure 1. The device can specifically Used in various electronic equipment.
如图4所示,本实施例的参数初始化装置包括:确定单元401、第一生成单元402、初始化单元403。其中,确定单元401可以用于:根据第一页面的代码文件中包含的预定义格式的注解信息,确定第一页面的代码文件中的待初始化参数。第一生成单元402可以用于:根据第二页面的代码文件中包含的预定义格式的注解信息,生成第二页面待传递至第一页面的待传递参数信息。初始化单元403可以用于:根据待传递参数信息,对第一页面的代码文件中的待初始化参数进行初始化。As shown in Figure 4, the parameter initialization device of this embodiment includes: a determination unit 401, a first generation unit 402, and an initialization unit 403. The determining unit 401 may be configured to determine the parameters to be initialized in the code file of the first page according to the annotation information in a predefined format contained in the code file of the first page. The first generating unit 402 may be configured to: generate parameter information to be transferred from the second page to the first page according to the annotation information in a predefined format contained in the code file of the second page. The initialization unit 403 may be used to initialize the parameters to be initialized in the code file of the first page according to the parameter information to be transferred.
在本实施例中,参数初始化装置的确定单元401、第一生成单元402、初始化单元403的具体处理及其所带来的技术效果可分别参考图1对应实施例中步骤101、步骤102、步骤103的相关说明,在此不再赘述。In this embodiment, the specific processing of the determination unit 401, the first generation unit 402, and the initialization unit 403 of the parameter initialization device and the technical effects thereof can be referred to steps 101, 102, and 102 in the corresponding embodiment of FIG. 1 respectively. The relevant instructions for 103 will not be repeated here.
在一些实现方式中,参数初始化还可以包括第二生成单元(图中未示出)。第二生成单元可以用于:对第二页面的代码文件中包含的预定义格式的注解信息进行处理,生成目标类,其中,目标类用于确定第二页面的待传递参数和对应的待传递参数值。第一生成单元402可以进一步用于:通过目标类,确定第二页面待传递至第一页面的待传递参数和对应的待传递参数值;根据待传递至第一页面的待传递参数和对应的待传递参数值,生成待传递参数信息。In some implementations, the parameter initialization may also include a second generation unit (not shown in the figure). The second generation unit may be used to: process the predefined format annotation information contained in the code file of the second page, and generate a target class, where the target class is used to determine the parameters to be transferred and the corresponding parameters to be transferred to the second page. parameter value. The first generating unit 402 may be further configured to: determine, through the target class, the parameters to be transferred and the corresponding parameter values to be transferred from the second page to the first page; and the parameters to be transferred to the first page and the corresponding parameter values to be transferred. The parameter value to be passed generates the parameter information to be passed.
在一些实现方式中,第二生成单元可以进一步用于:通过对第二页面的代码文件进行编译的编译器,对第二页面的代码文件中包含的预定义格式的注解信息进行处理。In some implementations, the second generation unit may be further configured to: process the predefined format annotation information contained in the code file of the second page through a compiler that compiles the code file of the second page.
在一些实现方式中,确定单元401可以进一步用于:响应于检测到第二页面跳转至第一页面的触发操作,根据第一页面的代码文件中包含的预定义格式的注解信息,确定第一页面的代码文件中的待初始化参数。In some implementations, the determining unit 401 may be further configured to: in response to detecting the triggering operation of jumping from the second page to the first page, determine the first page according to the predefined format annotation information contained in the code file of the first page. Parameters to be initialized in the code file of a page.
在一些实现方式中,参数初始化装置还可以包括:显示单元(图中未示出)。显示单元可以用于:按照第一页面的初始化参数后的代码文件,显示第一页面。In some implementations, the parameter initialization device may further include: a display unit (not shown in the figure). The display unit may be used to: display the first page according to the code file after the initialization parameters of the first page.
进一步参考图5,图5示出了本公开的一个实施例的参数初始化方法可以应用于其中的示例性系统架构。Referring further to FIG. 5 , FIG. 5 illustrates an exemplary system architecture in which the parameter initialization method of one embodiment of the present disclosure may be applied.
如图5所示,系统架构可以包括终端设备501,网络502,服务器503。网络502用以在终端设备501和服务器503之间提供通信链路的介质。网络502可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in Figure 5, the system architecture may include a terminal device 501, a network 502, and a server 503. The network 502 is a medium used to provide a communication link between the terminal device 501 and the server 503 . Network 502 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
终端设备501可以通过网络502与服务器503交互,以接收或发送消息等。终端设备501上可以安装有各种客户端应用,例如网页浏览器应用、搜索类应用、代码文件解析类应用。终端设备501中的客户端应用可以根据第二页面的代码文件和第一页面的代码文件中包含的注解信息,对第一页面的代码文件中的待初始化参数进行初始化。The terminal device 501 can interact with the server 503 through the network 502 to receive or send messages, etc. Various client applications can be installed on the terminal device 501, such as web browser applications, search applications, and code file parsing applications. The client application in the terminal device 501 can initialize the parameters to be initialized in the code file of the first page according to the code file of the second page and the annotation information contained in the code file of the first page.
终端设备501可以是硬件,也可以是软件。当终端设备501为硬件时,可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。当终端设备501为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务的软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。The terminal device 501 may be hardware or software. When the terminal device 501 is hardware, it can be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and so on. When the terminal device 501 is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or as a single software or software module. There are no specific limitations here.
服务器503可以是提供各种服务的服务器。例如服务器503可以为终端设备501提供第一页面的代码文件和第二页面的代码文件。Server 503 may be a server that provides various services. For example, the server 503 may provide the terminal device 501 with the code file of the first page and the code file of the second page.
在一些场景中,终端设备501可以从本地获取第一页面的代码文件和第二页面的代码文件。此时,图5所示的系统架构中可以不包括网络502和服务器503。In some scenarios, the terminal device 501 can obtain the code file of the first page and the code file of the second page locally. At this time, the network 502 and server 503 may not be included in the system architecture shown in FIG. 5 .
服务器503可以是硬件,也可以是软件。当服务器503为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器503为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务的多个软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。Server 503 may be hardware or software. When the server 503 is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or it can be implemented as a single server. When the server 503 is software, it may be implemented as multiple software or software modules (for example, multiple software or software modules used to provide distributed services), or it may be implemented as a single software or software module. There are no specific limitations here.
需要说明的是,本公开实施例所提供的参数初始化方法可以由终端设备501执行,相应地,参数初始化装置可以设置在终端设备501中。It should be noted that the parameter initialization method provided by the embodiment of the present disclosure can be executed by the terminal device 501, and accordingly, the parameter initialization device can be provided in the terminal device 501.
应该理解,图5中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the number of terminal devices, networks and servers in Figure 5 is only illustrative. Depending on implementation needs, there can be any number of end devices, networks, and servers.
下面参考图6,其示出了适于用来实现本公开实施例的电子设备(例如图5中的终端设备)的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring now to FIG. 6 , a schematic structural diagram of an electronic device (such as the terminal device in FIG. 5 ) suitable for implementing embodiments of the present disclosure is shown. Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablets), PMPs (Portable Multimedia Players), vehicle-mounted terminals (such as Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG. 6 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
如图6所示,电子设备可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6 , the electronic device may include a processing device (eg, central processing unit, graphics processor, etc.) 601 , which may be loaded into a random access memory according to a program stored in a read-only memory (ROM) 602 or from a storage device 608 (RAM) 603 to perform various appropriate actions and processes. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, ROM 602 and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 607 such as a computer; a storage device 608 including a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device to communicate wirelessly or wiredly with other devices to exchange data. Although FIG. 6 illustrates an electronic device having various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product including a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such embodiments, the computer program may be downloaded and installed from the network via communication device 609, or from storage device 608, or from ROM 602. When the computer program is executed by the processing device 601, the above functions defined in the method of the embodiment of the present disclosure are performed.
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmed read-only memory (EPROM or flash memory), fiber optics, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device . Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and server can communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium. (e.g., communications network) interconnection. Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or developed in the future network of.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:根据第一页面的代码文件中包含的预定义格式的注解信息,确定第一页面的代码文件中的待初始化参数;根据第二页面的代码文件中包含的预定义格式的注解信息,生成第二页面待传递至第一页面的待传递参数信息;根据待传递参数信息,对第一页面的代码文件中的待初始化参数进行初始化。The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: determines based on the annotation information in the predefined format contained in the code file of the first page. Parameters to be initialized in the code file of the first page; based on the predefined format annotation information contained in the code file of the second page, generate parameter information to be transferred to the first page on the second page; based on the parameter information to be transferred , initialize the parameters to be initialized in the code file of the first page.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages—such as "C" or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In situations involving remote computers, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as an Internet service provider through Internet connection).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,确定单元还可以被描述为“根据第一页面的代码文件中包含的预定义格式的注解信息,确定第一页面的代码文件中的待初始化参数”的单元。The units involved in the embodiments of the present disclosure can be implemented in software or hardware. Among them, the name of the unit does not constitute a limitation on the unit itself under certain circumstances. For example, determining the unit can also be described as "determining the first page based on the predefined format annotation information contained in the code file of the first page." "Parameters to be initialized" unit in the code file of the page.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of this disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, laptop disks, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a description of the preferred embodiments of the present disclosure and the technical principles applied. Those skilled in the art should understand that the disclosure scope involved in the present disclosure is not limited to technical solutions composed of specific combinations of the above technical features, but should also cover solutions composed of the above technical features or without departing from the above disclosed concept. Other technical solutions formed by any combination of equivalent features. For example, a technical solution is formed by replacing the above features with technical features with similar functions disclosed in this disclosure (but not limited to).
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。Furthermore, although operations are depicted in a specific order, this should not be understood as requiring that these operations be performed in the specific order shown or performed in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010062205.8A CN111309323B (en) | 2020-01-19 | 2020-01-19 | Parameter initialization method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010062205.8A CN111309323B (en) | 2020-01-19 | 2020-01-19 | Parameter initialization method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111309323A CN111309323A (en) | 2020-06-19 |
CN111309323B true CN111309323B (en) | 2023-12-12 |
Family
ID=71148881
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010062205.8A Active CN111309323B (en) | 2020-01-19 | 2020-01-19 | Parameter initialization method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111309323B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112579061B (en) * | 2020-12-17 | 2024-07-19 | 青岛以萨数据技术有限公司 | Method, device, system and storage medium for data transfer between android components |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20030069444A (en) * | 2002-02-20 | 2003-08-27 | 주식회사 벤처브레인 | System of multipage electronic bulletin board using annotation with web |
CN103377182A (en) * | 2012-04-27 | 2013-10-30 | 北大方正集团有限公司 | Streaming page number typesetting method and device |
CN103399777A (en) * | 2013-06-28 | 2013-11-20 | 华中科技大学 | Virtual instrument measuring system and method based on intelligent terminal |
CN106528261A (en) * | 2016-12-02 | 2017-03-22 | 武汉斗鱼网络科技有限公司 | Application page initialization compiling and controlling device and method |
CN106528124A (en) * | 2016-10-26 | 2017-03-22 | 广东广新信息产业股份有限公司 | Page template release method and system |
CN107729230A (en) * | 2017-09-18 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of WEB automatic test devices and method of testing based under control scheme |
CN110704102A (en) * | 2019-09-12 | 2020-01-17 | 北京字节跳动网络技术有限公司 | Page jump protocol interface document generation method, system, medium and electronic device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7148905B2 (en) * | 2003-12-19 | 2006-12-12 | Palo Alto Research Center Incorporated | Systems and method for annotating pages in a three-dimensional electronic document |
FR2868571B1 (en) * | 2004-04-05 | 2006-05-12 | Bull Sa Sa | RECOGNITION AND REFERENCING METHOD FOR ACCESSING DYNAMIC OBJECTS IN INTERNET NAVIGATION PAGES |
-
2020
- 2020-01-19 CN CN202010062205.8A patent/CN111309323B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20030069444A (en) * | 2002-02-20 | 2003-08-27 | 주식회사 벤처브레인 | System of multipage electronic bulletin board using annotation with web |
CN103377182A (en) * | 2012-04-27 | 2013-10-30 | 北大方正集团有限公司 | Streaming page number typesetting method and device |
CN103399777A (en) * | 2013-06-28 | 2013-11-20 | 华中科技大学 | Virtual instrument measuring system and method based on intelligent terminal |
CN106528124A (en) * | 2016-10-26 | 2017-03-22 | 广东广新信息产业股份有限公司 | Page template release method and system |
CN106528261A (en) * | 2016-12-02 | 2017-03-22 | 武汉斗鱼网络科技有限公司 | Application page initialization compiling and controlling device and method |
CN107729230A (en) * | 2017-09-18 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of WEB automatic test devices and method of testing based under control scheme |
CN110704102A (en) * | 2019-09-12 | 2020-01-17 | 北京字节跳动网络技术有限公司 | Page jump protocol interface document generation method, system, medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN111309323A (en) | 2020-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111338623B (en) | Method, device, medium and electronic equipment for developing user interface | |
CN111309304B (en) | Method, device, medium and electronic equipment for generating IDL file | |
CN110960855B (en) | Communication protocol code updating method and device, electronic equipment and storage medium | |
CN111338666A (en) | Method, device, medium and electronic equipment for realizing application program upgrading | |
CN111752644A (en) | Interface simulation method, device, equipment and storage medium | |
EP3846083A1 (en) | Method and apparatus for parallel processing of information | |
US12373183B2 (en) | Improving an application programming interface calling mechanism of a platform configured to provide data or software services | |
CN114038465B (en) | Voice processing method and device and electronic equipment | |
CN111324376B (en) | Function configuration method, device, electronic equipment and computer readable medium | |
CN112631590B (en) | Component library generation method, device, electronic equipment and computer readable medium | |
CN112416303B (en) | Software development kit hot repair method and device and electronic equipment | |
CN114428925A (en) | Page rendering method and device, electronic equipment and computer readable medium | |
CN110704050B (en) | Module initializing method and device, electronic equipment and computer readable storage medium | |
WO2021042714A1 (en) | Information generation method and apparatus | |
CN111309323B (en) | Parameter initialization method and device and electronic equipment | |
CN111240738B (en) | Document processing methods, devices, equipment and media | |
CN111797009B (en) | Method and device for detecting code compatibility and electronic equipment | |
CN111259291B (en) | View display method and device and electronic equipment | |
CN110750242B (en) | File deployment method, system, medium and electronic equipment | |
CN111258786B (en) | Decoupling method, device, terminal and storage medium in layered architecture | |
CN111399902B (en) | Client source file processing method and device, readable medium and electronic equipment | |
CN115328506A (en) | Application package generation method, loading method, device, medium and equipment | |
CN110825438B (en) | Method and device for simulating data processing of artificial intelligence chip | |
CN111694679B (en) | Message processing method and device and electronic equipment | |
CN112445517B (en) | Inlet file generation method, device, electronic equipment and computer readable 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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230508 Address after: Room 802, Information Building, 13 Linyin North Street, Pinggu District, Beijing, 101299 Applicant after: Beijing youzhuju Network Technology Co.,Ltd. Address before: No. 715, 7th floor, building 3, 52 Zhongguancun South Street, Haidian District, Beijing 100081 Applicant before: Beijing infinite light field technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |