CN108632361B - Webpage online method, server, system and storage medium - Google Patents
Webpage online method, server, system and storage medium Download PDFInfo
- Publication number
- CN108632361B CN108632361B CN201810326098.8A CN201810326098A CN108632361B CN 108632361 B CN108632361 B CN 108632361B CN 201810326098 A CN201810326098 A CN 201810326098A CN 108632361 B CN108632361 B CN 108632361B
- Authority
- CN
- China
- Prior art keywords
- webpage
- online
- server
- webm
- compiled
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000013507 mapping Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 4
- 238000011161 development Methods 0.000 abstract description 30
- 238000004891 communication Methods 0.000 abstract description 6
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a webpage online method, a server, a system and a storage medium. The method comprises the following steps: the method comprises the steps that a WebM server of a webpage building platform receives a user request sent by WebM editing equipment, analyzes the user request and determines page information of a webpage to be online corresponding to the user request; if the WebM server detects that the compiling component exists in the webpage to be online, compiling webpage data to be compiled of the webpage to be online according to the compiling component; and the WebM server generates an online request according to the compiled webpage data, and sends the online request to the back-end server so that the back-end server can online the webpage to be online according to the online request. The technical scheme of the embodiment of the invention avoids the participation of the back-end developer, improves the development efficiency and saves the communication and development cost.
Description
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a webpage online method, a server, a system and a storage medium.
Background
With the rapid development of network technology, promotion or preferential activities of some products can be promoted through the network. Before a campaign, a campaign web page of a related topic needs to be made, so that after a visitor clicks on a campaign website sent by a publisher, the visitor can see a linked campaign interface, thereby knowing campaign information.
Generally, the demand of the active web page is large, and after the front-end developer develops the web page script, the back-end developer needs to embed the mapping relationship between the website and the active web page into the online address of the script, so as to complete the online of the active web page. When the front-end developer needs to change the webpage script, the corresponding back-end developer needs to be found in time to help change, so that the communication and development cost is increased invisibly, and the development efficiency is reduced.
Disclosure of Invention
The embodiment of the invention provides a webpage online method, a server, a system and a storage medium, which are used for avoiding the participation of back-end developers, improving the development efficiency and saving the communication and development cost.
In a first aspect, an embodiment of the present invention provides a method for web page online, including:
a web page building platform (WebM) server receives a user request sent by a WebM editing device, analyzes the user request and determines page information of a to-be-on-line web page corresponding to the user request;
if the WebM server detects that a compiling component exists in the webpage to be online, compiling webpage data to be compiled of the webpage to be online according to the compiling component;
and the WebM server generates an online request according to the compiled webpage data, and sends the online request to a back-end server so that the back-end server can online the webpage to be online according to the online request.
In a second aspect, an embodiment of the present invention further provides a WebM server for a web page building platform, including:
the webpage information determining module is used for receiving a user request sent by the WebM editing equipment, analyzing the user request and determining the webpage information of the webpage to be online corresponding to the user request;
the compiling module is used for compiling the webpage data to be compiled of the webpage to be online according to the compiling component if the compiling component is detected to exist in the webpage to be online;
and the online request sending module is used for generating an online request according to the compiled webpage data and sending the online request to a back-end server so that the back-end server can online the webpage to be online according to the online request.
In a third aspect, an embodiment of the present invention further provides a web page online system, where the system includes: the method comprises the steps that a webpage building platform WebM server, WebM editing equipment and a back-end server are arranged; wherein,
the WebM server is used for realizing the online method of the webpage in any embodiment of the invention;
the WebM editing equipment is used for generating a user request according to user operation and sending the user request to the WebM server;
and the back-end server is used for uploading the webpage to be uploaded according to the uploading request.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for getting web pages online according to any embodiment of the present invention.
The embodiment of the invention receives a user request sent by WebM editing equipment through a WebM server of a webpage building platform, analyzes the user request and determines the page information of a webpage to be online corresponding to the user request; if the compiling component is detected to exist in the webpage to be online, compiling webpage data to be compiled of the webpage to be online according to the compiling component; and generating an online request according to the compiled webpage data, and sending the online request to the back-end server so that the back-end server can online the webpage to be online according to the online request. By utilizing the compiling component in the WebM server, a front-end developer can omit the process of establishing a website corresponding to the active webpage by the back-end server, directly transfer the active webpage to the compiling component, and upload the active webpage and the corresponding website through the compiling component, so that the development efficiency is greatly improved, and the communication and development cost is saved.
Drawings
Fig. 1 is a flowchart of a method for web page online according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a WebM server of a web page building platform according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a web page online system according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a web page online method according to an embodiment of the present invention, where this embodiment is applicable to an online situation after compiling a customized development script, and the method can be executed by a web page building platform WebM server in a web page online system, and specifically includes the following steps:
s110, a webpage building platform WebM server receives a user request sent by a WebM editing device, analyzes the user request and determines page information of a webpage to be online corresponding to the user request.
The WebM (WebMarket, modular web page building platform) is an online platform for a user to build a web page by dragging a page component. The WebM editing device refers to a device that can edit a web page, which provides rich components. The WebM editing device in this embodiment is a compiling device in which a compiling component is added to an existing component, where the compiling component is used to automatically compile a web page development script defined by a developer. Since the non-developers do not have the development professional knowledge, the non-developers can only build the web page by using the existing components in the WebM editing equipment, and the compiling component in the embodiment is used by the front-end developer according to the customized development script. The web page to be online may be, but is not limited to, an active web page for a campaign, i.e., an HTML (HyperText Markup Language) template. The developer can self-define and develop the webpage script corresponding to the active webpage according to the user requirement and the actual situation so as to meet the personalized requirement of the user. Illustratively, after a developer logs in a WebM editing device, a compiling component is dragged to an editing area, a script of a to-be-online webpage, which is edited in advance according to a preset specification, is led into an input box of the compiling component, and after clicking preview, the WebM editing device sends a user request to a WebM server, so that the WebM server compiles a custom development script according to the user request, wherein the user request may be a compiling request for compiling the custom development script.
Optionally, after the WebM server receives the user request, the WebM server parses the user request, and determines page information of the to-be-online web page corresponding to the user request, where the determining includes:
analyzing request parameters in a user request, and acquiring a user session identifier and a page identifier of a webpage to be online; determining user information corresponding to the user session identification according to the user session identification and a preset database; acquiring page configuration information and page data information of a webpage to be online according to a page identifier, wherein the page configuration information comprises component configuration information and environment configuration information; and generating a compiling environment parameter of the webpage to be online according to the environment configuration information.
In this embodiment, after the controller in the WebM server receives the user request, the controller may analyze the request parameter in the user request through an express application framework built in nodejs, and obtain a user session identifier (session id) and a page identifier (pageid) of a to-be-online webpage. The preset database may be a Redis (remote Dictionary Server) database. And the WebM server inquires the basic information and the authority level of the user corresponding to the user session identifier in a preset database according to the user session identifier, so that all the operation behaviors of the user are recorded. And a controller in the WebM server acquires page configuration information and page data information of the webpage to be online according to the page identification, wherein the page data information refers to page data used for generating the webpage to be online. Illustratively, the page configuration information may include, but is not limited to, title, developer, component identification, edit status, and the like. The environment configuration information may refer to a current environment selected by a user, such as a joint debugging environment, a testing environment, a pre-release environment, and an online environment.
Illustratively, the user request may be parsed by the following code, and the page information of the web page to be online may be determined:
the getPage is used for acquiring the page configuration information and the page data information of the webpage to be online according to the page identifier. And the Options are used for generating compiling environment parameters when the webpage to be online is compiled according to the environment configuration information.
And S120, if the WebM server detects that the compiling component exists in the webpage to be online, compiling the webpage data to be compiled of the webpage to be online according to the compiling component.
In the embodiment, the compiling component is required to be utilized to compile the customized development script, so that the WebM server detects whether the compiling component exists in the web page to be online according to the page information of the web page to be online, if so, the web page to be online is the development script customized by a developer, and at this time, the customized development flow is performed, and if not, the web page to be online is the web page built by the user by utilizing the original component, and is not the customized development script, and at this time, the original development flow is performed. For example, the original development flow needs to be compiled by using a gulp shell command.
Optionally, before S120, the method further includes:
the WebM server acquires each component identification in the webpage to be online according to the component configuration information in the page information; and the WebM server matches each component identifier with the compiling component identifier, and if the matching is successful, the compiling component is determined to exist in the webpage to be online.
In this embodiment, it can be determined according to the information in the component configuration in the page information whether the web page to be online is a web script edited by a non-professional on the WebM editing device by using the original component, or a custom development script uploaded by a professional on the WebM editing device by using the compiling component. In this embodiment, each original component and each compiling component on the WebM editing device correspond to a unique component identifier, and the component identifier corresponding to each original component and each compiling component is pre-stored in the database of the WebM server. The WebM server obtains each component identification contained in the webpage to be online according to the component configuration information, matches each component identification with the pre-stored compiling component identification, if the matching is successful, the fact that the component identification which is the same as the compiling component identification exists in the webpage to be online is indicated, at the moment, the fact that the compiling component exists in the webpage to be online can be determined, namely the webpage to be online is a custom development script uploaded by professionals on WebM editing equipment through the compiling component. And if the matching fails, determining that the compiling component does not exist in the webpage to be online, namely indicating that the webpage to be online is a webpage script edited by a non-professional on the WebM editing equipment by using the original component.
Optionally, before compiling the to-be-compiled webpage data of the to-be-online webpage according to the compiling component in S120, the method further includes:
the WebM server reads webpage data to be compiled in the page information; or,
the WebM server sends a webpage data request to the WebM editing equipment, receives an externally input storage path sent by the WebM editing equipment, and determines webpage data to be compiled of a webpage to be online according to the storage path.
Before compiling the webpage data to be compiled of the webpage to be online according to the compiling component, the WebM server needs to acquire the webpage data to be compiled of the webpage to be online. In this embodiment, but not limited to, two ways of obtaining the webpage data to be compiled are provided, one of which may be that when a compiling component exists in the webpage to be online, it indicates that the webpage data to be compiled already exists in the page information obtained by analyzing the user request, and at this time, the webpage data to be compiled in the page information may be read, and the page data information in the page information is directly determined as the webpage data to be compiled. The other method may be that the WebM server sends a web page data request to the WebM editing device, and when the WebM editing device receives the web page data request, the WebM editing device displays a selection box of a web page data path on a display interface, so that a user selects a storage path of data to be compiled. The storage path input by the external in the present embodiment may be, but is not limited to, a storage path input by the user through the selection box. The WebM editing device can send the storage path to the WebM server, so that the WebM server can acquire webpage data to be compiled according to the storage path. The WebM editing device may also first store the path to obtain the web page data to be compiled, and then send the web page data to be compiled to the WebM server, so that the WebM server directly obtains the web page data to be compiled. The user can select any one of the webpage acquisition modes to be compiled according to actual requirements, so that the personalized requirements of the user are met, and the user experience is improved.
Optionally, compiling, according to the compiling component, the to-be-compiled web page data of the to-be-online web page in S120, including:
the WebM server decodes the webpage data to be compiled, adds a preset hook function to the webpage data to be compiled, and constructs a data placeholder according to a preset specification; and compiling the added webpage data to be compiled according to the environment configuration information in the page information to generate compiled webpage data.
Some data in the web page data to be compiled acquired in this embodiment are encrypted, so that the web page data to be compiled needs to be decoded first. The preset hook function may be a PHP (Hypertext Preprocessor) hook for capturing and processing a specific message. The preset specification can be a specification agreed by both the WebM server and the back-end server in advance, the WebM server can determine the quantity and the identification of the placeholders of the constructed data according to the preset rule, so that when the webpage data are sent to the back-end server, the back-end server can automatically identify the constructed placeholders and store the webpage data to the positions corresponding to the placeholders. In this embodiment, a compiling environment parameter is generated according to an environment configuration parameter in the page information, and the webpage data to be compiled after the hook function is correspondingly added according to the compiling environment parameter is compiled, so that the compiled webpage data is generated to perform online webpage.
Optionally, after the WebM server decodes the web page data to be compiled, the method further includes:
the WebM server adds a mutual jump logic script of a PC page and a mobile terminal page.
The WebM server may add the inter-hop logic script to the decoded web page to be compiled, so that the developed H5(HTML5) page and PC (Personal Computer) page may be automatically identified and adjusted at the mobile end and the PC end. For example, if a PC page is opened at the mobile phone end, the user can automatically jump to an H5 page and adjust to the pixel ratio of the mobile phone, thereby improving the user experience.
S130, the WebM server generates an online request according to the compiled webpage data, and sends the online request to the back-end server, so that the back-end server can online the webpage to be online according to the online request.
The WebM server in this embodiment may fill the compiled web page data into a JSON (JavaScript Object Notation) file, then read the web page data in the JSON file through a callback function, and send the web page data to a back-end server, thereby performing online.
Optionally, the WebM server in S130 generates an online request according to the compiled web page data, including:
the WebM server creates a uniform resource locator corresponding to the webpage to be online according to the environment configuration information in the page information; and the WebM server generates an online request according to the uniform resource locator and the compiled webpage data.
The WebM server generates compiling environment parameters according to the environment configuration information, and creates a uniform resource locator corresponding to the webpage to be online according to the compiling environment parameters, namely, creates a website corresponding to the webpage to be online, so that the process of mapping a template by a back-end server, namely, the process of creating a website corresponding to an active webpage is omitted, and the development efficiency is greatly improved.
Optionally, the step S130 of enabling the back-end server to bring the to-be-brought-to-line webpage on-line according to the on-line request includes:
the back-end server acquires the compiled webpage data and the uniform resource locator according to the online request, and stores the page data in the compiled webpage data according to the placeholder in the compiled webpage data; and the back-end server establishes a mapping relation between the compiled webpage data and the uniform resource locator and sends the mapping relation to the online server.
When the back-end server receives the online request, the compiled webpage data and the uniform resource locator are obtained, the placeholder in the compiled webpage data is obtained, the storage position corresponding to the placeholder is determined according to the preset specification, and the page data in the webpage data is stored in the storage position. The back-end server in this embodiment may be an intranet server, and when it is tested in the intranet server that there is no problem in the web page to be online, the mapping relationship is sent to the online server to implement public network access, so that any user may link to a corresponding active web page by clicking an address, thereby implementing online of the web page.
The embodiment of the invention receives a user request sent by WebM editing equipment through a WebM server of a webpage building platform, analyzes the user request and determines the page information of a webpage to be online corresponding to the user request; if the compiling component is detected to exist in the webpage to be online, compiling webpage data to be compiled of the webpage to be online according to the compiling component; and generating an online request according to the compiled webpage data, and sending the online request to the back-end server so that the back-end server can online the webpage to be online according to the online request. By utilizing the compiling component in the WebM server, a front-end developer can omit the process of establishing a website corresponding to the active webpage by the back-end server, directly transfer the active webpage to the compiling component, and upload the active webpage and the corresponding website through the compiling component, so that the development efficiency is greatly improved, and the communication and development cost is saved.
Example two
Fig. 2 is a schematic structural diagram of a WebM server of a web page building platform according to a second embodiment of the present invention, which is applicable to a situation that a customized development script is compiled and then uploaded. The WebM server of the webpage building platform comprises: a page information determination module 210, a compiling module 220 and an online request sending module 230.
The page information determining module 210 is configured to receive a user request sent by the WebM editing device, analyze the user request, and determine page information of a to-be-online webpage corresponding to the user request; the compiling module 220 is configured to compile, according to a compiling component, to-be-compiled webpage data of the to-be-online webpage if it is detected that the compiling component exists in the to-be-online webpage; the online request sending module 230 is configured to generate an online request according to the compiled webpage data, and send the online request to the back-end server, so that the back-end server can online the webpage to be online according to the online request.
Optionally, the server further includes:
the component identifier acquisition module is used for acquiring each component identifier in the webpage to be online according to component configuration information in the page information before compiling webpage data to be compiled of the webpage to be online according to the compiling component if the compiling component is detected to exist in the webpage to be online;
and the compiling component determining module is used for matching each component identifier with the compiling component identifier, and if the matching is successful, determining that the compiling component exists in the webpage to be online.
Optionally, the server further includes:
the to-be-compiled webpage data determining module is used for reading the to-be-compiled webpage data in the page information before compiling the to-be-compiled webpage data of the to-be-online webpage according to the compiling component; or,
and sending a webpage data request to the WebM editing equipment, receiving an externally input storage path sent by the WebM editing equipment, and determining webpage data to be compiled of the webpage to be on-line according to the storage path.
Optionally, the compiling module 220 is specifically configured to:
decoding webpage data to be compiled, adding a preset hook function into the webpage data to be compiled, and constructing a data placeholder according to a preset specification; and compiling the added webpage data to be compiled according to the environment configuration information in the page information to generate compiled webpage data.
Optionally, the compiling module 220 is further configured to: after the WebM server decodes the webpage data to be compiled, a mutual jump logic script of a PC (personal computer) page and a mobile terminal page is added.
Optionally, the online request sending module 230 is further configured to:
according to the environment configuration information in the page information, creating a uniform resource locator corresponding to the webpage to be online; and generating an online request according to the uniform resource locator and the compiled webpage data.
Optionally, the backend server is configured to:
acquiring compiled webpage data and uniform resource locators according to the online request, and storing the page data in the compiled webpage data according to placeholders in the compiled webpage data; and establishing a mapping relation between the compiled webpage data and the uniform resource locator, and sending the mapping relation to the online server.
The WebM server of the webpage building platform can execute the webpage online method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the webpage online method.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a web page online system according to a third embodiment of the present invention, and as shown in fig. 3, the system includes: a web page building platform, a WebM server 310, a WebM editing device 320, and a backend server 330.
The WebM server is used for realizing the webpage online method provided by any embodiment of the invention; the WebM editing equipment is used for generating a user request according to user operation and sending the user request to the WebM server; and the back-end server is used for carrying out online on the web page to be online according to the online request.
The working process of the online webpage system in the embodiment is as follows:
the front-end developer self-defines a script of a development activity webpage according to actual requirements and preset specifications, after logging in the WebM editing device 320, drags a compiling component in the WebM editing device 320 to a compiling area, then selects the compiling component, pastes a pre-compiled self-defined activity webpage to an input frame of the compiling component, clicks preview, generates a user request, and sends the user request to the WebM server 310. The WebM server 310 parses the user request after receiving the user request, determines page information of the to-be-online web page, compiles the to-be-compiled web page data of the to-be-online web page according to the compiling component when detecting that the compiling component exists in the to-be-online web page, creates a uniform resource locator corresponding to the to-be-online web page, generates an online request according to the compiled web page data and the uniform resource locator, sends the online request to the back-end server 330, after receiving the online request, the back-end server 330 online the to-be-online web page, establishes a mapping relationship between the web page data and the uniform resource locator, and sends the mapping relationship to the online server, thereby completing online of the web page.
In this embodiment, when the front-end developer wants to change the active web page, the changed web page script is pasted to the input box of the compiling component in the WebM editing device 320 again, and the modified active web page is on-line again.
In the web page online system in this embodiment, the compiling component is added to the WebM editing device 320, the WebM server 310 compiles the page data and creates a corresponding website by using the compiling component, and the back-end server 330 only needs to send the mapping relationship between the web page to be online and the website to the online server, and the online of the web page can be realized without the help of a back-end developer. Thereby improving the development efficiency and saving the communication and development cost.
Example four
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements a web page online method according to any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute the method for online accessing a web page according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (9)
1. A method for online of a web page is characterized by comprising the following steps:
a web page building platform (WebM) server receives a user request sent by a WebM editing device, analyzes the user request and determines page information of a to-be-on-line web page corresponding to the user request;
if the WebM server detects that a compiling component exists in the webpage to be online, compiling webpage data to be compiled of the webpage to be online according to the compiling component;
the WebM server generates an online request according to the compiled webpage data, and sends the online request to a back-end server so that the back-end server can online the webpage to be online according to the online request;
if it is detected that the compiling component exists in the webpage to be online, before compiling the webpage data to be compiled of the webpage to be online according to the compiling component, the method further comprises the following steps:
the WebM server acquires each component identification in the webpage to be online according to the component configuration information in the page information;
and the WebM server matches the component identifications with the compiling component identifications, and if the matching is successful, the compiling component is determined to exist in the webpage to be online.
2. The method of claim 1, before compiling the to-be-compiled webpage data of the to-be-online webpage according to the compiling component, comprising:
the WebM server reads webpage data to be compiled in the page information; or,
the WebM server sends a webpage data request to the WebM editing equipment, receives an externally input storage path sent by the WebM editing equipment, and determines webpage data to be compiled of the webpage to be online according to the storage path.
3. The method of claim 1, wherein the compiling, by the WebM server, the web page data to be compiled of the web page to be online according to the compiling component includes:
the WebM server decodes the webpage data to be compiled, adds a preset hook function to the webpage data to be compiled, and constructs a data placeholder according to a preset specification;
and compiling the added webpage data to be compiled according to the environment configuration information in the page information to generate compiled webpage data.
4. The method of claim 3, after the WebM server decodes the web page data to be compiled, further comprising:
and the WebM server adds a mutual-jumping logic script of a PC page and a mobile terminal page.
5. The method of claim 3, wherein the WebM server generates an online request according to the compiled web page data, and wherein the online request comprises:
the WebM server creates a uniform resource locator corresponding to the webpage to be online according to the environment configuration information in the page information;
and the WebM server generates the online request according to the uniform resource locator and the compiled webpage data.
6. The method according to claim 5, wherein the backend server uploads the to-be-uploaded webpage according to the upload request, and comprises:
the back-end server acquires the compiled webpage data and the uniform resource locator according to the online request, and stores the page data in the compiled webpage data according to the placeholder in the compiled webpage data;
and the back-end server establishes a mapping relation between the compiled webpage data and the uniform resource locator and sends the mapping relation to an online server.
7. A web page building platform (WebM) server is characterized by comprising:
the webpage information determining module is used for receiving a user request sent by the WebM editing equipment, analyzing the user request and determining the webpage information of the webpage to be online corresponding to the user request;
the compiling module is used for compiling the webpage data to be compiled of the webpage to be online according to the compiling component if the compiling component is detected to exist in the webpage to be online;
the online request sending module is used for generating an online request according to the compiled webpage data and sending the online request to a back-end server so that the back-end server can online the webpage to be online according to the online request;
the server further comprises:
the component identifier acquisition module is used for acquiring each component identifier in the webpage to be online according to component configuration information in the page information before compiling webpage data to be compiled of the webpage to be online according to the compiling component if the compiling component is detected to exist in the webpage to be online;
and the compiling component determining module is used for matching each component identifier with the compiling component identifier, and if the matching is successful, determining that the compiling component exists in the webpage to be online.
8. A web page online system, the system comprising: the method comprises the steps that a webpage building platform WebM server, WebM editing equipment and a back-end server are arranged; wherein,
the webpage building platform WebM server is used for realizing the online method of the webpage as claimed in any one of claims 1 to 6;
the WebM editing equipment is used for generating a user request according to user operation and sending the user request to the WebM server;
and the back-end server is used for uploading the webpage to be uploaded according to the uploading request.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of on-line of a web page according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810326098.8A CN108632361B (en) | 2018-04-12 | 2018-04-12 | Webpage online method, server, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810326098.8A CN108632361B (en) | 2018-04-12 | 2018-04-12 | Webpage online method, server, system and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108632361A CN108632361A (en) | 2018-10-09 |
CN108632361B true CN108632361B (en) | 2021-06-15 |
Family
ID=63705211
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810326098.8A Active CN108632361B (en) | 2018-04-12 | 2018-04-12 | Webpage online method, server, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108632361B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110275701B (en) * | 2019-06-19 | 2023-05-23 | 网易传媒科技(北京)有限公司 | Data processing method, device, medium and computing equipment |
CN110908652A (en) * | 2019-10-31 | 2020-03-24 | 爱钱进(北京)信息科技有限公司 | Method and device for creating active page and compiling active page |
CN112035107A (en) * | 2020-08-26 | 2020-12-04 | 北京字节跳动网络技术有限公司 | Method, device and equipment for editing webpage elements and storage medium |
CN112235129A (en) * | 2020-09-23 | 2021-01-15 | 新浪网技术(中国)有限公司 | Server online method, system, computer equipment and storage medium |
CN112596714A (en) * | 2020-12-10 | 2021-04-02 | 车巴达(苏州)网络科技有限公司 | Webpage development method, device, terminal, server and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201642A (en) * | 2016-06-29 | 2016-12-07 | 微梦创科网络科技(中国)有限公司 | A kind of template automatization based on NODEJS compiling loading method and system |
CN106227742A (en) * | 2016-07-12 | 2016-12-14 | 乐视控股(北京)有限公司 | Dynamic web page based on B/S pattern generates method, server and system |
CN106371829A (en) * | 2016-08-24 | 2017-02-01 | 北京邮电大学 | Modularization thinking-based template framework design method and system |
CN206479986U (en) * | 2017-01-18 | 2017-09-08 | 深圳市雨云科技有限公司 | Data access system |
CN107357810A (en) * | 2017-06-01 | 2017-11-17 | 武汉斗鱼网络科技有限公司 | A kind of method and system for being used to export special topic landing page |
CN107577459A (en) * | 2017-08-21 | 2018-01-12 | 杰为软件系统(深圳)有限公司 | A kind of towed cross-platform development system and method based on modularization |
-
2018
- 2018-04-12 CN CN201810326098.8A patent/CN108632361B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201642A (en) * | 2016-06-29 | 2016-12-07 | 微梦创科网络科技(中国)有限公司 | A kind of template automatization based on NODEJS compiling loading method and system |
CN106227742A (en) * | 2016-07-12 | 2016-12-14 | 乐视控股(北京)有限公司 | Dynamic web page based on B/S pattern generates method, server and system |
CN106371829A (en) * | 2016-08-24 | 2017-02-01 | 北京邮电大学 | Modularization thinking-based template framework design method and system |
CN206479986U (en) * | 2017-01-18 | 2017-09-08 | 深圳市雨云科技有限公司 | Data access system |
CN107357810A (en) * | 2017-06-01 | 2017-11-17 | 武汉斗鱼网络科技有限公司 | A kind of method and system for being used to export special topic landing page |
CN107577459A (en) * | 2017-08-21 | 2018-01-12 | 杰为软件系统(深圳)有限公司 | A kind of towed cross-platform development system and method based on modularization |
Also Published As
Publication number | Publication date |
---|---|
CN108632361A (en) | 2018-10-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108632361B (en) | Webpage online method, server, system and storage medium | |
CN110198247B (en) | Interface test method and system | |
CN108733738B (en) | Page loading method, system, server and terminal | |
US11538046B2 (en) | Page data acquisition method, apparatus, server, electronic device and computer readable medium | |
US10417315B2 (en) | Configuring a page for drag and drop arrangement of content artifacts in a page development tool | |
US9195522B2 (en) | Method and device for controlling communication between applications in a web runtime environment | |
US20100211865A1 (en) | Cross-browser page visualization generation | |
CN104158836A (en) | Method for rendering mobile application interface through data | |
US20060265469A1 (en) | XML based scripting framework, and methods of providing automated interactions with remote systems | |
CN107508720B (en) | Automatic testing method and device | |
CN108416021B (en) | Browser webpage content processing method and device, electronic equipment and readable medium | |
CN112068824A (en) | Webpage development preview method and device and electronic equipment | |
CN107276842B (en) | Interface test method and device and electronic equipment | |
JP2021039718A (en) | Automated application programming interface (API) specification creation | |
CN111722873A (en) | Code reconstruction method, device, equipment and medium | |
CN111427552A (en) | Front-end component development method and device, computer equipment and storage medium | |
CN113704110A (en) | Automatic testing method and device for user interface | |
CN104156421B (en) | The page shows method, apparatus and system | |
CN104834594B (en) | Web system method of testing and device | |
CN105279076A (en) | Webpage test method and terminal | |
CN113778405A (en) | Cross-platform APP construction method, device, system and medium | |
CN113535586A (en) | Test environment switching method, device, equipment and readable storage medium | |
CN112559357A (en) | Access method and device of third-party equipment, electronic equipment and readable storage medium | |
CN111966931A (en) | Rendering method and device of control | |
CN108090156A (en) | A kind of method that book keeping operation artificial intelligence accounting system can be cooperateed with based on HTML5 establishments |
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 |