CN115344255A - Method and device for displaying page - Google Patents

Method and device for displaying page Download PDF

Info

Publication number
CN115344255A
CN115344255A CN202210917634.8A CN202210917634A CN115344255A CN 115344255 A CN115344255 A CN 115344255A CN 202210917634 A CN202210917634 A CN 202210917634A CN 115344255 A CN115344255 A CN 115344255A
Authority
CN
China
Prior art keywords
page
terminal
file
pushing
displaying
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
CN202210917634.8A
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun 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 Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202210917634.8A priority Critical patent/CN115344255A/en
Publication of CN115344255A publication Critical patent/CN115344255A/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/957Browsing optimisation, e.g. caching or content distillation

Landscapes

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

Abstract

The invention discloses a method and a device for displaying a page, and relates to the technical field of application development. One embodiment of the method comprises: monitoring the updating condition of a page template file by using a page development terminal, and generating a page compression packet containing the page template file under the updating condition; pushing the page compression package to one or more terminals; and rendering and displaying the corresponding page by the terminal by using the page template file in the page compression package. The method and the device solve the problems of poor real-time performance of previewing the modified page on various types of terminals, strong coupling and poor flexibility of displaying the page by the terminals aiming at different system types, and therefore the efficiency of developing the page is improved.

Description

Method and device for displaying page
Technical Field
The invention relates to the technical field of application development, in particular to a method and a device for displaying a page.
Background
In the process of developing each display page of the internet application, the result of page display is often required to be checked by a method of previewing a page on a real terminal so as to judge whether a code written or modified for the page meets the requirement.
At present, in the process of developing an application, a software development kit is required to be used for generating an application kit from a code written or modified and then running the application kit on a terminal so as to view a display page, and the display page has poor flexibility and cannot be previewed in real time after modification; moreover, the terminals for different types of systems (such as an android system and an iOS system) need to perform the operation of page display respectively, which leads to a problem of low development efficiency.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for displaying a page, which can monitor an update condition of a page template file by using a page development end, and generate a page compression package including the page template file in the update condition; pushing the page compression package to one or more terminals; and rendering and displaying the corresponding page by the terminal by using the page template file in the page compression package. The method and the device solve the problems of poor real-time performance of previewing the modified page on various types of terminals, strong coupling and poor flexibility of displaying the page by the terminals aiming at different system types, and therefore the efficiency of developing the page is improved.
To achieve the above object, according to an aspect of the embodiments of the present invention, there is provided a method for displaying a page, applied to a page development terminal, including: monitoring a page template file; responding to the updating of the page template file, and generating a page compression package containing the page template file; and pushing the page compression package to one or more terminals, so that the terminals render and display the pages corresponding to the page template file by using the page compression package.
Optionally, the method for displaying a page further includes: receiving one or more terminal types sent by a terminal, and correspondingly storing the characteristic identification of the terminal and the terminal type; the pushing the page compression package to one or more terminals includes: for each stored feature identification of the terminal, performing the following operations: selecting a target push mode from a plurality of preset push modes according to the stored terminal type; and pushing the page compression packet to the terminal of the characteristic identifier by using the target pushing mode.
Optionally, the selecting a target push mode from a plurality of preset push modes includes: selecting a preset Websckey tool pushing mode or an adb tool pushing mode as a target pushing mode under the condition that the terminal type is android; and selecting a preset Websocket tool push mode as a target push mode under the condition that the terminal type is iOS.
Optionally, before pushing the page compression package to one or more terminals, the method further includes: for each of the terminals, performing the following operations: and acquiring a page test mark corresponding to the terminal, and executing the step of pushing the page compression packet to the terminal under the condition that the page test mark indicates to be opened.
In order to achieve the above object, according to a second aspect of the embodiments of the present invention, there is provided a method for displaying a page, applied to a terminal, the method including: monitoring a page compression packet contained in a local directory; the page compression package is pushed by a page development end; acquiring the page compression packet under the condition that the update of the page compression packet is monitored; and rendering and displaying the page of the page template file in the page compression package by using the page compression package.
Optionally, the method for displaying a page further includes:
and sending the terminal type and the page test mark of the test software package to the page development end based on the installed test software package so that the page development end determines whether to push and a pushing mode based on the terminal type and the page test mark.
Optionally, rendering and displaying the page of the page template file in the page compression package by using the page compression package includes: and rendering and displaying the page of the page template file based on the layout file, the page information file and the installed test software package contained in the page template file included in the page compression package.
To achieve the above object, according to a third aspect of the embodiments of the present invention, there is provided an apparatus for displaying a page, applied to a page development terminal, comprising: a file monitoring module and a file pushing module; wherein the content of the first and second substances,
the file monitoring module is used for monitoring a page template file; responding to the updating of the page template file, and generating a page compression package containing the page template file;
and the file pushing module is used for pushing the page compression package to one or more terminals so that the terminals render and display the pages corresponding to the page template file by using the page compression package.
In order to achieve the above object, according to a fourth aspect of the embodiments of the present invention, there is provided an apparatus for displaying a page, applied to a terminal, including: a file monitoring module and a page display module; wherein, the first and the second end of the pipe are connected with each other,
the file monitoring module is used for monitoring a page compression packet contained in a local directory; the page compression package is pushed by a page development end;
the page display module is used for acquiring the page compression package under the condition of monitoring the update of the page compression package; and rendering and displaying the page of the page template file in the page compression package by using the page compression package.
To achieve the above object, according to a fifth aspect of the embodiments of the present invention, there is provided an electronic device for displaying a page, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method as in any one of the methods of displaying pages described above.
To achieve the above object, according to a sixth aspect of the embodiments of the present invention, there is provided a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method as in any one of the methods of displaying a page described above.
One embodiment of the above invention has the following advantages or benefits: the method comprises the steps that a page development end can be used for monitoring the updating condition of a page template file, and a page compression package containing the page template file is generated under the updating condition; pushing the page compression package to one or more terminals; and rendering and displaying the corresponding page by the terminal by using the page template file in the page compression package. The method and the device solve the problems of poor real-time performance of previewing the modified page on various terminals, and strong coupling and poor flexibility of displaying the page by the terminals aiming at different system types, thereby improving the efficiency of developing the page.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic flowchart of a method for displaying a page applied to a page development terminal according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for displaying a page applied to a terminal according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for displaying a page applied to a page development terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for displaying a page applied to a terminal according to an embodiment of the present invention;
FIG. 5 is a block diagram of a system for displaying pages according to an embodiment of the present invention;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 7 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
As shown in fig. 1, an embodiment of the present invention provides a method for displaying a page, where the method may include the following steps:
step S101: and monitoring the page template file.
Specifically, the page template file may be multiple types of files for displaying the page, for example, a directory of the page template file is identified as test, and the test directory includes the following files: xml contains content for determining page layout, json contains content for determining page display data, js is used for converting different versions of a development language at runtime, and assets and other auxiliary files for displaying pages.
Further, a directory (e.g., test directory) to which the page template file of the page development end belongs, or one or more files in the directory, may be listened. Wherein the page-initiating terminal may be attributed to a server or a personal computer. It can be understood that, in the process of developing the page, the page template file needs to be updated for multiple times according to the result of the page display to perform the debugging operation, wherein the method for updating the page template file may be any one or more of directly updating the file, replacing an existing file with a new file, adding a new file, and deleting a file.
The step of monitoring the page template file may be executed using a FileObserver module provided by JDK (Java Development Kit).
Step S102: responding to the updating of the page template file, and generating a page compression package containing the page template file;
specifically, in response to the page template file update, for example, in a case where it is monitored that there is an update in the page template file, a compressed package is generated based on each page template file. By generating the compression packet, the security and the transmission efficiency of transmitting the page template file are improved; preferably, in the process of generating the compressed package, the layout file (for example, the file with the extension name of xml) is converted into a binary file, so that the file size of the layout file is reduced, and the security and the transmission efficiency of the compressed package are further improved.
Step S103: and pushing the page compression package to one or more terminals so that the terminals render and display the pages corresponding to the page template file by using the page compression package.
Specifically, the number of the terminals can be one or more, the page compression package can be automatically pushed to different types of terminals through the method, and the flexibility of displaying the page on the terminals is improved; the different types of terminals are, for example: an android terminal with an android operating system or an iOS terminal with an iOS operating system.
Further, before pushing the page compression packet to one or more terminals, determining the terminal type of the target interrupt, wherein the determination method is that the terminal type is determined according to the feature identifier of the terminal and the corresponding relation from the stored corresponding relation between the feature identifier of the terminal and the terminal type.
The stored correspondence between the feature identifier of the terminal and the terminal type may be stored after receiving the terminal type sent by one or more terminals, that is, receiving the terminal type sent by one or more terminals, and correspondingly storing the feature identifier of the terminal and the terminal type; the terminal characteristic identifier may be a unique identifier of the terminal, such as a terminal serial number, an IP address, and the like, and the terminal type may be android or iOS.
Further, when pushing the compressed packet for the terminals of different terminal types, a corresponding pushing manner may be selected, that is, the pushing of the page compressed packet to one or more terminals includes: for each stored feature identification of the terminal, performing the following operations: selecting a target push mode from a plurality of preset push modes according to the stored terminal type; and pushing the page compression packet to the terminal of the characteristic identifier by using the target pushing mode.
Specifically, the preset multiple pushing modes include: a Websocket tool pushing mode or an adb tool pushing mode; the WebSocket is a Protocol for performing full duplex communication over a TCP (Transmission Control Protocol, TCP, transmission Control Protocol) connection, and the WebSocket Protocol and a tool based on the Protocol reduce complexity of data exchange between a client and a server, and may allow the server to actively push data (e.g., a page compression packet) to the client. In the WebSocket API, the browser and the server only need to complete one handshake, and persistent connection can be directly established between the browser and the server, and bidirectional data transmission is carried out; the efficiency and reliability of transmission are improved. adb is a multifunctional command line tool included in the android system, through which communication with the terminal device can be made. The adb tool contains commands that can be used to perform various terminal operations, such as pushing a file (e.g., a page compression package) to the terminal; there are two methods for pushing files to a terminal by using an adb tool: the first method comprises the following steps: the file to be pushed can be pushed to the terminal through an adb push target path of the file path to be pushed terminal; the second method comprises the following steps: pushing a file to be pushed to a terminal by using a command (command, env, file) containing a call interface Runtime.exec, wherein the command is a required adb command, and the file is an identifier of the file to be pushed; env is an environment variable associated with the push mode.
Further, the Websocket tool pushing mode is used for android mobile phones or iOS mobile phones; the adb tool pushing mode is used for the android mobile phone; namely, the selecting a target push mode from a plurality of preset push modes includes: selecting a preset Websocket tool pushing mode or an adb tool pushing mode as a target pushing mode under the condition that the terminal type is android; and selecting a preset Websocket tool push mode as a target push mode under the condition that the terminal type is iOS.
Further, before pushing the page compression packet to one or more terminals, judging a page test flag corresponding to the terminal, for example, the page test flag is a variable value, and is turned on or turned off by different indications of the variable value; the pushing is executed under the condition of starting, so that the flexibility of page display is further improved; that is, before pushing the page compression package to one or more terminals, the method further includes: for each of the terminals, performing the following operations: and acquiring a page test mark corresponding to the terminal, and executing the step of pushing the page compression packet to the terminal under the condition that the page test mark indicates to be opened.
And pushing the page compression package to one or more terminals so that the terminals render and display the pages corresponding to the page template file by using the page compression package, wherein the processing steps related to the terminals are consistent with the description of the step S201 to the step S202, and are not described again here.
Preferably, in an embodiment of the present invention, a plug-in may be constructed based on the method for displaying a page described in steps S101 to S103, and the plug-in may be integrated into a visualization development tool at a page development end; in the plug-in initialization configuration stage, a plug-in file directory can be constructed and used for storing configuration files, environment files and the like related to configuration, such as the environment for running an adb tool, an installation package of a test software package, files required by debugging an ios terminal and the like, and in the plug-in operation stage, the configuration files in the plug-in file directory can be installed in equipment of a page development end in an environment file mode, so that the configuration automation of a push tool is realized, and the problem that human resources are wasted due to manual configuration is solved; further, under the condition that the test software package is not installed in the terminal, the test software package can be installed in the terminal by using the installation package of the test software package included in the plug-in file directory; thereby enabling the terminal to complete the configuration operation of the tool or environment.
The existing method for previewing the page based on the page template file needs to download a complete software development kit, and the software development kit is usually large in size (for example, 1-2G) and time-consuming; moreover, the existing software development kit is usually utilized to display the page which does not contain the function of previewing the page in real time and cannot be compatible with the iOS terminal and the android terminal at the same time; in summary, the existing method for displaying a page has the problems of low efficiency and poor flexibility in developing and displaying the page, the invention can integrate the plug-in into the development tool of the page development end, and the plug-in has a small size (for example, 10M), and combines the functions of the plug-ins described in the steps S101 to S103, thereby overcoming the problems of poor flexibility, low efficiency and poor compatibility in displaying the page in the existing method.
As shown in fig. 2, an embodiment of the present invention provides a method for displaying a page, which is applied to a terminal, and the method may include the following steps:
step S201: monitoring a page compression packet contained in a local directory; wherein the page compression package is pushed by a page development end.
Specifically, the android terminal or the iOS terminal monitors an update condition of a local setting directory, where the local setting directory includes a page compression packet pushed by a page server. And under the condition that the updating of the page compression packet is monitored, relevant operations such as decompressing and the like are carried out on the page compression packet.
Preferably, the terminal includes a test software package, and the description about installing the test software package is consistent with the description in step S103, and is not described herein again.
Further, the terminal sends the terminal type (android or iOS, etc.) of the terminal and a page test flag (open or close, etc.) to the page development terminal through the test software package, so that the page development terminal determines whether to push the page compression package or not based on the page test flag, and determines a pushing mode according to the terminal type; that is, based on the installed test software package, the terminal type and the page test flag of the test software package are sent to the page development terminal, so that the page development terminal determines whether to push or not and the pushing mode based on the terminal type and the page test flag.
Step S202: acquiring the page compression packet under the condition of monitoring the update of the page compression packet; and rendering and displaying the page of the page template file in the page compression package by using the page compression package.
Specifically, under the condition that the updating of the page compression packet is monitored, the operation of decompressing the page compression packet is obtained, and if the page compression packet is an encrypted compression packet, the operation of decrypting is also needed to be executed; the method comprises the steps of obtaining one or more page template files contained in a page compression package, and rendering and displaying pages through data contained in the page template files, namely rendering and displaying the pages of the page template files in the page compression package by using the page compression package; thereby completing the operation of displaying the page of the updated page template file on the terminal.
Further, rendering and displaying the page of the page template file in the page compression package by using the page compression package comprises: and rendering and displaying the page of the page template file based on the layout file, the page information file and the installed test software package contained in the page template file included in the page compression package. The layout file is, for example, a conversion file based on an xml format, and the page information file may include a json data file for displaying page data, an assets file for displaying page resources, a version file for providing page version information, and the like. And rendering and displaying the corresponding page by using the test software package and the layout file and the page information file contained in the page template file.
As shown in fig. 3, an embodiment of the present invention provides an apparatus 300 for displaying a page, including: a file monitoring module 301 and a file pushing module 302; wherein, the first and the second end of the pipe are connected with each other,
the file monitoring module 301 is configured to monitor a page template file; responding to the updating of the page template file, and generating a page compression package containing the page template file;
the file pushing module 302 is configured to push the page compression package to one or more terminals, so that the terminals render and display the pages corresponding to the page template file by using the page compression package.
Optionally, the listen file module 301 is further configured to
Receiving one or more terminal types sent by a terminal, and correspondingly storing the characteristic identification of the terminal and the terminal type; the pushing the page compression package to one or more terminals comprises: for each stored feature identification of the terminal, performing the following operations: selecting a target push mode from a plurality of preset push modes according to the stored terminal type; and pushing the page compression packet to the terminal of the characteristic identifier by using the target pushing mode.
Optionally, the file pushing module 302 is configured to select a target pushing manner from a plurality of preset pushing manners, and includes: selecting a preset Webscket tool pushing mode or an adb tool pushing mode as a target pushing mode under the condition that the terminal type is android; and selecting a preset Websocket tool push mode as a target push mode under the condition that the terminal type is iOS.
Optionally, the file pushing module 302 is configured to, before pushing the page compression package to one or more terminals, further include: for each of the terminals, performing the following operations: and acquiring a page test mark corresponding to the terminal, and executing the step of pushing the page compression packet to the terminal under the condition that the page test mark indicates to be opened.
As shown in fig. 4, an embodiment of the present invention provides an apparatus 400 for displaying a page, including: a file monitoring module 401 and a page display module 402; wherein the content of the first and second substances,
the file monitoring module 401 is configured to monitor a page compression packet included in a local directory; the page compression package is pushed by a page development end;
the page display module 402 is configured to obtain the page compression package when monitoring that the page compression package is updated; and rendering and displaying the page of the page template file in the page compression package by using the page compression package.
Optionally, the file monitoring module 401 is further configured to send a terminal type of the page development end and a page test flag to the page development end based on the installed test software package, so that the page development end determines whether to push or not and a pushing manner based on the terminal type and the page test flag.
Optionally, the page display module 402 is configured to render and display a page of a page template file in the page compression package by using the page compression package, and includes: and rendering and displaying the pages of the page template file based on the layout file, the page information file and the installed test software package which are contained in the page template file and included in the page compression package.
Optionally, as shown in fig. 5, an embodiment of the present invention provides a system 500 for displaying a page, including: a page-initiating terminal 501 of the device 300 having the displayed page, one or more terminals 502 of the device 400 having the displayed page, and/or one or more terminals 503 of the device 400 having the displayed page.
An embodiment of the present invention further provides an electronic device for displaying a page, including: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the method provided by any one of the above embodiments.
Embodiments of the present invention further provide a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method provided in any of the above embodiments.
Fig. 6 illustrates an exemplary system architecture 600 of a method of displaying a page or an apparatus for displaying a page to which embodiments of the present invention may be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 serves to provide a medium for communication links between the terminal devices 601, 602, 603 and the server 605. Network 604 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 601, 602, 603 to interact with the server 605 via the network 604 to receive or send messages or the like. The terminal devices 601, 602, 603 may have various client applications installed thereon, such as an e-mall client application, a testing software application, and the like.
The terminal devices 601, 602, 603 may be various electronic devices having display screens and supporting various client applications, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 605 may be a server providing various services, such as a background management server providing support for client applications used by users with the terminal devices 601, 602, 603. The background management server can process the monitored updated page template file and push the page compression packet to the terminal device.
It should be noted that the method applied to the display page of the terminal provided by the embodiment of the present invention is generally executed by the terminal devices 601, 602, 603, the method applied to the display page of the page development end provided by the embodiment of the present invention is generally executed by the server 605, or a tablet computer, a laptop portable computer, a desktop computer, and the like used for development, and accordingly, the apparatus applied to the display page of the terminal is generally disposed in the terminal devices 601, 602, 603; the device applied to the display page of the terminal is generally provided in the server 605 or a tablet computer, a laptop portable computer, and a desktop computer for development.
It should be understood that the number of terminal devices, networks, and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, shown is a block diagram of a computer system 700 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal 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 invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the present invention 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 invention, 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 invention, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, 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: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. 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 or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and/or units described in the embodiments of the present invention may be implemented by software, and may also be implemented by hardware. The described modules and/or units may also be provided in a processor, which may be described as: a processor comprises a file monitoring module and a file pushing module; the names of these modules do not constitute a limitation to the module itself in some cases, for example, the file listening module may also be described as a "module that generates a page compression package in response to the page template file update".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device corresponding to the page originator to include: monitoring a page template file; responding to the updating of the page template file, and generating a page compression package containing the page template file; and pushing the page compression package to one or more terminals, so that the terminals render and display the pages corresponding to the page template file by using the page compression package. So that the apparatus corresponding to the terminal includes: monitoring a page compression packet contained in a local directory; the page compression package is pushed by a page development end; acquiring the page compression packet under the condition that the update of the page compression packet is monitored; and rendering and displaying the page of the page template file in the page compression package by using the page compression package.
The embodiment of the invention can monitor the updating condition of the page template file by using the page development terminal, and generate the page compression packet containing the page template file under the updating condition; pushing the page compression package to one or more terminals; and rendering and displaying the corresponding page by the terminal by using the page template file in the page compression package. The method and the device solve the problems of poor real-time performance of previewing the modified page on various types of terminals, strong coupling and poor flexibility of displaying the page by the terminals aiming at different system types, and therefore the efficiency of developing the page is improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A method of displaying a page, comprising:
monitoring a page template file;
generating a page compression package containing the page template file in response to monitoring the update of the page template file;
and pushing the page compression package to one or more terminals, so that the terminals render and display the pages corresponding to the page template file by using the page compression package.
2. The method of claim 1, further comprising:
receiving one or more terminal types sent by a terminal, and correspondingly storing the characteristic identification of the terminal and the terminal type;
the pushing the page compression package to one or more terminals includes:
for each stored feature identification of the terminal, performing the following operations:
selecting a target push mode from a plurality of preset push modes according to the stored terminal type;
and pushing the page compression packet to the terminal of the characteristic identifier by using the target pushing mode.
3. The method according to claim 1, wherein the selecting the target push mode from a plurality of preset push modes comprises:
selecting a preset Websocket tool pushing mode or an adb tool pushing mode as a target pushing mode under the condition that the terminal type is android;
and selecting a preset Websocket tool push mode as a target push mode under the condition that the terminal type is iOS.
4. The method of claim 1,
before pushing the page compression package to one or more terminals, the method further comprises the following steps:
for each of the terminals, performing the following operations:
and acquiring a page test mark corresponding to the terminal, and executing the step of pushing the page compression packet to the terminal under the condition that the page test mark indicates to be opened.
5. A method of displaying a page, comprising:
monitoring a page compression packet contained in a local directory; the page compression package is pushed by a page development end;
acquiring the page compression packet under the condition of monitoring the update of the page compression packet;
and rendering and displaying the page of the page template file in the page compression package by using the page compression package.
6. The method of claim 5, further comprising:
and sending the terminal type and the page test mark of the page development terminal to the page development terminal based on the installed test software package, so that the page development terminal determines whether to push and a pushing mode based on the terminal type and the page test mark.
7. The method of claim 5,
rendering and displaying the page of the page template file in the page compression package by using the page compression package, wherein the rendering and displaying comprises the following steps:
and rendering and displaying the pages of the page template file based on the layout file, the page information file and the installed test software package which are contained in the page template file and included in the page compression package.
8. An apparatus for displaying a page, comprising: a file monitoring module and a file pushing module; wherein the content of the first and second substances,
the file monitoring module is used for monitoring a page template file; responding to the updating of the page template file, and generating a page compression package containing the page template file;
and the file pushing module is used for pushing the page compression package to one or more terminals so that the terminals render and display the pages corresponding to the page template file by using the page compression package.
9. An apparatus for displaying a page, comprising: a file monitoring module and a page display module; wherein, the first and the second end of the pipe are connected with each other,
the file monitoring module is used for monitoring a page compression packet contained in a local directory; the page compression package is pushed by a page development end;
the page display module is used for acquiring the page compression package under the condition of monitoring the update of the page compression package; and rendering and displaying the page of the page template file in the page compression package by using the page compression package.
10. An electronic device, comprising:
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 of any one of claims 1-7.
11. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202210917634.8A 2022-08-01 2022-08-01 Method and device for displaying page Pending CN115344255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210917634.8A CN115344255A (en) 2022-08-01 2022-08-01 Method and device for displaying page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210917634.8A CN115344255A (en) 2022-08-01 2022-08-01 Method and device for displaying page

Publications (1)

Publication Number Publication Date
CN115344255A true CN115344255A (en) 2022-11-15

Family

ID=83949160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210917634.8A Pending CN115344255A (en) 2022-08-01 2022-08-01 Method and device for displaying page

Country Status (1)

Country Link
CN (1) CN115344255A (en)

Similar Documents

Publication Publication Date Title
US11360737B2 (en) Method and apparatus for providing speech service
CN111221572B (en) Method, device, medium and equipment for automatically adapting to running environment
CN111786939B (en) Method, device and system for testing management platform of Internet of things
CN113821352A (en) Remote service calling method and device
CN112015654A (en) Method and apparatus for testing
WO2019029451A1 (en) Method for publishing mobile applications and electronic apparatus
CN110753020A (en) Network request processing method and device
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN113709243B (en) Equipment remote control method and device, electronic equipment and storage medium
CN111522617B (en) Method and device for maintaining system and electronic equipment
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN112015384A (en) Interface mapping method and device
CN112084254A (en) Data synchronization method and system
CN115344255A (en) Method and device for displaying page
CN113779122B (en) Method and device for exporting data
CN110851194A (en) Method and device for acquiring code for realizing new interface
CN114625458A (en) Page data processing method and device, electronic equipment and storage medium
CN112579447A (en) Browser testing method and device
CN113779018A (en) Data processing method and device
CN111193717A (en) FTP black and white list control method and device and electronic equipment
CN114745367B (en) Data transmission method, device, electronic equipment and storage medium
CN112688863B (en) Gateway data processing method and device and electronic equipment
CN109388536B (en) Data collection method and device
CN114253520B (en) Interface code generation method and device
CN112486826B (en) Test method, test device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination