CN111581473A - Webpage processing method - Google Patents
Webpage processing method Download PDFInfo
- Publication number
- CN111581473A CN111581473A CN202010250392.2A CN202010250392A CN111581473A CN 111581473 A CN111581473 A CN 111581473A CN 202010250392 A CN202010250392 A CN 202010250392A CN 111581473 A CN111581473 A CN 111581473A
- Authority
- CN
- China
- Prior art keywords
- file
- web page
- rendering
- client
- webpage
- 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.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 32
- 238000009877 rendering Methods 0.000 claims abstract description 50
- 238000004891 communication Methods 0.000 claims abstract description 30
- 238000012545 processing Methods 0.000 claims abstract description 20
- 238000000034 method Methods 0.000 claims description 31
- 230000003068 static effect Effects 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims 2
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 9
- 230000002093 peripheral effect Effects 0.000 description 8
- 238000012856 packing Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 238000011161 development Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004806 packaging method and process Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000033001 locomotion Effects 0.000 description 2
- 230000007723 transport mechanism Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000010076 replication Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a web page processing method, which is suitable for being executed in a network server and comprises the following steps: obtaining a configuration file, and combining a first type file and a second type file according to a predetermined rule in the configuration file to generate a rendering file, wherein the second type file has a predetermined format and is suitable for being processed by a network application residing on a network server; receiving a webpage request of a client end in communication connection with a network server, acquiring a rendering file corresponding to the webpage request, and processing the rendering file by network application to generate a target webpage file; and sending the target webpage file to the client so as to present the target webpage file at the client. The invention also discloses a computing device and a computer readable storage medium.
Description
Technical Field
The invention relates to the field of data display, in particular to a webpage processing method.
Background
With the continuous development of the internet and communication technology, people increasingly browse web pages on mobile devices, and the front-end development of web pages is a very important part of the whole development work. When developing web pages for browsing on mobile devices, Vue and webpack are commonly jointly used for developing the front end of web pages. Vue is a progressive JavaScript framework for building user interfaces, and webpack is a static modular wrapper for modern JavaScript applications.
However, the existing Vue and webpack development modes have certain disadvantages. The pages developed by adopting the mode can generate the document object model after JavaScript is loaded on the mobile device used by the user, and then are rendered into the webpage file to be displayed on the mobile device. The loading time required in the process is long, the user needs to wait for a long time when browsing the page, and the experience feeling is poor. Moreover, through the page rendered at the client, search engine optimization cannot be performed, and when the search engine crawls the page content, only one empty webpage structure can be crawled, and the related content of the page cannot be accurately obtained.
Therefore, a new web page processing method is required.
Disclosure of Invention
To this end, the present invention provides a web page processing method in an attempt to solve or at least alleviate the above-existing problems.
According to an aspect of the present invention, there is provided a web page processing method adapted to be executed in a web server, the method comprising the steps of: obtaining a configuration file, and combining a first type file and a second type file according to a predetermined rule in the configuration file to generate a rendering file, wherein the second type file has a predetermined format and is suitable for being processed by a network application residing on a network server; receiving a webpage request of a client end in communication connection with a network server, acquiring a rendering file corresponding to the webpage request, and rendering the rendering file by a network application to generate a target webpage file; and sending the target webpage file to the client so as to present the target webpage file at the client.
Optionally, in the web page processing method according to the present invention, the second type file is a template file.
Optionally, in the web page processing method according to the present invention, the step of rendering the rendered file by the web application to generate the target web page file includes: the network application acquires network data corresponding to the webpage request from a database residing on a network server; and loading the network data into a template file in the rendering file to generate a target webpage file.
Optionally, in the web page processing method according to the present invention, the first type file includes one or more web page files and one or more script files.
Optionally, in the web page processing method according to the present invention, the rendering file includes a template file, a web page file, and a script file.
Optionally, in the web page processing method according to the present invention, the target web page file includes a web page file and a script file.
Optionally, in the web page processing method according to the present invention, further comprising: dividing the content of a target webpage into static content and dynamic content; and the rendering file is the rendering file of the dynamic content in the target webpage file.
Optionally, in the web page processing method according to the present invention, further comprising: and sending the rendering file of the static content in the target webpage content to the client so as to directly render in the client to obtain the target webpage file of the static content.
Optionally, in the web page processing method according to the present invention, further comprising: and merging and displaying the target webpage files of the static content and the dynamic content in the client.
According to yet another aspect of the present invention, there is provided a computing device comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs when executed by the processors implement the steps of a web page processing method as described above.
According to yet another aspect of the present invention, there is provided a readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, implement the steps of a method of web page processing as described above.
According to the technical scheme of the webpage processing method, the configuration file is obtained, the first type file and the second type file are combined according to the preset rule in the configuration file to generate the rendering file, and the second type file has the preset format and is suitable for being processed by the network application residing on the network server; receiving a webpage request of a client end in communication connection with a network server, acquiring a rendering file corresponding to the webpage request, and rendering the rendering file by a network application to generate a target webpage file; and sending the target webpage file to the client so as to present the target webpage file at the client. The rendered file is directly processed through the network application in the network server, and the rendered target webpage file is sent to the client, so that the time for processing and rendering the file at the client is saved, and the use experience of the user is improved.
And furthermore, the second type file in the configuration file has a preset format, is suitable for being processed by a network application residing on a network server, and acquires corresponding data from the database for filling in the processing process, wherein the second type file with the preset format is a template file, can share a common template under the condition that the file content data are different, and then uses corresponding or latest data for filling, so that the file processing efficiency is improved, the second type file is particularly suitable for processing dynamic content with changed data, and the webpage presenting speed is further improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a schematic diagram 100 of a web server connected to a client according to one embodiment of the invention;
FIG. 2 illustrates a block diagram of a computing device 200, according to one embodiment of the invention;
fig. 3 illustrates a block diagram of a mobile terminal 300 according to an embodiment of the present invention;
FIG. 4 illustrates a flow diagram of a web page processing method 400 according to one embodiment of the invention; and
FIG. 5 illustrates a page presentation effect diagram according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 shows a schematic diagram 100 of a network server and a client connected according to an embodiment of the present invention, and as shown in fig. 1, the case that the network server and the client are linked illustrated in fig. 1 is only an example, in a specific practical case, there may be different numbers of network servers and clients connected, and the present invention does not limit the numbers of the network servers and the clients. As shown in fig. 1, fig. 1 includes 1 web server 110 and 3 clients 120, 130, and 140. Therein, the web server 110 is communicatively connected to the clients 120, 130, and 150, respectively, and is capable of data transmission.
The web page processing method of the present invention is suitable for being executed in the web server 110, and the web server 110 may be implemented as any server capable of implementing the web page processing method in the prior art, and the present invention does not limit the specific type of the web server 110. In an embodiment of the invention, the network server 110 may be implemented as a computing device. FIG. 2 shows a block diagram of a computing device 200, according to one embodiment of the invention. In a basic configuration 202, computing device 200 typically includes system memory 206 and one or more processors 204. A memory bus 208 may be used for communication between the processor 204 and the system memory 206.
Depending on the desired configuration, the processor 204 may be any type of processing, including but not limited to: a microprocessor (μ P), a microcontroller (μ C), a Digital Signal Processor (DSP), or any combination thereof. The processor 204 may include one or more levels of cache, such as a level one cache 210 and a level two cache 212, a processor core 214, and registers 216. Example processor cores 214 may include Arithmetic Logic Units (ALUs), Floating Point Units (FPUs), digital signal processing cores (DSP cores), or any combination thereof. The example memory controller 218 may be used with the processor 204, or in some implementations the memory controller 218 may be an internal part of the processor 204.
Depending on the desired configuration, system memory 206 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 206 may include an operating system 220, one or more programs 222, and program data 224. In some implementations, the program 222 can be arranged to execute instructions on the operating system with the program data 224 by the one or more processors 204.
Computing device 200 may also include an interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to the basic configuration 202 via the bus/interface controller 230. The example output device 242 includes a graphics processing unit 248 and an audio processing unit 250. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 252. Example peripheral interfaces 244 can include a serial interface controller 254 and a parallel interface controller 256, which can be configured to facilitate communications with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 258. An example communication device 246 may include a network controller 260, which may be arranged to facilitate communications with one or more other computing devices 262 over a network communication link via one or more communication ports 264.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
Computing device 200 may be implemented as a server, e.g., a file server, a database server, an application server, etc., which may be, for example, a Personal Digital Assistant (PDA), a wireless web-browsing device, an application-specific device, or a hybrid device that include any of the above functions. Computing device 200 may also be implemented as a personal computer including both desktop and notebook computer configurations. In some embodiments, the computing device 200 is configured to perform a web page processing method 400.
The web page processing method is suitable for being executed in a web server 110, the web server 110 is in communication connection with a plurality of clients 120, 130 and 140, and the web server 110 can obtain a web request from the clients and send rendered target web page files to the clients 120, 130 and 140. Clients 120, 130, and 140 may be implemented as any client capable of communicating data with web server 110 as known in the art, and the present invention is not limited by the particular type of client 120, 130, and 140. In an embodiment of the present invention, clients 120, 130, and 140 may be implemented as a mobile terminal. Fig. 3 shows a block diagram of a mobile terminal 300 according to an embodiment of the present invention. The mobile terminal 300 may include a memory interface 302, one or more data processors, image processors and/or central processing units 304, and a peripheral interface 306.
The memory interface 302, the one or more processors 304, and/or the peripherals interface 306 can be discrete components or can be integrated in one or more integrated circuits. In the mobile terminal 300, the various elements may be coupled by one or more communication buses or signal lines. Sensors, devices, and subsystems can be coupled to peripheral interface 306 to facilitate a variety of functions.
For example, a motion sensor 310, a light sensor 312, and a distance sensor 314 may be coupled to the peripheral interface 306 to facilitate directional, lighting, and ranging functions. Other sensors 316 may also be coupled to the peripheral interface 306, such as a positioning system (e.g., a GPS receiver), a temperature sensor, a biometric sensor, or other sensing device, to help perform related functions.
The memory interface 302 may be coupled with a memory 350. The memory 350 may include an internal memory such as, but not limited to, a Static Random Access Memory (SRAM), a non-volatile memory (NVRAM), and the like; the external memory may be, for example, a hard disk, a removable hard disk, a U disk, etc., but is not limited thereto. The memory 350 may store program instructions that may include, for example, an operating system 352 and applications 354. The operating system 352 may be, for example, Android, iOS, Windows Phone, etc., which includes program instructions for handling basic system services and for performing hardware-dependent tasks. The memory 350 may also store applications 354, which applications 354 may include program instructions for implementing various user-desired functions. The application 354 may be provided independently of the operating system or may be native to the operating system. In addition, a driver module may also be added to the operating system when the application 354 is installed in the mobile terminal 300. While the mobile terminal 300 is operating, the operating system 352 is loaded from the memory 350 and executed by the processor 304. The application 354, when running, is also loaded from the memory 350 and executed by the processor 304. The application 354 runs on top of an operating system, and utilizes the operating system and interfaces provided by underlying hardware to implement various user-desired functions, such as instant messaging, web browsing, picture management, sports and leisure, and the like. In one of the applications 354, one of the applications is the page-displaying application 360 residing in the mobile terminal 300 according to the present invention, the processor 304 may execute steps of a page-displaying method 300 to execute the page-displaying application 360, render the received rendered file, and display the target webpage file.
FIG. 4 shows a flowchart of a web page processing method 400 according to an embodiment of the invention. The method 400 is performed in a network server, such as implemented in a computing device 100. As shown in FIG. 4, the method begins at step S410 by obtaining a configuration file, combining a first type file and a second type file according to predetermined rules in the configuration file to generate a rendered file, the second type file having a predetermined format suitable for processing by a web application residing on a web server, in step S410.
In this step, the configuration file of the page developed by the web server, suitable for display at the client, is called from a database in the web server. The configuration file includes data of all static content and dynamic content in the page, such as content presented in text and picture form, and the structure of the web page, etc., and the data form of the configuration file is not limited by the present invention. The static content in the configuration file is content which is stable in the page within a period of time, and data in the content does not need to change with time according to business requirements, such as information of a webpage service provider and the like. The dynamic content of the configuration file is the content which needs to be updated at irregular time or fixed time, and the data in the page needs to be changed along with time when the page is presented, for example, the current time and date when the user accesses the page in the webpage, the real-time click quantity of the information displayed in the page of the page service provider, the selling price of a certain commodity and the like.
The configuration files are obtained, the first type files combined according to the configuration files are web page files and script files, the second type files have a preset format and are template files and are suitable for being processed by network application. When the configuration files are combined to generate different types of files, the position occupation of the input template file is created in the webpage file. According to one embodiment of the invention, the template file of the second type file is a freemaker template file. The present invention does not limit the file type of the template file. And when the template file is the Freemarker template file, compiling a Freemarker scripting language in the Freemarker template file when a second type file is generated by combination. Freemaker is a tool that is based on templates and data to be changed and used to generate output web pages, emails, configuration files, source code, etc.
And after the first type file and the second type file are generated in a combined mode, a rendering file is further generated so that a network application in the network server can render the rendering file. The rendering file includes a template file, a web page file, and a script file. When the rendering file is generated, the first type file and the second type file are packaged, according to one embodiment of the invention, the files are packaged by webpack, and the method for packaging the files is not limited. When packing a file using webpack, in the webpack packing configuration, the type of the packed file is set. Reading the content of the Freemarker template file, setting the type of the packed file as the Freemarker template file, correspondingly setting the content of the Freemarker template file in the packing configuration, and changing the file extension name of the second type file into ftl. After the packing configuration of the webpack is completed, the webpack packing script is operated, and the first type file and the second type file are combined.
Subsequently, step S420 is performed, a web page request of a client communicatively connected to the web server is received, a rendering file corresponding to the web page request is obtained, and the rendering file is rendered by the web application to generate a target web page file. In this step, the web server listens for web page requests from the client and responds to the web page requests. And the network application resident in the network server processes the network request and judges the target webpage requested to be accessed by the webpage request. And acquiring the generated rendered file of the target webpage with the same identification from the database according to the identification of the target webpage. And rendering the rendering file to generate a target webpage file. The method comprises the step of obtaining network data corresponding to the webpage request from a database. The network data acquired in this step is the network data required by the dynamic content of the web page configuration file, and the network data in the database can be set to change along with the natural time, or be manually set and changed by a developer. And after the network data are acquired, loading the network data into a template file in the rendering file to generate a target webpage file. The generated target webpage file comprises a webpage file and a script file.
Finally, step S430 is entered, and the target webpage file is sent to the client, so that the target webpage file is presented at the client. The rendered file is directly processed through the network application in the network server, and the rendered target webpage file is sent to the client, so that the time for processing and rendering the file at the client is saved, and the use experience of the user is improved.
According to an embodiment of the present invention, the step of obtaining the configuration file, generating the first type file and the second type file, and further generating the rendering file further includes dividing the web page according to the static content and the dynamic content. And for the dynamic content, generating a first type file and a second type file from the configuration file, and only generating the first type file from the static content. And after generating the rendering file, sending the rendering file to the client for direct rendering to obtain a target webpage file with static content. The invention does not limit the way of rendering the file by the client. When the client renders the rendered file with vue, the web server creates vue mount points when generating the first type of file. After receiving the target webpage file of the dynamic content part sent by the network server, the client combines the target webpage file with the static content rendered at the client for displaying.
FIG. 5 is a diagram illustrating the effect of page display according to an embodiment of the present invention, as shown in FIG. 5, the "Wheatstone" module is rendered on the client as the static content of the web page, and the "Wheatstone" module is rendered on the web server as the dynamic content of the web page. The structure can ensure that the 'purchase-benefit vehicle' module can be immediately displayed after the page downloading is finished.
According to a web page processing method 400 of the present invention, first, a first type file is prepared, where the first type file is a web page file, and a place occupying of a template file is created in the web page file as a second type file, and an example code of the step is as follows:
reading the content of the Freemarker template file, setting the type of the packaging file as the Freemarker template file, correspondingly setting the content of the Freemarker template file in the packaging configuration, and changing the file extension name of the second type file into ftl, wherein an example code of the step is as follows:
after completing the packing configuration of the webpack, running a webpack packing script, merging the first type file and the second type file, and obtaining a code of a rendering file as follows:
when a client downloads a page, receiving rendered webpage content from a network server, wherein codes of the received content are as follows:
according to the technical scheme of the webpage processing method, the configuration file is obtained, the first type file and the second type file are combined according to the preset rule in the configuration file to generate the rendering file, and the second type file has the preset format and is suitable for being processed by the network application residing on the network server; receiving a webpage request of a client end in communication connection with a network server, acquiring a rendering file corresponding to the webpage request, and rendering the rendering file by a network application to generate a target webpage file; and sending the target webpage file to the client so as to present the target webpage file at the client. The rendered file is directly processed through the network application in the network server, and the rendered target webpage file is sent to the client, so that the time for processing and rendering the file at the client is saved, and the use experience of the user is improved.
And furthermore, the second type file in the configuration file has a preset format and is suitable for being processed by a network application residing on a network server, and corresponding data is obtained from the database for filling in the processing process, wherein the second type file with the preset format is a template file, a common template can be shared under the condition that the file content data are different, and then the corresponding or latest data are used for filling, so that the file processing efficiency is improved, the second type file is particularly suitable for processing dynamic content with changed data, and the webpage presenting speed is further promoted.
A9, the web page processing method according to any one of a7-A8, further comprising the steps of: and merging and displaying the target webpage files of the static content and the dynamic content in the client.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or groups of devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. Modules or units or groups in embodiments may be combined into one module or unit or group and may furthermore be divided into sub-modules or sub-units or sub-groups. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the test data processing method of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer-readable media includes both computer storage media and communication media. Computer storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of computer readable media.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.
Claims (10)
1. A web page processing method adapted to be executed in a web server, the method comprising the steps of:
obtaining a configuration file, and combining a first type file and a second type file according to a predetermined rule in the configuration file to generate a rendering file, wherein the second type file has a predetermined format and is suitable for being processed by a network application residing on the network server;
receiving a webpage request of a client end in communication connection with the network server, acquiring a rendering file corresponding to the webpage request, and rendering the rendering file by the network application to generate a target webpage file;
and sending the target webpage file to the client so as to present the target webpage file on the client.
2. A method of web page processing as claimed in claim 1, wherein said second type file is a template file.
3. The web page processing method according to claim 1 or 2, wherein the step of rendering the rendering file by the web application to generate a target web page file comprises:
the network application acquires network data corresponding to the webpage request from a database residing on the network server;
and loading the network data into the template file in the rendering file to generate a target webpage file.
4. A method of web page processing according to claim 1, wherein said first type files comprise one or more web page files and one or more script files.
5. A method of web page processing according to any of claims 1 to 4, wherein the rendering file comprises a template file, a web page file and a script file.
6. A web page processing method according to claim 5, wherein said target web page file includes a web page file and a script file.
7. The web page processing method according to claim 1, further comprising the steps of: dividing the content of the target webpage into static content and dynamic content;
and the rendering file is the rendering file of the dynamic content in the target webpage file.
8. The web page processing method according to claim 7, further comprising the steps of: and sending the rendering file of the static content in the target webpage content to the client so as to directly render in the client to obtain the target webpage file of the static content.
9. A computing device, comprising:
at least one processor; and
at least one memory including computer program instructions;
the at least one memory and the computer program instructions are configured to, with the at least one processor, cause the computing device to perform the method of any of claims 1-8.
10. A readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the method of any of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010250392.2A CN111581473B (en) | 2020-04-01 | 2020-04-01 | Webpage processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010250392.2A CN111581473B (en) | 2020-04-01 | 2020-04-01 | Webpage processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111581473A true CN111581473A (en) | 2020-08-25 |
CN111581473B CN111581473B (en) | 2024-03-15 |
Family
ID=72114895
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010250392.2A Active CN111581473B (en) | 2020-04-01 | 2020-04-01 | Webpage processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111581473B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112131844A (en) * | 2020-10-10 | 2020-12-25 | 北京字跳网络技术有限公司 | Online document editing method and device and electronic equipment |
CN112989249A (en) * | 2021-02-19 | 2021-06-18 | 北京皮尔布莱尼软件有限公司 | Page display method, computing device and storage medium |
CN113095053A (en) * | 2021-04-12 | 2021-07-09 | 中国工商银行股份有限公司 | Webpage table customizing method and device |
CN113760252A (en) * | 2020-11-16 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Data visualization method, device, computer system and readable storage medium |
CN117131296A (en) * | 2022-05-20 | 2023-11-28 | 腾讯科技(深圳)有限公司 | Content presentation method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180210715A1 (en) * | 2017-01-25 | 2018-07-26 | Wal-Mart Stores, Inc. | Systems, method, and non-transitory computer-readable storage media for generating code for displaying a webpage |
CN109101300A (en) * | 2018-06-14 | 2018-12-28 | 腾讯科技(深圳)有限公司 | A kind of page rendering method, apparatus and terminal |
CN110442811A (en) * | 2019-08-14 | 2019-11-12 | 广州虎牙科技有限公司 | A kind of processing method of the page, device, computer equipment and storage medium |
CN110795195A (en) * | 2019-10-31 | 2020-02-14 | 百度在线网络技术(北京)有限公司 | Webpage rendering method and device, electronic equipment and storage medium |
-
2020
- 2020-04-01 CN CN202010250392.2A patent/CN111581473B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180210715A1 (en) * | 2017-01-25 | 2018-07-26 | Wal-Mart Stores, Inc. | Systems, method, and non-transitory computer-readable storage media for generating code for displaying a webpage |
CN109101300A (en) * | 2018-06-14 | 2018-12-28 | 腾讯科技(深圳)有限公司 | A kind of page rendering method, apparatus and terminal |
CN110442811A (en) * | 2019-08-14 | 2019-11-12 | 广州虎牙科技有限公司 | A kind of processing method of the page, device, computer equipment and storage medium |
CN110795195A (en) * | 2019-10-31 | 2020-02-14 | 百度在线网络技术(北京)有限公司 | Webpage rendering method and device, electronic equipment and storage medium |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112131844A (en) * | 2020-10-10 | 2020-12-25 | 北京字跳网络技术有限公司 | Online document editing method and device and electronic equipment |
CN113760252A (en) * | 2020-11-16 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Data visualization method, device, computer system and readable storage medium |
CN112989249A (en) * | 2021-02-19 | 2021-06-18 | 北京皮尔布莱尼软件有限公司 | Page display method, computing device and storage medium |
CN113095053A (en) * | 2021-04-12 | 2021-07-09 | 中国工商银行股份有限公司 | Webpage table customizing method and device |
CN117131296A (en) * | 2022-05-20 | 2023-11-28 | 腾讯科技(深圳)有限公司 | Content presentation method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111581473B (en) | 2024-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111581473B (en) | Webpage processing method | |
US11606343B2 (en) | Utilizing a customized digital font to identify a computing device | |
JP5982586B2 (en) | Resource calls for hybrid applications | |
US20130019159A1 (en) | Mobile web browser for pre-loading web pages | |
US20200089396A1 (en) | Automatically generating and applying graphical user interface resize-contraints based on design semantics | |
US20110258043A1 (en) | Systems and methods for providing one or more pages from an electronic document | |
WO2016168983A1 (en) | Method and electronic device for displaying web page | |
CN109347898B (en) | Scene information sending method, scene information display method, server and mobile terminal | |
WO2013085595A1 (en) | Selective image loading in mobile browsers | |
CN110765284A (en) | Method, system, computing device and storage medium for generating presentation | |
CN111931093A (en) | Display method of table in page and mobile terminal | |
US11080322B2 (en) | Search methods, servers, and systems | |
US20160315997A1 (en) | File transfer method, device, and system | |
CN112417339A (en) | Page loading method and device, computing equipment and readable storage medium | |
CN111444448B (en) | Data processing method, server and system | |
RU2634221C2 (en) | Method and device for drawing presentation of electronic document on screen | |
US20230298073A1 (en) | Media processing techniques for enhancing content | |
CN112257388B (en) | Content display method, mobile terminal and system | |
CN114780266B (en) | Resource access method, system and computing equipment | |
US11379653B2 (en) | Rendering method for on-demand loading of PDF file on network | |
CN110992131B (en) | Form processing method, form processing device and storage medium | |
CN111782237A (en) | Updating method of application suitable for running in mobile terminal | |
EP3001311A1 (en) | Method for automatically converting web applications into application that can be installed automatically on a plurality of platforms | |
CN107015826B (en) | Script file loading method, terminal and server | |
CN115062255B (en) | Website adaptation method and device, electronic equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |