CN109445840B - Dynamic updating method and device of webpage, electronic equipment and storage medium - Google Patents
Dynamic updating method and device of webpage, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109445840B CN109445840B CN201811317888.6A CN201811317888A CN109445840B CN 109445840 B CN109445840 B CN 109445840B CN 201811317888 A CN201811317888 A CN 201811317888A CN 109445840 B CN109445840 B CN 109445840B
- Authority
- CN
- China
- Prior art keywords
- webpage
- code
- update
- target
- control code
- 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
Images
Classifications
-
- 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/72—Code refactoring
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/658—Incremental updates; Differential updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure discloses a method and a device for dynamically updating a webpage, electronic equipment and a storage medium. Wherein, the method comprises the following steps: the method comprises the steps that a webpage control code sends an update code acquisition request corresponding to a target webpage, wherein the webpage control code is pre-installed in the target webpage; the webpage control code receives an update code matched with the update code acquisition request, wherein the update code comprises: detecting codes corresponding to at least one webpage operation and executing codes corresponding to a response mode of the webpage operation; the webpage control code installs an update code in the target webpage; and when the webpage operation is detected by the detection code, the webpage control code executes the execution code matched with the detected webpage operation. The embodiment of the disclosure solves the problem that in the prior art, a large amount of codes need to be manually added to the webpage, and the working efficiency of developers is reduced, and can realize automatic installation of the codes to the webpage and improve the code installation efficiency.
Description
Technical Field
The present disclosure relates to web page design technologies, and in particular, to a method and an apparatus for dynamically updating a web page, an electronic device, and a storage medium.
Background
The web page design is to plan the functions of the web site according to the information (including products, services, ideas and cultures) that the enterprise wants to deliver to the browser, and then to beautify the page design. Web page designs generally fall into three broad categories: functional web page design, image web page design and information web page design. The purpose of designing web pages is different, and different web page plans and design schemes should be selected.
In the prior art, when a user designs a webpage, a large amount of codes need to be written according to functional requirements, and the large amount of codes are manually added to the webpage. The capability requirements for developers are high, and the manual addition process can reduce the working efficiency of the developers.
Disclosure of Invention
The disclosure provides a method and a device for dynamically updating a webpage, an electronic device and a storage medium, so as to achieve the technical effects of automatically installing a code to the webpage and improving the code installation efficiency.
In a first aspect, an embodiment of the present disclosure provides a method for dynamically updating a web page, including:
the method comprises the steps that a webpage control code sends an update code acquisition request corresponding to a target webpage, wherein the webpage control code is pre-installed in the target webpage;
the webpage control code receives an update code matched with the update code acquisition request, wherein the update code comprises: detecting codes corresponding to at least one webpage operation and executing codes corresponding to a response mode of the webpage operation;
the webpage control code installs an update code in the target webpage;
and when the webpage operation is detected by the detection code, the webpage control code executes the execution code matched with the detected webpage operation.
In the above scheme, optionally, the webpage control code is obtained by sending a code installation request to the cloud platform server by the user; the updating code is generated by the cloud platform server according to the webpage function configuration information provided by the user;
the method for sending the update code acquisition request corresponding to the target webpage by the webpage control code specifically comprises the following steps:
and the webpage control code sends an update code acquisition request corresponding to the target webpage to the cloud platform server.
In a second aspect, an embodiment of the present disclosure further provides a method for dynamically updating a web page, including:
the cloud platform server feeds the webpage control code back to the user according to a code installation request sent by the user, wherein the webpage control code is used for indicating the user to install the webpage control code in a target webpage which needs to be dynamically updated;
the cloud platform server generates a matched update code according to webpage function configuration information which is sent by a user and corresponds to a target webpage, wherein the update code comprises: detecting codes corresponding to at least one webpage operation and executing codes corresponding to a response mode of the webpage operation;
the method comprises the steps that a cloud platform server feeds an update code back to a webpage control code when detecting an update code acquisition request sent by the webpage control code installed in a target webpage;
and the updating code is used for installing the webpage control code in the target webpage, and executing an execution code matched with the detected webpage operation when the webpage operation is detected through the detection code.
In the foregoing solution, optionally, the webpage function configuration information includes: at least one webpage operation and a response mode of the at least one webpage operation;
the cloud platform server generates a matched update code according to the webpage function configuration information which is sent by the user and corresponds to the target webpage, and the method comprises the following steps:
the cloud platform server generates a detection code corresponding to at least one webpage operation according to the at least one webpage operation;
and the cloud platform server generates an execution code corresponding to the response mode of the webpage operation according to the response mode.
In the foregoing scheme, optionally, after generating the matched update code, the method further includes:
and the cloud platform server stores the detection code corresponding to at least one webpage operation and the execution code corresponding to the response mode of the webpage operation into a database as the update code matched with the target webpage.
In the foregoing scheme, optionally, when detecting an update code acquisition request sent by a web page control code installed in a target web page, the cloud platform server feeds back the update code to the web page control code and feeds back the update code to the web page control code, including:
the method comprises the steps that when an update code acquisition request sent by a webpage control code installed in a target webpage is detected, the cloud platform server acquires an update code matched with the target webpage from a database according to the update code acquisition request;
and the cloud platform server feeds the update code back to the webpage control code.
In a third aspect, an embodiment of the present disclosure further provides a device for dynamically updating a web page, including:
the request sending module is used for sending an update code acquisition request corresponding to a target webpage, wherein the webpage control code is pre-installed in the target webpage;
a code receiving module, configured to receive an update code matched with the update code acquisition request, where the update code includes: detecting codes corresponding to at least one webpage operation and executing codes corresponding to a response mode of the webpage operation;
the code installation module is used for installing an update code in the target webpage;
and the code execution module is used for executing the execution code matched with the detected webpage operation when the webpage operation is detected by the detection code.
In the above scheme, optionally, the webpage control code is obtained by sending a code installation request to the cloud platform server by the user; the updating code is generated by the cloud platform server according to the webpage function configuration information provided by the user;
the request sending module specifically comprises:
and the request sending unit is used for sending an update code acquisition request corresponding to the target webpage to the cloud platform server.
In a fourth aspect, an embodiment of the present disclosure further provides a device for dynamically updating a web page, including:
the first code feedback module is used for feeding the webpage control code back to the user according to a code installation request sent by the user, and the webpage control code is used for indicating the user to install the webpage control code in a target webpage which needs to be dynamically updated;
the code generation module is used for generating a matched update code according to the webpage function configuration information which is sent by the user and corresponds to the target webpage, and the update code comprises: detecting codes corresponding to at least one webpage operation and executing codes corresponding to a response mode of the webpage operation;
the second code feedback module is used for feeding the update code back to the webpage control code when detecting the update code acquisition request sent by the webpage control code installed in the target webpage;
and the updating code is used for installing the webpage control code in the target webpage, and executing an execution code matched with the detected webpage operation when the webpage operation is detected through the detection code.
In the foregoing solution, optionally, the webpage function configuration information includes: at least one webpage operation and a response mode of the at least one webpage operation;
the code generation module comprises:
the first generating unit is used for generating a detection code corresponding to at least one webpage operation according to the at least one webpage operation;
and the second generating unit is used for generating an execution code corresponding to the response mode of the webpage operation according to the response mode.
In the foregoing scheme, optionally, the method further includes:
and the code storage module is used for storing the detection code corresponding to at least one webpage operation and the execution code corresponding to the response mode of the webpage operation into a database as the update code matched with the target webpage.
In the foregoing solution, optionally, the second code feedback module includes:
the code acquisition unit is used for acquiring an update code matched with a target webpage in a database according to an update code acquisition request when the update code acquisition request sent by a webpage control code installed in the target webpage is detected;
and the code feedback unit is used for feeding the updating code back to the webpage control code.
In a fifth aspect, an embodiment of the present disclosure further provides an electronic device, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for dynamically updating a web page according to the embodiment of the present disclosure.
In a sixth aspect, the disclosed embodiments also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for dynamically updating a web page according to the disclosed embodiments.
The embodiment of the present disclosure sends an update code acquisition request corresponding to a target webpage through a webpage control code preinstalled in the target webpage, and receives an update code matched with the update code acquisition request, where the update code includes: the method comprises the steps of detecting a webpage operation, and executing a code corresponding to a response mode of the webpage operation, wherein the detection code corresponds to at least one webpage operation, then installing an update code in a target webpage by a webpage control code, and executing the execution code matched with the detected webpage operation when the webpage operation is detected by the detection code.
Drawings
Fig. 1 is a flowchart of a method for dynamically updating a web page according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a method for dynamically updating a web page according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a method for dynamically updating a web page according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a method for dynamically updating a web page according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a device for dynamically updating a web page according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a device for dynamically updating a web page according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
Fig. 1 is a flowchart of a method for dynamically updating a web page according to an embodiment of the present disclosure, where the embodiment is applicable to a situation of dynamically updating a web page, and the method may be executed by a device for dynamically updating a web page, where the device may be implemented in a software and/or hardware manner, and the device may be configured in an electronic device, for example, a terminal device or a server. As shown in fig. 1, the method may include the steps of:
The webpage control code is used for dynamically updating the target webpage. The webpage control code controls the target webpage and dynamically updates the target webpage. The update code acquisition request is used for requesting to acquire the update code corresponding to the target webpage.
Optionally, the cloud platform server generates a web page control code. The user can send a code installation request to the cloud platform server through the client, request to acquire the webpage control code, and paste the acquired webpage control code to a preset position of the target webpage so as to install the webpage control code in the target webpage. After installation on the target web page, the web page control code may send an update code acquisition request corresponding to the target web page. The update code acquisition request is used for requesting to acquire the update code corresponding to the target webpage.
In a specific example, the web page control code may send an update code acquisition request corresponding to the target web page to the cloud platform server, requesting to acquire the update code corresponding to the target web page stored in the cloud platform server.
In another specific example, the web page control code may send an update code acquisition request corresponding to the target web page to the client corresponding to the user, request the user to input the update code corresponding to the target web page, and acquire the update code corresponding to the target web page input by the user.
The update code is code for implementing the functional requirements of the user for the target web page. The functional requirements may be that the target web page responds according to a response mode matched with the detected web page operation when the web page operation is detected. For example, the web page operation may be a click operation. The response mode is a pop-up dialog box. The user requires to dynamically update the target webpage, and the target webpage responds in a response mode of popping up a dialog box when the target webpage detects the click operation.
102, the webpage control code receives an update code matched with the update code acquisition request, wherein the update code comprises: the system comprises detection code corresponding to at least one webpage operation and execution code corresponding to a response mode of the webpage operation.
Wherein, the update code includes: the system comprises detection code corresponding to at least one webpage operation and execution code corresponding to a response mode of the webpage operation. The detection code is used for detecting at least one webpage operation. The executing code is used for realizing a response mode of the webpage operation. For example, the detection code is used to detect a click operation. The code is executed to enable popping up the dialog box in the target web page.
In a specific example, the webpage control code receives an update code matched with the update code acquisition request fed back by the cloud platform server, that is, an update code corresponding to the target webpage. The update code may be generated by the cloud platform server according to the webpage function configuration information provided by the user.
Optionally, the web page function configuration information may include: at least one web page operation and a response mode of the at least one web page operation. The cloud platform server generates a detection code corresponding to at least one webpage operation according to the at least one webpage operation, and generates an execution code corresponding to a response mode of the webpage operation according to the response mode.
Optionally, the web page function configuration information may include: the system comprises detection code corresponding to at least one webpage operation and execution code corresponding to a response mode of the webpage operation. And the cloud platform server directly stores the detection codes and the corresponding execution codes in the webpage function configuration information as the update codes corresponding to the target webpage.
In another specific example, the web page control code receives the update code matched with the update code acquisition request input by the user through the client, namely the update code corresponding to the target web page.
And 103, installing an updating code in the target webpage by the webpage control code.
The webpage control code installs the update code to the target webpage, and the detection code corresponding to at least one webpage operation and included in the update code starts to detect the at least one webpage operation.
And 104, when the webpage operation is detected by the webpage control code through the detection code, executing an execution code matched with the detected webpage operation.
When the webpage operation is detected by the webpage control code through the detection code, the execution code matched with the detected webpage operation is executed, and the response mode of the webpage operation is realized. For example, when a click operation is detected, a dialog box pops up in the target web page.
According to the technical scheme of the embodiment, the webpage control code pre-installed in the target webpage sends the update code acquisition request corresponding to the target webpage and receives the update code matched with the update code acquisition request, wherein the update code comprises: the method comprises the steps of detecting a webpage operation, and executing a code corresponding to a response mode of the webpage operation, wherein the detection code corresponds to at least one webpage operation, then installing an update code in a target webpage by a webpage control code, and executing the execution code matched with the detected webpage operation when the webpage operation is detected by the detection code.
Fig. 2 is a flowchart of a method for dynamically updating a web page according to an embodiment of the present disclosure, where this embodiment may be combined with various alternatives in one or more embodiments described above, and in this embodiment, a web page control code may be obtained by a user sending a code installation request to a cloud platform server; the update code may be generated by the cloud platform server according to the webpage function configuration information provided by the user.
And, the sending, by the web page control code, the update code acquisition request corresponding to the target web page may specifically include: and the webpage control code sends an update code acquisition request corresponding to the target webpage to the cloud platform server.
As shown in fig. 2, the method may include the steps of:
The cloud platform server generates a webpage control code. The user can send a code installation request to the cloud platform server through the client, request to acquire the webpage control code, and paste the acquired webpage control code to a preset position of the target webpage so as to install the webpage control code in the target webpage. After installation on the target web page, the web page control code may send an update code acquisition request corresponding to the target web page. The update code acquisition request is used for requesting to acquire the update code corresponding to the target webpage.
The webpage control code receives an update code matched with the update code acquisition request fed back by the cloud platform server, namely an update code corresponding to the target webpage. The update code may be generated by the cloud platform server according to the webpage function configuration information provided by the user.
And step 204, when the webpage operation is detected by the webpage control code through the detection code, executing an execution code matched with the detected webpage operation.
According to the technical scheme of the embodiment, the user sends the webpage control code acquired by the code installation request to the cloud platform server to send the update code acquisition request corresponding to the target webpage to the cloud platform server, the update code generated by the cloud platform server according to the webpage function configuration information provided by the user is requested to be acquired, the code can be automatically installed to the webpage according to the webpage function configuration information provided by the user, and the code installation efficiency is improved.
Fig. 3 is a flowchart of a method for dynamically updating a web page according to an embodiment of the present disclosure, where the embodiment is applicable to a situation of dynamically updating a web page, and the method may be executed by a device for dynamically updating a web page, where the device may be implemented in a software and/or hardware manner, and the device may be configured in an electronic device, for example, a terminal device or a server. As shown in fig. 3, the method may include the steps of:
step 301, the cloud platform server feeds back the webpage control code to the user according to a code installation request sent by the user, wherein the webpage control code is used for indicating the user to install the webpage control code in a target webpage which needs to be dynamically updated.
The webpage control code is used for generating a code for dynamically updating the target webpage for the cloud platform server. The webpage control code controls the target webpage and dynamically updates the target webpage. The user can send a code installation request to the cloud platform server through the client, request to acquire the webpage control code, and paste the acquired webpage control code to a preset position of the target webpage so as to install the webpage control code in the target webpage.
Optionally, the cloud platform server may detect whether the webpage control code is correctly installed to the target webpage. When the webpage control code is correctly installed to the target webpage, continuing to perform the next operation of dynamic updating; and when the webpage control code is not correctly installed to the target webpage, the next operation of dynamic updating is not carried out, and prompt information is sent to the client corresponding to the user. The prompt message is used to prompt the user to: if the webpage control code is not correctly installed in the target webpage, the webpage control code can be reinstalled in the target webpage which needs to be dynamically updated.
The user can send webpage function configuration information corresponding to the target webpage to the cloud platform server through the client.
Optionally, the web page function configuration information may include: at least one web page operation and a response mode of the at least one web page operation. The cloud platform server generates a detection code corresponding to at least one webpage operation according to the at least one webpage operation, and generates an execution code corresponding to a response mode of the webpage operation according to the response mode. For example, the web page operation may be a click operation. The response mode is a pop-up dialog box. The detection code is a code for detecting a click operation. The execution code is code for popping up a dialog box in the target web page.
Optionally, the web page function configuration information may include: the system comprises detection code corresponding to at least one webpage operation and execution code corresponding to a response mode of the webpage operation. And the cloud platform server directly stores the detection codes and the corresponding execution codes in the webpage function configuration information as the update codes corresponding to the target webpage. For example, the detection code is a code for detecting a click operation. The execution code is used for carrying out data statistics in the target webpage.
After the update code is installed in the target webpage, the webpage control code may send an update code acquisition request corresponding to the target webpage. The update code acquisition request is used for requesting to acquire the update code corresponding to the target webpage. The cloud platform server feeds the update code back to the webpage control code when detecting the update code acquisition request sent by the webpage control code installed in the target webpage. The webpage control code receives the updating code matched with the updating code obtaining request, and the updating code is installed in the target webpage. And when the webpage operation is detected by the detection code, the webpage control code executes the execution code matched with the detected webpage operation.
According to the technical scheme of the embodiment, the cloud platform server feeds the webpage control code back to the user according to the code installation request sent by the user, the webpage control code is used for indicating the user to install the webpage control code in the target webpage needing dynamic updating, then the matched updating code is generated according to the webpage function configuration information which is sent by the user and corresponds to the target webpage, and the updating code comprises: the method comprises the steps of detecting a detection code corresponding to at least one webpage operation and an execution code corresponding to a response mode of the webpage operation, feeding back an update code to the webpage control code when an update code acquisition request sent by a webpage control code installed in a target webpage is detected, wherein the update code is used for installing the webpage control code in the target webpage, executing the execution code matched with the detected webpage operation when the webpage operation is detected through the detection code, generating a code for dynamically updating the webpage according to webpage function configuration information provided by a user, and automatically installing the code to the webpage, so that the code installation efficiency is improved.
Fig. 4 is a flowchart of a method for dynamically updating a web page according to an embodiment of the present disclosure, where this embodiment may be combined with various alternatives in one or more of the foregoing embodiments, and in this embodiment, the web page function configuration information may include: at least one web page operation and a response mode of the at least one web page operation.
And the cloud platform server generates a matched update code according to the webpage function configuration information corresponding to the target webpage sent by the user, and the method may include: the cloud platform server generates a detection code corresponding to at least one webpage operation according to the at least one webpage operation; and the cloud platform server generates an execution code corresponding to the response mode of the webpage operation according to the response mode.
And, after generating the matching update code, may further include: and the cloud platform server stores the detection code corresponding to at least one webpage operation and the execution code corresponding to the response mode of the webpage operation into a database as the update code matched with the target webpage.
And when detecting an update code acquisition request sent by a webpage control code installed in a target webpage, the cloud platform server feeds the update code back to the webpage control code, which may include: when detecting an update code acquisition request sent by a webpage control code installed in a target webpage, a cloud platform server acquires an update code matched with the target webpage from a database according to the update code acquisition request; and the cloud platform server feeds the update code back to the webpage control code.
As shown in fig. 4, the method may include the steps of:
The web page function configuration information may include: at least one web page operation and a response mode of the at least one web page operation. For example, the web page operation may be a click operation. The response mode is a pop-up dialog box.
The detection code is used for detecting at least one webpage operation. For example, the detection code is used to detect a click operation.
The execution code is used for realizing a response mode of the webpage operation. For example, executing code is used to implement popping up a dialog box in the target web page.
And the cloud platform server stores the update code matched with the target webpage into the database.
The update code acquisition request is used for requesting to acquire the update code corresponding to the target webpage. And the cloud platform server queries in the database according to the update code acquisition request to acquire the update code matched with the target webpage.
According to the technical scheme of the embodiment, a cloud platform server generates a detection code corresponding to at least one webpage operation according to the at least one webpage operation, generates an execution code corresponding to a response mode of the webpage operation according to the response mode, stores the detection code corresponding to the at least one webpage operation and the execution code corresponding to the response mode of the webpage operation as an update code matched with a target webpage into a database, acquires an update code matched with the target webpage from the database according to the update code acquisition request when an update code acquisition request sent by a webpage control code installed in the target webpage is detected, feeds the update code back to the webpage control code, can generate a code for dynamically updating the webpage according to the webpage operation provided by a user and the corresponding response mode, and automatically installs the code to the webpage, the code installation efficiency is improved.
Fig. 5 is a schematic structural diagram of a device for dynamically updating a web page according to an embodiment of the present disclosure, which is applicable to dynamically updating a web page. The apparatus can be implemented in software and/or hardware, and the apparatus can be configured in an electronic device. As shown in fig. 5, the apparatus may include: a request sending module 501, a code receiving module 502, a code installing module 503 and a code executing module 504.
The request sending module 501 is configured to send an update code acquisition request corresponding to a target webpage, where a webpage control code is pre-installed in the target webpage; a code receiving module 502, configured to receive an update code matching the update code obtaining request, where the update code includes: detecting codes corresponding to at least one webpage operation and executing codes corresponding to a response mode of the webpage operation; a code installation module 503, configured to install an update code in the target webpage; and a code execution module 504, configured to, when a web page operation is detected by the detection code, execute an execution code that matches the detected web page operation.
According to the technical scheme of the embodiment, the webpage control code pre-installed in the target webpage sends the update code acquisition request corresponding to the target webpage and receives the update code matched with the update code acquisition request, wherein the update code comprises: the method comprises the steps of detecting a webpage operation, and executing a code corresponding to a response mode of the webpage operation, wherein the detection code corresponds to at least one webpage operation, then installing an update code in a target webpage by a webpage control code, and executing the execution code matched with the detected webpage operation when the webpage operation is detected by the detection code.
Optionally, on the basis of the technical scheme, the webpage control code may be obtained by sending a code installation request to the cloud platform server by the user; the updating code can be generated by the cloud platform server according to the webpage function configuration information provided by the user; the request sending module 501 may specifically include: and the request sending unit is used for sending an update code acquisition request corresponding to the target webpage to the cloud platform server.
The dynamic updating device for the webpage provided by the embodiment of the disclosure can execute the dynamic updating method for the webpage provided by the embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 6 is a schematic structural diagram of a device for dynamically updating a web page according to an embodiment of the present disclosure, which is applicable to dynamically updating a web page. The apparatus can be implemented in software and/or hardware, and the apparatus can be configured in an electronic device. As shown in fig. 6, the apparatus may include: a first code feedback module 601, a code generation module 602, and a second code feedback module 603.
The first code feedback module 601 is configured to feed back a webpage control code to a user according to a code installation request sent by the user, where the webpage control code is used to instruct the user to install the webpage control code in a target webpage that needs to be dynamically updated; a code generating module 602, configured to generate a matched update code according to the webpage function configuration information corresponding to the target webpage sent by the user, where the update code includes: detecting codes corresponding to at least one webpage operation and executing codes corresponding to a response mode of the webpage operation; the second code feedback module 603 is configured to, when an update code acquisition request sent by a web control code installed in a target web page is detected, feed back the update code to the web control code; and the updating code is used for installing the webpage control code in the target webpage, and executing an execution code matched with the detected webpage operation when the webpage operation is detected through the detection code.
According to the technical scheme of the embodiment, the cloud platform server feeds the webpage control code back to the user according to the code installation request sent by the user, the webpage control code is used for indicating the user to install the webpage control code in the target webpage needing dynamic updating, then the matched updating code is generated according to the webpage function configuration information which is sent by the user and corresponds to the target webpage, and the updating code comprises: the method comprises the steps of detecting a detection code corresponding to at least one webpage operation and an execution code corresponding to a response mode of the webpage operation, feeding back an update code to the webpage control code when an update code acquisition request sent by a webpage control code installed in a target webpage is detected, wherein the update code is used for installing the webpage control code in the target webpage, executing the execution code matched with the detected webpage operation when the webpage operation is detected through the detection code, generating a code for dynamically updating the webpage according to webpage function configuration information provided by a user, and automatically installing the code to the webpage, so that the code installation efficiency is improved.
Optionally, on the basis of the above technical solution, the web page function configuration information may include: at least one webpage operation and a response mode of the at least one webpage operation; the code generation module 602 may include: the first generating unit is used for generating a detection code corresponding to at least one webpage operation according to the at least one webpage operation; and the second generating unit is used for generating an execution code corresponding to the response mode of the webpage operation according to the response mode.
Optionally, on the basis of the above technical solution, the method may further include: and the code storage module is used for storing the detection code corresponding to at least one webpage operation and the execution code corresponding to the response mode of the webpage operation into a database as the update code matched with the target webpage.
Optionally, on the basis of the foregoing technical solution, the second code feedback module 603 may include: the code acquisition unit is used for acquiring an update code matched with a target webpage in a database according to an update code acquisition request when the update code acquisition request sent by a webpage control code installed in the target webpage is detected; and the code feedback unit is used for feeding the updating code back to the webpage control code.
The dynamic updating device for the webpage provided by the embodiment of the disclosure can execute the dynamic updating method for the webpage provided by the embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
Referring now to fig. 7, a schematic diagram of an electronic device (e.g., a terminal device or server) 700 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 may include a processing means (e.g., central processing unit, graphics processor, etc.) 701 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from storage 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment 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 comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport 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 appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: the method comprises the steps that a webpage control code sends an update code acquisition request corresponding to a target webpage, wherein the webpage control code is pre-installed in the target webpage; the webpage control code receives an update code matched with the update code acquisition request, wherein the update code comprises: detecting codes corresponding to at least one webpage operation and executing codes corresponding to a response mode of the webpage operation; the webpage control code installs an update code in the target webpage; and when the webpage operation is detected by the detection code, the webpage control code executes the execution code matched with the detected webpage operation.
Or, causing the electronic device to: the cloud platform server feeds the webpage control code back to the user according to a code installation request sent by the user, wherein the webpage control code is used for indicating the user to install the webpage control code in a target webpage which needs to be dynamically updated; the cloud platform server generates a matched update code according to webpage function configuration information which is sent by a user and corresponds to a target webpage, wherein the update code comprises: detecting codes corresponding to at least one webpage operation and executing codes corresponding to a response mode of the webpage operation; the method comprises the steps that a cloud platform server feeds an update code back to a webpage control code when detecting an update code acquisition request sent by the webpage control code installed in a target webpage; and the updating code is used for installing the webpage control code in the target webpage, and executing an execution code matched with the detected webpage operation when the webpage operation is detected through the detection code.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language 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 the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). 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 in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and units described in the embodiments of the present disclosure may be implemented by software or hardware. The names of the modules and units do not limit the modules or the units themselves in some cases, for example, the code installation module may be further described as a "module that installs an update code in a target web page", and the request transmission unit may be further described as a "unit that transmits an update code acquisition request corresponding to the target web page to the cloud platform server".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Claims (10)
1. A method for dynamically updating a web page, comprising:
the method comprises the steps that a webpage control code sends an update code acquisition request corresponding to a target webpage, wherein the webpage control code is pre-installed in the target webpage;
the webpage control code receives an update code matched with the update code acquisition request, wherein the update code comprises: the method comprises the steps of detecting codes corresponding to at least one webpage operation and executing codes corresponding to a response mode of the webpage operation;
the webpage control code installs the update code in the target webpage;
and when the webpage operation is detected by the webpage control code through the detection code, executing an execution code matched with the detected webpage operation.
2. The method of claim 1, wherein the web page control code is obtained by a user sending a code installation request to a cloud platform server; the updating code is generated by the cloud platform server according to webpage function configuration information provided by a user;
the method for sending the update code acquisition request corresponding to the target webpage by the webpage control code specifically comprises the following steps:
and the webpage control code sends an update code acquisition request corresponding to the target webpage to the cloud platform server.
3. A method for dynamically updating a web page, comprising:
the method comprises the steps that a cloud platform server feeds a webpage control code back to a user according to a code installation request sent by the user, wherein the webpage control code is used for indicating the user to install the webpage control code in a target webpage needing to be dynamically updated;
the cloud platform server generates a matched update code according to the webpage function configuration information which is sent by the user and corresponds to the target webpage, wherein the update code comprises: the method comprises the steps of detecting codes corresponding to at least one webpage operation and executing codes corresponding to a response mode of the webpage operation;
when detecting an update code acquisition request sent by the webpage control code installed in the target webpage, the cloud platform server feeds the update code back to the webpage control code;
and the updating code is used for installing the webpage control code in the target webpage, and executing an execution code matched with the detected webpage operation when the webpage operation is detected through the detection code.
4. The method of claim 3, wherein the web page functionality configuration information comprises: at least one webpage operation and a response mode of the at least one webpage operation;
the cloud platform server generates a matched update code according to the webpage function configuration information which is sent by the user and corresponds to the target webpage, and the method comprises the following steps:
the cloud platform server generates a detection code corresponding to the at least one webpage operation according to the at least one webpage operation;
and the cloud platform server generates an execution code corresponding to the response mode of the webpage operation according to the response mode.
5. The method of claim 4, after generating the matching update code, further comprising:
and the cloud platform server stores the detection code corresponding to the at least one webpage operation and the execution code corresponding to the response mode of the webpage operation into a database as update codes matched with the target webpage.
6. The method of claim 5, wherein the feeding back, by the cloud platform server, the update code to the web page control code when detecting an update code acquisition request sent by the web page control code installed in the target web page comprises:
when detecting an update code acquisition request sent by the webpage control code installed in the target webpage, the cloud platform server acquires an update code matched with the target webpage from the database according to the update code acquisition request;
and the cloud platform server feeds the updating code back to the webpage control code.
7. An apparatus for dynamically updating a web page, comprising:
the request sending module is used for sending an update code acquisition request corresponding to a target webpage, wherein a webpage control code is pre-installed in the target webpage;
a code receiving module, configured to receive an update code matched with the update code obtaining request, where the update code includes: the method comprises the steps of detecting codes corresponding to at least one webpage operation and executing codes corresponding to a response mode of the webpage operation;
the code installation module is used for installing the update code in the target webpage;
and the code execution module is used for executing the execution code matched with the detected webpage operation when the webpage operation is detected through the detection code.
8. An apparatus for dynamically updating a web page, comprising:
the first code feedback module is used for feeding back a webpage control code to a user according to a code installation request sent by the user, wherein the webpage control code is used for indicating the user to install the webpage control code in a target webpage which needs to be dynamically updated;
a code generating module, configured to generate a matched update code according to the webpage function configuration information corresponding to the target webpage sent by the user, where the update code includes: the method comprises the steps of detecting codes corresponding to at least one webpage operation and executing codes corresponding to a response mode of the webpage operation;
the second code feedback module is used for feeding back the update code to the webpage control code when detecting an update code acquisition request sent by the webpage control code installed in the target webpage;
and the updating code is used for installing the webpage control code in the target webpage, and executing an execution code matched with the detected webpage operation when the webpage operation is detected through the detection code.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method for dynamic updating of a web page of any of claims 1-2, or the method for dynamic updating of a web page of any of claims 3-6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for dynamic updating of a web page according to any one of claims 1-2, or a method for dynamic updating of a web page according to any one of claims 3-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811317888.6A CN109445840B (en) | 2018-11-07 | 2018-11-07 | Dynamic updating method and device of webpage, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811317888.6A CN109445840B (en) | 2018-11-07 | 2018-11-07 | Dynamic updating method and device of webpage, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109445840A CN109445840A (en) | 2019-03-08 |
CN109445840B true CN109445840B (en) | 2021-12-10 |
Family
ID=65551036
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811317888.6A Active CN109445840B (en) | 2018-11-07 | 2018-11-07 | Dynamic updating method and device of webpage, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109445840B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113296828A (en) * | 2021-05-26 | 2021-08-24 | 北京京东振世信息技术有限公司 | Method, server and system for issuing application |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6826594B1 (en) * | 2000-07-15 | 2004-11-30 | Commission Junction | Method and system for remote content management of a designated portion of a web page |
US7194678B1 (en) * | 1999-03-02 | 2007-03-20 | Hitachi, Ltd. | Dynamic web page generation method and system |
US7316003B1 (en) * | 2002-12-18 | 2008-01-01 | Oracle International Corp. | System and method for developing a dynamic web page |
WO2016015527A1 (en) * | 2014-07-31 | 2016-02-04 | 优视科技有限公司 | Webpage update method and apparatus based on synthetic rendering acceleration |
CN105389315A (en) * | 2014-09-04 | 2016-03-09 | 阿里巴巴集团控股有限公司 | Dynamic webpage refreshing method and device |
CN107229653A (en) * | 2016-03-25 | 2017-10-03 | 北大方正集团有限公司 | Pseudo- static Web page generation method and device |
-
2018
- 2018-11-07 CN CN201811317888.6A patent/CN109445840B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7194678B1 (en) * | 1999-03-02 | 2007-03-20 | Hitachi, Ltd. | Dynamic web page generation method and system |
US6826594B1 (en) * | 2000-07-15 | 2004-11-30 | Commission Junction | Method and system for remote content management of a designated portion of a web page |
US7316003B1 (en) * | 2002-12-18 | 2008-01-01 | Oracle International Corp. | System and method for developing a dynamic web page |
WO2016015527A1 (en) * | 2014-07-31 | 2016-02-04 | 优视科技有限公司 | Webpage update method and apparatus based on synthetic rendering acceleration |
CN105335410A (en) * | 2014-07-31 | 2016-02-17 | 优视科技有限公司 | Synthesis rendering acceleration based webpage updating method and apparatus |
CN105389315A (en) * | 2014-09-04 | 2016-03-09 | 阿里巴巴集团控股有限公司 | Dynamic webpage refreshing method and device |
CN107229653A (en) * | 2016-03-25 | 2017-10-03 | 北大方正集团有限公司 | Pseudo- static Web page generation method and device |
Non-Patent Citations (3)
Title |
---|
"Raising Web Service Updates Efficiency with Dynamic Technologies";Valery Abu-Eid;《2008 4th International Conference on Next Generation Web Services Practices》;20081208;第137-142页 * |
"基于Ajax技术的网页动态更新设计与实现";贾英等;《河北工业科技》;20080731;第25卷(第4期);第244-246页 * |
"搜索引擎中大型网站的网页更新策略研究";易显;《中国优秀硕士学位论文全文数据库•信息科技辑》;20120315;第2012年卷(第3期);第I139-605页 * |
Also Published As
Publication number | Publication date |
---|---|
CN109445840A (en) | 2019-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109582310B (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
CN109460233B (en) | Method, device, terminal equipment and medium for updating native interface display of page | |
CN109857506B (en) | Method and device for realizing guide information, electronic equipment and storage medium | |
CN111443909B (en) | Method and device for generating page | |
CN111367516B (en) | Application interface generation method and device and electronic equipment | |
WO2020248745A1 (en) | Method and device for displaying characters in user interface, electronic device, and storage medium | |
CN111309304B (en) | Method, device, medium and electronic equipment for generating IDL file | |
CN110865846B (en) | Application management method, device, terminal, system and storage medium | |
CN110618768B (en) | Information presentation method and device | |
CN109445840B (en) | Dynamic updating method and device of webpage, electronic equipment and storage medium | |
CN111596992B (en) | Navigation bar display method and device and electronic equipment | |
CN110619101B (en) | Method and apparatus for processing information | |
CN111767062A (en) | Application configuration data updating method, device, equipment and storage medium | |
CN111309406A (en) | Event processing method and device of application program and electronic equipment | |
CN111273967A (en) | Remote hook setting method and device suitable for Android system and electronic equipment | |
CN111414568A (en) | Information display method and device, electronic equipment and storage medium | |
CN113656050B (en) | Method and apparatus for generating version number | |
CN112596729A (en) | Target application interface generation method and device, readable medium and electronic equipment | |
CN110807164A (en) | Automatic image area adjusting method and device, electronic equipment and computer readable storage medium | |
CN110908711A (en) | Control development method and device of application program and electronic equipment | |
CN111294657A (en) | Information processing method and device | |
CN114253520B (en) | Interface code generation method and device | |
CN110750242B (en) | File deployment method, system, medium and electronic equipment | |
CN112688863B (en) | Gateway data processing method and device and electronic equipment | |
CN114968621B (en) | Data communication method, device, equipment, storage medium and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |