CN113448558A - Method for component generation - Google Patents
Method for component generation Download PDFInfo
- Publication number
- CN113448558A CN113448558A CN202110769417.4A CN202110769417A CN113448558A CN 113448558 A CN113448558 A CN 113448558A CN 202110769417 A CN202110769417 A CN 202110769417A CN 113448558 A CN113448558 A CN 113448558A
- Authority
- CN
- China
- Prior art keywords
- component
- configuration file
- application program
- generating
- parameter
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 230000006870 function Effects 0.000 claims description 6
- 230000006978 adaptation Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/315—Object-oriented languages
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to a method for generating a component, wherein in an application program, component information is initialized into the application program through a language channel carried by a browser when the component is generated, so that the speed of generating the component is increased, the time for opening the application program is reduced, and the experience degree of a user is improved. The method comprises the following steps: acquiring a configuration file through a language channel, wherein the configuration file comprises: a location parameter, a service parameter and an icon parameter; and generating the component according to the configuration file.
Description
Technical Field
The invention relates to the field of communication and computer processing, in particular to a component generation method.
Background
With the development of internet technology, mobile devices are now very popular, mobile applications are also in many varieties, in an application program, various components used by the application are loaded, a user can implement corresponding functions through the various components, and when the application program is started, various components in the application program are loaded first, that is, an initialization process of the application program. However, the inventor finds that the generation method of the components in the existing application program has the following problems:
when the application program loads the component, a large amount of time is occupied, the user stays too long in the starting interface, the time for the user to use the application program is wasted, and the user experience is not facilitated.
Disclosure of Invention
In order to overcome the problems in the related art, the invention provides a component generation method which is used in an application program, when the component is generated, the component information is initialized into the application program through a language channel carried by a browser, so that the component generation speed is increased, the time for opening the application program is reduced, and the user experience is improved.
The invention provides a method for generating a component, which is used for an application program and comprises the following steps:
acquiring a configuration file through a language channel, wherein the configuration file comprises: a location parameter, a service parameter and an icon parameter;
and generating the component according to the configuration file.
Further, the obtaining the configuration file through the language channel further includes:
loading a browser page;
and acquiring the configuration file through a language channel in the browser page.
Further, the method further comprises:
initializing the language channel.
Further, the method further comprises:
determining the position of the component according to the position parameter;
determining the component function according to the service parameter;
and determining the display form of the component according to the icon parameters.
When the components are generated, the component parameters are initialized into the application program through the language channel of the browser, the component generation speed is increased, the time for opening the application program is reduced, and therefore the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart of a method for generating a component according to an embodiment of the present invention.
Fig. 2 is a flowchart of a method for generating a component according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
As shown in fig. 1, an embodiment of the present invention provides a method for generating a component, including:
And 102, generating a component according to the configuration file.
The invention provides a component generation method, which is characterized in that a corresponding configuration file is obtained through a component identifier to generate a corresponding component, and the component generation speed is improved, so that the experience of a user when the user uses an application program is improved.
In one embodiment, obtaining the configuration file through the language channel includes:
loading a browser page;
and acquiring the configuration file through a language channel in the browser page.
The configuration file is obtained through the language channel in the browser page, the speed of obtaining the component identification is further improved, and therefore the experience of a user when the user uses the application program is improved.
In one embodiment, the method further comprises:
a language channel is initialized.
By initializing the language channel in the application starting, the application program has a language environment, the component information is conveniently loaded, and the component generating speed is further improved.
Further, the method further comprises:
determining the position of the component according to the position parameter;
determining the function of the component according to the service parameters;
and determining the display form of the component according to the icon parameters.
The method comprises the steps of obtaining various parameters of the component through configuration parameters, and generating the component through the various parameters of the component, so that the component generating speed is improved.
As shown in fig. 2, an embodiment of the present invention provides a method for generating a component, which includes the following specific steps:
And step 204, determining the position of the component according to the position parameter.
And step 206, determining the display form of the component according to the icon parameters.
The invention provides a component generation method, which initializes component parameters into an application program when generating components through a language channel carried by a browser, improves the component generation speed, and reduces the time for opening the application program, thereby improving the user experience.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (4)
1. A method of component generation for an application, comprising:
acquiring a configuration file through a language channel, wherein the configuration file comprises: a location parameter, a service parameter and an icon parameter;
and generating the component according to the configuration file.
2. The method of claim 1, wherein the obtaining a configuration file via a language channel further comprises:
loading a browser page;
and acquiring the configuration file through a language channel in the browser page.
3. The method of claim 1, further comprising:
initializing the language channel.
4. The method of claim 1, further comprising:
determining the position of the component according to the position parameter;
determining the component function according to the service parameter;
and determining the display form of the component according to the icon parameters.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110769417.4A CN113448558A (en) | 2021-07-07 | 2021-07-07 | Method for component generation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110769417.4A CN113448558A (en) | 2021-07-07 | 2021-07-07 | Method for component generation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113448558A true CN113448558A (en) | 2021-09-28 |
Family
ID=77815581
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110769417.4A Pending CN113448558A (en) | 2021-07-07 | 2021-07-07 | Method for component generation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113448558A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103412748A (en) * | 2013-07-25 | 2013-11-27 | 深圳Tcl新技术有限公司 | Display control method, device and system for user interface of embedded platform |
CN104182605A (en) * | 2013-05-28 | 2014-12-03 | 上海联影医疗科技有限公司 | Configuration method and device for workflow in medical image system |
CN104424002A (en) * | 2013-09-10 | 2015-03-18 | 中国科学院声学研究所 | Dynamic component loading method and system based on plug-in mechanism |
CN107526605A (en) * | 2016-06-20 | 2017-12-29 | 腾讯科技(深圳)有限公司 | The method and apparatus for realizing application program loading serviced component |
CN110262842A (en) * | 2018-03-12 | 2019-09-20 | 福建天泉教育科技有限公司 | A kind of method and terminal starting component |
CN112799660A (en) * | 2021-01-21 | 2021-05-14 | 三一重工股份有限公司 | Application program generation method and device |
CN112882764A (en) * | 2021-01-20 | 2021-06-01 | 网易(杭州)网络有限公司 | Component loading method and device, computer equipment and storage medium |
-
2021
- 2021-07-07 CN CN202110769417.4A patent/CN113448558A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104182605A (en) * | 2013-05-28 | 2014-12-03 | 上海联影医疗科技有限公司 | Configuration method and device for workflow in medical image system |
CN103412748A (en) * | 2013-07-25 | 2013-11-27 | 深圳Tcl新技术有限公司 | Display control method, device and system for user interface of embedded platform |
CN104424002A (en) * | 2013-09-10 | 2015-03-18 | 中国科学院声学研究所 | Dynamic component loading method and system based on plug-in mechanism |
CN107526605A (en) * | 2016-06-20 | 2017-12-29 | 腾讯科技(深圳)有限公司 | The method and apparatus for realizing application program loading serviced component |
CN110262842A (en) * | 2018-03-12 | 2019-09-20 | 福建天泉教育科技有限公司 | A kind of method and terminal starting component |
CN112882764A (en) * | 2021-01-20 | 2021-06-01 | 网易(杭州)网络有限公司 | Component loading method and device, computer equipment and storage medium |
CN112799660A (en) * | 2021-01-21 | 2021-05-14 | 三一重工股份有限公司 | Application program generation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109542399B (en) | Software development method and device, terminal equipment and computer readable storage medium | |
CN105138226B (en) | A kind of desktop management method and apparatus of intelligent terminal | |
CN104834437B (en) | A kind of split screen operating method and terminal | |
CN107807841B (en) | Server simulation method, device, equipment and readable storage medium | |
CN112612214B (en) | Method and system for generating functional interface and electronic equipment | |
CN109788029A (en) | Gray scale call method, device, terminal and the readable storage medium storing program for executing of micro services | |
CN111414562A (en) | Application program page API interface preposition method and device and storage medium | |
CN106486118B (en) | Voice control method and device for application | |
EP2728468A1 (en) | Method for skin-changing for third-party application | |
CN104811485A (en) | Resource sharing method | |
CN113536174A (en) | Interface loading method, device and equipment | |
CN109766123B (en) | Application program packaging method and device | |
CN105095253A (en) | Webpage display method and webpage display device | |
CN104461605A (en) | Application downloading method and electronic devices | |
CN113448558A (en) | Method for component generation | |
CN105700872A (en) | Control method and system for upgrading of application of intelligent terminal | |
CN111049735B (en) | Group head portrait display method, device, equipment and storage medium | |
US9471299B1 (en) | Updating code within an application | |
CN108156534B (en) | Method and device for generating demonstration application and computer readable storage medium | |
CN111127601A (en) | Animation switching method and device, electronic equipment and storage medium | |
CN107621939B (en) | Application optimization method and device | |
US20180088930A1 (en) | Updating code within an application | |
CN111597476B (en) | Image processing method and device | |
CN107247600A (en) | User interface creating method | |
CN112685006A (en) | Process management method and device, electronic equipment and storage 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 |