CN113419725A - Data processing method and device for H5 page development - Google Patents

Data processing method and device for H5 page development Download PDF

Info

Publication number
CN113419725A
CN113419725A CN202110635306.4A CN202110635306A CN113419725A CN 113419725 A CN113419725 A CN 113419725A CN 202110635306 A CN202110635306 A CN 202110635306A CN 113419725 A CN113419725 A CN 113419725A
Authority
CN
China
Prior art keywords
page
container
data
development
requirement
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
Application number
CN202110635306.4A
Other languages
Chinese (zh)
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.)
Shanghai Shuhe Information Technology Co Ltd
Original Assignee
Shanghai Shuhe Information 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 Shanghai Shuhe Information Technology Co Ltd filed Critical Shanghai Shuhe Information Technology Co Ltd
Priority to CN202110635306.4A priority Critical patent/CN113419725A/en
Publication of CN113419725A publication Critical patent/CN113419725A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a data processing method and device for H5 page development. The method comprises the following steps: in the development process of the H5 page, an adaptive scheduling component is constructed based on demand data, an operation of injecting SDK corresponding to a container into a preset H5 page is executed according to the adaptive scheduling component, an environment single case is generated, a target H5 page containing the environment single case is obtained, the technical problem that in the prior art, the effect of using the unique SDK of different containers in the H5 page is poor is solved, the advantages of the H5 page crossing the containers are enhanced, and the maintenance cost is reduced.

Description

Data processing method and device for H5 page development
Technical Field
The application relates to the field of computers, in particular to a data processing method and device for H5 page development.
Background
The H5 page has the obvious advantages of cross-container property, but different containers have respective SDKs, and in the prior art, the capacity provided by the SDK corresponding to the corresponding container is obtained by adding extra code to inject the SDK into the corresponding container, but the problem of more redundant code and increased maintenance workload exists by adding the extra code.
Therefore, the technical problem of poor effect of using different container-unique SDKs for the H5 page exists in the prior art.
Disclosure of Invention
The main purpose of the present application is to provide a data processing method and apparatus for H5 page development, through adaptive adaptation of a component, perform an operation of injecting SDK corresponding to a container to a preset H5 page, generate an environment singleton, obtain a target H5 page including the environment singleton, solve the technical problem in the prior art that the effect of using unique SDK of different containers on an H5 page is poor, enhance the advantage of H5 page across containers, and reduce the maintenance cost.
In order to achieve the above object, the present application proposes a data processing method for H5 page development.
In a second aspect of the present application, a data processing apparatus for H5 page development is presented.
In a third aspect of the present application, a computer-readable storage medium is presented.
In a fourth aspect of the present application, an electronic device is presented.
In view of this, according to the first aspect of the present application, a data processing method for H5 page development is provided, including: acquiring development requirement data, wherein the development requirement data is data related to requirements generated by H5 page development; constructing an adaptive calling component based on the development requirement data; identifying the development requirement data to obtain a requirement container corresponding to the development requirement data; and performing SDK injection processing of the requirement container on a preset H5 page based on the adaptive calling component to obtain a target H5 page.
Further, based on the adaptive adaptation component, performing SDK injection processing of the requirement container on a preset H5 page to obtain a target H5 page, including: determining a current container of the preset H5 page based on a preset container identification rule; based on the current container, calling the SDK of the current container to generate an environment single case corresponding to the current container; and comparing the container corresponding to the environment single case with a requirement container, and if the requirement container has the corresponding environment single case, packaging the environment single case to the preset H5 page to obtain a target H5 page.
Further, determining a current container of the preset H5 page based on a preset container identification rule includes: based on a regular matching rule, acquiring user agent data of the current container; identifying the user agent data to obtain container identification data; and determining the current container based on the container identification data.
Further, invoking the SDK of the current container based on the current container to which the current container belongs, and generating the environment singleton corresponding to the current container to which the current container belongs includes: executing an initialization code operation based on the current belonged container; and calling the SDK of the current container to complete the SDK injection operation of the current container to generate the environment single case.
Further, after obtaining the target H5 page, the method further includes: acquiring application demand data, wherein the application demand data is demand data generated in an H5 page application process; identifying the application demand data to obtain a function container corresponding to the application demand data, wherein the function container is a container corresponding to SDK (software development kit) capacity required in the H5 page application process; matching an environment singleton corresponding to the function container, and initiating an API (application program interface) of the environment singleton; and obtaining result data corresponding to the application demand data based on the API of the environment singleton.
Further, constructing an adaptive adaptation component based on the development requirement data, comprising: identifying the development requirement data to acquire service requirement data corresponding to the development data; and constructing an adaptive scheduling component corresponding to the service demand data based on the service demand data.
According to a second aspect of the present application, there is provided a data processing apparatus for H5 page development, comprising: the data acquisition module is used for acquiring development requirement data, wherein the development requirement data is data related to requirements generated by H5 page development; the self-adaptive calling component module is used for constructing a self-adaptive calling component based on the development requirement data; the data processing module is used for identifying the development requirement data and obtaining a requirement container corresponding to the development requirement data; and the H5 page module is used for carrying out SDK injection processing of the requirement container on a preset H5 page based on the adaptive calling component so as to obtain a target H5 page.
Further, a data processing module comprising: the identification module is used for determining a current container of the preset H5 page based on a preset container identification rule; the environment single-case module is used for calling the SDK of the current container based on the current container to generate an environment single case corresponding to the current container; and the obtaining module is used for comparing the containers corresponding to the environment singletons with the requirement containers, and if the corresponding environment singletons exist in the requirement containers, packaging the environment singletons to the preset H5 page to obtain a target H5 page.
According to a third aspect of the present application, a computer-readable storage medium is proposed, which stores computer instructions for causing the computer to execute the data processing method for H5 page development as claimed above.
According to a fourth aspect of the present application, there is provided an electronic apparatus, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to cause the at least one processor to perform the data processing method for H5 page development described above.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the application, in the development process of an H5 page, an adaptive scheduling component is constructed based on demand data, an operation of injecting SDK corresponding to a container is executed on a preset H5 page according to the adaptive scheduling component, an environment single case is generated, a target H5 page containing the environment single case is obtained, the technical problem that in the prior art, different SDK unique to the container are used on the H5 page, the effect is poor is solved, the advantages of the H5 page crossing the containers are enhanced, and the maintenance cost is reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
FIG. 1 is a schematic flow chart of a data processing method for H5 page development provided in the present application;
FIG. 2 is a schematic flow chart of a data processing method for H5 page development provided in the present application;
FIG. 3 is a schematic flow chart of a data processing method for H5 page development according to the present application;
FIG. 4 is a schematic structural diagram of a data processing apparatus for H5 page development provided in the present application;
fig. 5 is a schematic structural diagram of another data processing apparatus for H5 page development provided in the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings. These terms are used primarily to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation.
Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meaning of these terms in this application will be understood by those of ordinary skill in the art as appropriate.
Furthermore, the terms "mounted," "disposed," "provided," "connected," and "sleeved" are to be construed broadly. For example, "connected" may be a fixed connection, a detachable connection, or a unitary construction; can be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements or components. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
Fig. 1 is a schematic flowchart of a data processing method for H5 page development provided in the present application, and as shown in fig. 1, the method includes the following steps:
s101: acquiring development requirement data;
the development requirement data is data related to requirements generated by H5 page development.
S102: constructing an adaptive calling component based on the development requirement data;
identifying the development requirement data to acquire service requirement data corresponding to the development data; and constructing an adaptive scheduling component corresponding to the service demand data based on the service demand data.
S103: identifying the development requirement data to obtain a requirement container corresponding to the development requirement data;
for example, the development requirement is 618 active H5 page, the 618 active H5 page requires sharing capability provided by the slightly trusted SDK, and the requirement container of the H5 page is slightly trusted.
S104: and performing SDK injection processing of the requirement container on a preset H5 page based on the adaptive calling component to obtain a target H5 page.
Fig. 2 is a schematic flowchart of a data processing method for H5 page development provided in the present application, and as shown in fig. 2, the method includes the following steps:
s201: determining a current container of the preset H5 page based on a preset container identification rule;
based on a regular matching rule, acquiring user agent data of the current container; identifying the user agent data to obtain container identification data; and determining the current container based on the container identification data.
In different containers, the attribute values of the user agent data user agent are different, for example, the WeChat user agent value will contain 'micro messenger', and other environments will not contain the character string identifier.
S202: based on the current container, calling the SDK of the current container to generate an environment single case corresponding to the current container;
executing an initialization code operation based on the current belonged container;
and calling the SDK of the current container to complete the SDK injection operation of the current container to generate the environment single case.
S203: and comparing the container corresponding to the environment single case with a requirement container, and if the requirement container has the corresponding environment single case, packaging the environment single case to the preset H5 page to obtain a target H5 page.
Fig. 3 is a schematic flowchart of a data processing method for H5 page development provided in the present application, and as shown in fig. 3, the method includes the following steps:
after the target H5 page is obtained through development, when the target H5 page is put into use, the method comprises the following steps:
s301: acquiring application demand data;
the application requirement data is requirement data generated in the H5 page application process.
S302: identifying the application demand data to obtain a function container corresponding to the application demand data;
s303: matching an environment singleton corresponding to the function container, and initiating an API (application program interface) of the environment singleton;
s304: and obtaining result data corresponding to the application demand data based on the API of the environment singleton.
For example, if the target H5 page is applied to an APP, the target H5 page is a 618 active H5 page, and the target active page needs to be shared, and an API of an environment singleton corresponding to the sharing capability is called to implement the sharing requirement.
Fig. 4 is a schematic structural diagram of a data processing apparatus for H5 page development, as shown in fig. 4, the apparatus includes:
the data acquisition module 41 is configured to acquire development requirement data, where the development requirement data is data related to requirements generated by H5 page development;
the adaptive calling component module 42 is used for constructing an adaptive calling component based on the development requirement data;
the data processing module 43 is configured to identify the development requirement data and obtain a requirement container corresponding to the development requirement data;
and the H5 page module 44, based on the adaptive adaptation component, performs SDK injection processing of the requirement container on a preset H5 page to obtain a target H5 page.
Fig. 5 is a schematic structural diagram of another data processing apparatus for H5 page development proposed in the present application, and as shown in fig. 5, the apparatus includes:
the identification module 51 is used for determining a current container of the preset H5 page based on a preset container identification rule;
the environment singleton module 52 is configured to call the SDK of the current container based on the current container to which the current container belongs, and generate an environment singleton corresponding to the current container to which the current container belongs;
an obtaining module 53, configured to compare the containers corresponding to the environment singletons with the requirement containers, and if there are all corresponding environment singletons in the requirement containers, package the environment singletons to the preset H5 page to obtain a target H5 page.
The specific manner of executing the operations of the units in the above embodiments has been described in detail in the embodiments related to the method, and will not be elaborated herein.
In summary, in the application, in the development process of the H5 page, the adaptive application component is constructed based on the demand data, and the operation of injecting the SDK corresponding to the container is performed on the preset H5 page according to the adaptive application component, so as to generate the environment singleton, and obtain the target H5 page including the environment singleton, thereby solving the technical problem in the prior art that the effect of using the unique SDKs of different containers on the H5 page is poor, enhancing the advantage of the H5 page across containers, and reducing the maintenance cost.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
It will be apparent to those skilled in the art that the various elements or steps of the present application described above may be implemented by a general purpose computing device, centralized on a single computing device or distributed across a network of multiple computing devices, or alternatively, may be implemented by program code executable by a computing device, such that the program code may be stored in a memory device and executed by a computing device, or may be implemented by individual integrated circuit modules, or by a plurality of modules or steps included in the program code as a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A data processing method for H5 page development is characterized by comprising the following steps:
acquiring development requirement data, wherein the development requirement data is data related to requirements generated by H5 page development;
constructing an adaptive calling component based on the development requirement data;
identifying the development requirement data to obtain a requirement container corresponding to the development requirement data;
and performing SDK injection processing of the requirement container on a preset H5 page based on the adaptive calling component to obtain a target H5 page.
2. The data processing method for H5 page development according to claim 1, wherein the processing of SDK injection of the requirement container to a preset H5 page to obtain a target H5 page based on the adaptive adaptation calling component comprises:
determining a current container of the preset H5 page based on a preset container identification rule;
based on the current container, calling the SDK of the current container to generate an environment single case corresponding to the current container;
and comparing the container corresponding to the environment single case with a requirement container, and if the requirement container has the corresponding environment single case, packaging the environment single case to the preset H5 page to obtain a target H5 page.
3. The data processing method for H5 page development according to claim 2, wherein the determining the current belonging container of the preset H5 page based on a preset container identification rule comprises:
based on a regular matching rule, acquiring user agent data of the current container;
identifying the user agent data to obtain container identification data;
and determining the current container based on the container identification data.
4. The data processing method for H5 page development according to claim 2, wherein the step of calling the SDK of the current container based on the current container to which the current container belongs and generating the environment singleton corresponding to the current container to which the current container belongs comprises:
executing an initialization code operation based on the current belonged container;
and calling the SDK of the current container to complete the SDK injection operation of the current container to generate the environment single case.
5. The data processing method for H5 page development according to claim 1 or 2, wherein after obtaining the target H5 page, further comprising:
acquiring application demand data, wherein the application demand data is demand data generated in an H5 page application process;
identifying the application demand data to obtain a function container corresponding to the application demand data, wherein the function container is a container corresponding to SDK (software development kit) capacity required in the H5 page application process;
matching an environment singleton corresponding to the function container, and initiating an API (application program interface) of the environment singleton;
and obtaining result data corresponding to the application demand data based on the API of the environment singleton.
6. The data processing method of claim 1, wherein constructing an adaptive adaptation component based on the development requirement data comprises:
identifying the development requirement data to acquire service requirement data corresponding to the development data;
and constructing an adaptive scheduling component corresponding to the service demand data based on the service demand data.
7. A data processing apparatus for H5 page development, comprising:
the data acquisition module is used for acquiring development requirement data, wherein the development requirement data is data related to requirements generated by H5 page development;
the self-adaptive calling component module is used for constructing a self-adaptive calling component based on the development requirement data;
the data processing module is used for identifying the development requirement data and obtaining a requirement container corresponding to the development requirement data;
and the H5 page module is used for carrying out SDK injection processing of the requirement container on a preset H5 page based on the adaptive calling component so as to obtain a target H5 page.
8. The data processing apparatus of claim 7, wherein the data processing module comprises:
the identification module is used for determining a current container of the preset H5 page based on a preset container identification rule;
the environment single-case module is used for calling the SDK of the current container based on the current container to generate an environment single case corresponding to the current container;
and the obtaining module is used for comparing the containers corresponding to the environment singletons with the requirement containers, and if the corresponding environment singletons exist in the requirement containers, packaging the environment singletons to the preset H5 page to obtain a target H5 page.
9. A computer-readable storage medium storing computer instructions for causing a computer to perform the data processing method for H5 page development of any one of claims 1-6.
10. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to cause the at least one processor to perform the data processing method for H5 page development of any one of claims 1-6.
CN202110635306.4A 2021-06-07 2021-06-07 Data processing method and device for H5 page development Pending CN113419725A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110635306.4A CN113419725A (en) 2021-06-07 2021-06-07 Data processing method and device for H5 page development

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110635306.4A CN113419725A (en) 2021-06-07 2021-06-07 Data processing method and device for H5 page development

Publications (1)

Publication Number Publication Date
CN113419725A true CN113419725A (en) 2021-09-21

Family

ID=77787966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110635306.4A Pending CN113419725A (en) 2021-06-07 2021-06-07 Data processing method and device for H5 page development

Country Status (1)

Country Link
CN (1) CN113419725A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110532064A (en) * 2019-08-27 2019-12-03 北京百度网讯科技有限公司 Method, apparatus, equipment and the storage medium of computing resource are provided
WO2020233090A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Application configuration method, apparatus and device based on h5 page, and storage medium
CN112637116A (en) * 2020-10-30 2021-04-09 彩讯科技股份有限公司 Page-based terminal capability calling method, device, terminal and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020233090A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Application configuration method, apparatus and device based on h5 page, and storage medium
CN110532064A (en) * 2019-08-27 2019-12-03 北京百度网讯科技有限公司 Method, apparatus, equipment and the storage medium of computing resource are provided
CN112637116A (en) * 2020-10-30 2021-04-09 彩讯科技股份有限公司 Page-based terminal capability calling method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN102147746B (en) Dynamic thread pool management system and method
CN108462760A (en) Electronic device, cluster access domain name automatic generation method and storage medium
US20220391260A1 (en) Method and Apparatus for Creating Container, Device, Medium, and Program Product
US10693816B2 (en) Communication methods and systems, electronic devices, and computer clusters
CN103995748B (en) The task processing method and system of intelligent terminal
CN109376011B (en) Method and device for managing resources in virtualization system
CN106547580B (en) Method and device for hooking function, mobile terminal and storage medium
CN108958881A (en) Data processing method, device and computer readable storage medium
CN113849312A (en) Data processing task allocation method and device, electronic equipment and storage medium
CN109684073A (en) Electronic device, cloud service resource allocation methods and storage medium
CN103067486B (en) Based on the large data processing method of PaaS platform
CN114911598A (en) Task scheduling method, device, equipment and storage medium
CN105975277A (en) Template-based mixed cloud elastic telescoping set building method
CN109561134B (en) Electronic device, distributed cluster service distribution method and storage medium
CN115017030A (en) Resource allocation method, device, electronic equipment and storage medium
CN109862399A (en) It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information
CN113419725A (en) Data processing method and device for H5 page development
CN111813529A (en) Data processing method and device, electronic equipment and storage medium
CN106528733A (en) Webpage display method and apparatus
CN110175808A (en) A kind of order management, querying method, device, equipment and medium
CN110032499A (en) Analysis method, device, server and the readable storage medium storing program for executing that Page user is lost
CN115794386A (en) Resource calling method and device of virtual machine and storage medium
CN112306675B (en) Data processing method, related device and computer readable storage medium
CN110597492B (en) Module calling method and related products
CN114003238A (en) Transcoding card-based container deployment method, device, 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