CN105320672B - Page authoring method and device - Google Patents
Page authoring method and device Download PDFInfo
- Publication number
- CN105320672B CN105320672B CN201410299175.7A CN201410299175A CN105320672B CN 105320672 B CN105320672 B CN 105320672B CN 201410299175 A CN201410299175 A CN 201410299175A CN 105320672 B CN105320672 B CN 105320672B
- Authority
- CN
- China
- Prior art keywords
- code
- client
- web page
- page files
- server
- 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
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of page authoring method and devices.This method comprises: receiving the message for the first code stored for request server that client is sent, wherein each first code has unique corresponding first code ID;First code and first code ID are sent to client;Receive and save the second code ID in the first code ID of client transmission, and by second code ID labeled as corresponding with the web page files of client-side editing, wherein, second code ID is used to identify the second code in first code, and second code indicates the first code being added to by client in web page files;The message for being used to indicate update or restoring the second code in web page files is sent to client according to the second code ID of preservation.The present invention solves existing to the technical issues of netting page progress tracking scheme needs to occupy more server resource.
Description
Technical field
The present invention relates to internet application fields, in particular to a kind of page authoring method and device.
Background technique
Currently, in order to enable the server to client in the webpage of volume, especially load in webpage development frame
It is tracked and recorded with the web pages component that code form occurs, a kind of feasible web page editing mode is webpage development personnel in visitor
Webpage is edited in family end side, and then regularly uploading to server should be in the corresponding web page files of netting page, also i.e. by developer
Backup to server side by the webpage of client-side editing so that server can to the webpage in client-side editor into
Line trace.However, the size of complete web page files is usually larger, when the client for being used to edit webpage for being connected to server
Quantity it is more when, it will bring biggish pressure for the network data transmission interface of server, and brought for developer
Biggish flow burden.
Another feasible scheme is that web page editing logic is arranged in server side, and client-side is responsible for editing interface
The capture of generation and the edit operation to webpage development personnel, and the edit operation captured is uploaded to server, in turn
So that server is augmented the content in netting page file for being maintained in server side according to the edit operation of upload, is deleted
With modification, the web page files editted finally are issued from server to client after webpage development process.However, for
For this scheme, the operation of Web-Page Software usually requires to occupy more money in other words for the execution of web page editing logic
Source, such as processor resource, system resource and memory resource, when be connected to server for showing editing interface and capturing
When the quantity of the client of edit operation is more, it will biggish processing pressure is brought for server, to influence entire system
The response speed of system.In other words, for above scheme, it is bigger than normal that the client of server connection will face load when more
The problem of.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of page authoring method and device, at least solve it is existing to netting page into
Line trace scheme needs to occupy the technical issues of more server resource.
According to an aspect of an embodiment of the present invention, a kind of page authoring method is provided, comprising: receive client and send
The first code stored for request server message, wherein above-mentioned first code is for being added to by above-mentioned client
In the web page files for holding editor, so that the page object that the corresponding web page display first code of above-mentioned web page files indicates, and it is every
A above-mentioned first code has unique corresponding first code ID;Above-mentioned first code and above-mentioned first are sent to above-mentioned client
Code ID;Receive and save the second code ID in the above-mentioned first code ID that above-mentioned client is sent, and by the above-mentioned second generation
Code ID is labeled as corresponding with the web page files of above-mentioned client-side editing, wherein above-mentioned second code ID is for identifying above-mentioned first
Second code in code, above-mentioned second code indicate the first generation being added to by above-mentioned client in above-mentioned web page files
Code;Update is used to indicate to the transmission of above-mentioned client according to the above-mentioned second code ID of preservation or is restored in above-mentioned web page files
The message of above-mentioned second code.
According to another aspect of an embodiment of the present invention, a kind of server is additionally provided, comprising: the first receiving unit is used for
Receive the message for the first code stored for request server that client is sent, wherein above-mentioned first code is for adding
It is added in the web page files by above-mentioned client-side editing, so that the corresponding web page display first code of above-mentioned web page files indicated
Page object, and each above-mentioned first code has unique corresponding first code ID;First transmission unit is used for above-mentioned visitor
Family end sends above-mentioned first code and above-mentioned first code ID;Second receiving unit, for receiving and saving above-mentioned client hair
The second code ID in above-mentioned first code ID sent, and by above-mentioned second code ID labeled as the net with above-mentioned client-side editing
Page file is corresponding, wherein above-mentioned second code ID is used to identify the second code in above-mentioned first code, above-mentioned second generation code table
Show the first code being added to by above-mentioned client in above-mentioned web page files;Second transmission unit, for according to preservation
Second code ID is stated to be used to indicate update to the transmission of above-mentioned client or restore the above-mentioned second code in above-mentioned web page files
Message.
In embodiments of the present invention, using the web page editing logic setting that will simplify in client-side, by webpage development
The web pages component that personnel are added in web page files the operation in client-side is in the form of its identification item namely code ID
The mode for uploading and being stored in server side has reached in realization under the premise of netting page tracks, has reduced server
Load effect, and then solve it is existing to netting page carry out tracking scheme need to occupy more server resource
Technical problem.Further, in embodiments of the present invention, can be safeguarded according to server side in the form of code ID occur
In the record of netting page, notice client is updated when the web pages component in web page files has corresponding more fresh code,
When either needing the webpage of pre-editing of recovery in client, the web pages component in web page files is restored.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of optional page authoring method according to an embodiment of the present invention;
Fig. 2 is the schematic diagram of another optional page authoring method according to an embodiment of the present invention;
Fig. 3 is the schematic diagram of another optional page authoring method according to an embodiment of the present invention;
Fig. 4 is the schematic diagram of another optional page authoring method according to an embodiment of the present invention;
Fig. 5 is the schematic diagram of another optional page authoring method according to an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of optional server according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of page authoring method is provided, as shown in Figure 1, this method comprises:
S102: the message for the first code stored for request server that client is sent is received, wherein the first generation
Code is for being added in the web page files by client-side editing, so that the corresponding web page display first code of web page files indicated
Page object, and each first code has unique corresponding first code ID;
S104: first code and first code ID are sent to client;
S106: the second code ID in the first code ID of client transmission is received and saved, and second code ID is marked
It being denoted as corresponding with the web page files of client-side editing, wherein second code ID is used to identify the second code in first code, the
Two codes indicate the first code being added to by client in web page files;
S108: sent according to the second code ID of preservation to client be used to indicate update or restore in web page files the
The message of two codes.
It will be clear that one of problem to be solved of the embodiment of the present invention is to provide a kind of method, in order to visitor
Family end carries out tracking note in the web pages component occurred with code form of the webpage of volume, especially load in webpage development frame
Record, and then the information that can use record tracks the webpage in volume, reaches in time to client notification web pages component
The purpose of more new state, or the request sent in response to client restore to return in the message of the web page files of volume to client
The reference record about the webpage for being maintained in server side is returned, to enable the client to restore client according to the record of return
Pre-editing webpage.
To reach this purpose, a kind of feasible scheme is webpage development personnel in client-side editor's webpage, then fixed
Uploading to server to phase should be also i.e. standby by the webpage of client-side editing by developer in the corresponding web page files of netting page
Part arrives server side, so that server can track the webpage in client-side editor.However, complete webpage
The size of file is usually larger, when be connected to the quantity of the client for editing webpage of server it is more when, it will for clothes
The network data transmission interface of business device brings biggish pressure, and brings biggish flow to bear for developer.
Another feasible scheme is that web page editing logic is arranged in server side, and client-side is responsible for editing interface
The capture of generation and the edit operation to webpage development personnel, and the edit operation captured is uploaded to server, in turn
So that server is augmented the content in netting page file for being maintained in server side according to the edit operation of upload, is deleted
With modification, the web page files editted finally are issued from server to client after webpage development process.However, for
For this scheme, the operation of Web-Page Software usually requires to occupy more money in other words for the execution of web page editing logic
Source, such as processor resource, system resource and memory resource, when be connected to server for showing editing interface and capturing
When the quantity of the client of edit operation is more, it will biggish processing pressure is brought for server, to influence entire system
The response speed of system.In other words, for above scheme, it is bigger than normal that the client of server connection will face load when more
The problem of.
To reduce the load of server and providing to the following function in netting page, in embodiments of the present invention, use
Client-side is arranged in simplified web page editing logic, webpage development personnel are added to net by the operation in client-side
Web pages component in page file is reached in a manner of uploading in the form of its identification item namely code ID and being stored in server side
Realize under the premise of netting page tracks, reduce the effect of the load of server, so solve it is existing to
Netting page carries out the technical issues of tracking scheme needs to occupy more server resource.Further, in the embodiment of the present invention
In, the record in netting page occurred in the form of code ID that can be safeguarded according to server side, the net in web page files
Notice client is updated when page component has corresponding more fresh code, or needs the pre-editing of recovery in client
When webpage, the web pages component in web page files is restored.
Technical solution of the present invention is described in more detail below with reference to the drawings and specific embodiments.
The page authoring method provided according to embodiments of the present invention, in step s 102, server can receive client
The message of the first code stored for request server sent, and then in step S104, server can be to client
End sends first code and first code ID.Specifically, in embodiments of the present invention, first code is for being added to by client
In the web page files of editor, so that the page object that the corresponding web page display of web page files is indicated by first code, and each
One code has unique corresponding first code ID.
In embodiments of the present invention, first code usually can be the script of web pages component, wherein these codes or net
Page component can be editted by webpage development personnel in advance, and be reused in multiple webpage development projects, to reach more
Similar expression effect is realized in a webpage and developer is avoided to carry out the purpose for repeating to write labour.Specifically, these nets
Page component is corresponding either static component is also possible to dynamic assembly corresponding to the relatively-stationary presentation content in webpage
Variable presentation content in webpage.However this is not meant to constitute the present invention restriction, for example, of the invention one
In a little embodiments, for being added in the web page files of client-side editor and the web page files being made to show the corresponding page
The first code of object is not limited to " web pages component " this concept or meaning.
Further, in embodiments of the present invention, a certain page pair of unique display can be completely used to relatively for each section
A first code ID has can be set in the first code of elephant, specifically, if first code is web pages component, the first generation
Code ID can also be considered as the web pages component ID for identifying different web pages components.More specifically, in embodiments of the present invention,
First code ID usually can be the character string being made of number and/or letter, for example, the web pages component A as first code
Can be 001 and 002 respectively with the corresponding first code ID of B, be also possible to 001.a and 001.b, wherein " .a " and
Attached ID number " 001 " can be used for identifying the code packet etc. in other words of the component packet comprising web pages component A and B before " .b "
Deng this is not limited by the present invention.
On this basis, in embodiments of the present invention, server can be in the request for receiving client transmission
After the message of one code, first code itself is returned to client and the first code ID for identifying first code, user
The first code that can then request before client-side use edits webpage, such as can by client directly will downloading
The first code got off is inserted into the web page files of pre-editing, alternatively, the mode of external linkage also can be used to first
Code quote, etc..When client is related to some first code in use, can recorde the lower first code used
Corresponding first code ID is uploaded to server as web page editing record, for example, user is by client in web page files
Be inserted into above-mentioned web pages component A and B, then client do not need for the whole section of code of web pages component A and B to be uploaded to server so as to
For realization server to client in the tracking of netting page, client can be only by the corresponding first generation of web pages component A and B
Code ID such as 001.a and 001.b upload onto the server.In the above scenario, since server itself just safeguards there is first code, because
This server can restore the webpage that client works as pre-editing in conjunction with the first code ID that client uploads to a certain extent,
To realize to client netting page tracking.
That is, the page authoring method provided according to embodiments of the present invention, in step s 106, server be can receive simultaneously
The second code ID that client is sent is saved, and by second code ID labeled as corresponding with the web page files of client-side editing,
In, second code ID expression is added to the corresponding first code ID of the first code in web page files by client.
On the basis of above description, further, the page authoring method provided according to embodiments of the present invention, in step
In S108, server can be used to indicate update to client transmission according to the second code ID of preservation or restore in web page files
Second code message.That is, in embodiments of the present invention, it is timely that server can use tracked web page editing information
The more new state of component of the ground to client in netting page notifies, or restores in response to client request in netting
The message of page returns web page editing information to client, in order to restore client previously according to the information of passback
The webpage of editor.
Specifically, as shown in Fig. 2, in embodiments of the present invention, step S108 may include:
S202: more fresh code corresponding with any of the second code ID of preservation if it exists then notifies client net
Any one corresponding second code with this in page file is in renewable state;Alternatively,
S204: returning to second code ID to client, for making client use the second code ID and the first generation returned
Code restores the second code in web page files.
As the client that server side is saved in the form of first code ID netting page web page editing information
The concrete application mode tracked and recorded in other words, in embodiments of the present invention, a kind of optional scheme are to combine S202 pairs of step
Client is updated notice.Specifically, server can detect the presence of update corresponding with the second code ID of preservation
When code, second code corresponding with the second code ID code as used in client in first code in other words is judged
In renewable state, and then server can notify this case to client, in order to which user is selected by client
It whether selects to when the respective code in the webpage of pre-editing is updated.That is, in embodiments of the present invention, step S202 it
Afterwards, above-mentioned page authoring method can also include:
S2, with this any one corresponding second code of the request update in renewable state that client is sent is received
Message;
S4, any one corresponding more fresh code is sent with this to client, is used to indicate client and uses more fresh code more
Any one corresponding second code with this in new web page file.
For example, in one embodiment, if the second code ID that client uploads includes 001.a and 001.b, and 001.a
It is respectively used to presentation web page component A and B with 001.b, then is updated in the web pages component A that server detects that it is safeguarded
A ' or when saying that the code of web pages component A is updated to the code namely above-mentioned more fresh code of A ', then server can notify visitor
The example of corresponding web pages component namely web pages component A in family end web page files or webpage development project is in renewable shape
State.If client further requests to be updated the web pages component in web page files, server can will more fresh code
Namely the code of A ' is handed down to client, in order to make client according to more fresh code to the corresponding example in web page files
It is updated.
Still optionally further, as shown in figure 3, in embodiments of the present invention, in notice client terminal web page file with appoint
One corresponding second code is in front of renewable state, method further include:
S302: the third code of any client upload is received and saved;
S304: judge whether third code belongs to same author with the second code by any one mark;And/or
S306: judge that whether corresponding the third code ID of third code is consistent with any one;Wherein,
If third code and the second code identified by any one belong to same author, and/or third code ID with it is any
A correspondence is consistent, thens follow the steps S308;
S308: judge whether the content of third code is consistent with the content of the second code identified by any one, if different
It causes, thens follow the steps S310;
S310: if the content of third code and the content of the second code identified by any one are inconsistent, judge to deposit
In more fresh code corresponding with any one, and more fresh code is third code.
For the shared platform convenient for building open a code or web pages component, and multiple and different developers is avoided
Same web pages component is carried out each independently to edit possible version conflict, it in embodiments of the present invention, can be to dimension
The update mode protected in the first code of server is limited.For example, can use described in above-mentioned steps based on generation
The update inspection of code author and/or code ID, if being in first code or first code that more fresh code is saved with script
Second code used in client comes from different authors or with different code ID, then can refuse using more fresh code pair
Originally the update operation that the code saved carries out.Further, if judging, more fresh code and the code saved originally belong to together
One author and/or there is identical or corresponding ID, checked it may be considered that more fresh code has passed through update, and then server can be with
It is updated according to the code that more fresh code saves script, and client can be notified to carry out corresponding second code accordingly
It updates.
In addition, in embodiments of the present invention, another optional scheme is that step S204 is combined to compile client
The webpage collected is restored.Specifically, in embodiments of the present invention, server can restore webpage text in response to client request
The message of part returns to the second code ID corresponding with the web page files for being stored in server side, to client in order to make
The second code in the second code ID and first code recovery web page files of return can be used in client.That is, in this hair
In bright embodiment, before step S204, above-mentioned page authoring method can also include:
S6: the message that the request that client is sent restores web page files is received.
For example, in one embodiment, if the second code ID that client uploads includes 001.a and 001.b, and 001.a
It is respectively used to presentation web page component A and B with 001.b, then server restores the net in volume in the request for receiving client transmission
After the message of page file, the second code ID namely 001.a corresponding with the web page files saved can be returned to client
And 001.b, and then client can restore its webpage edited according to the second code ID of passback.
Still optionally further, it is contemplated that position of the corresponding multiple web objects of second code in webpage, hierarchical relationship
Complexity, as shown in figure 4, in embodiments of the present invention, step S106 may include:
S402: the second code ID and page object parameter of client transmission are received and saved, wherein page object parameter
Form or positional relationship of the page object in the corresponding webpage of web page files represented by for describing by second code;Its
In,
Step S204 may include:
S404: second code ID and page object parameter are returned to client, for making client use second returned
Second code in code ID, first code and page object Parameter reconstruction web page files.
By this mode, the webpage of client elder generation pre-editing can be restored more perfectly, however the present invention is not
All kinds of parameters that page object parameter specifically includes can be limited, such as it may include coordinate information, also may include figure layer
Information can also include the information such as other configuration informations such as size, display state, and which is not limited by the present invention.
On the other hand, optionally, for convenience of server to it is specific some tracked in the web page files of volume, and reinforce
Being associated between the second code ID and web page files that server is saved, as shown in figure 5, in embodiments of the present invention, it is above-mentioned
Step S106 may include:
S502: the second code ID and corresponding with second code ID web page files of client transmission are received and saved
Web page files ID;Wherein,
Before step S204, above-mentioned page authoring method can also include:
S504: receive client transmission carries web page files ID and for requesting the request for restoring web page files to disappear
Breath;Wherein,
Step S204 may include:
S506: the web page files ID with carrying in request message in the second code ID of preservation is returned to client
Corresponding second code ID.
By above embodiments, technical solution of the present invention is described, it should be understood that, above-described embodiment
It is only used for the understanding of the present invention and implementation, any restriction can't be constituted to the present invention.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, additionally provide it is a kind of for implementing the server of above-mentioned page authoring method, such as Fig. 6 institute
Show, which includes:
1) the first receiving unit 602, for receiving the first code of client transmission stored for request server
Message, wherein first code is for being added in the web page files by client-side editing, so that the corresponding webpage of web page files
Show the page object that first code indicates, and each first code has unique corresponding first code ID;
2) the first transmission unit 604, for sending first code and first code ID to client;
3) the second receiving unit 606, the second code ID in first code ID for receiving and saving client transmission,
And by second code ID labeled as corresponding with the web page files of client-side editing, wherein second code ID is for identifying the first generation
Second code in code, second code indicate the first code being added to by client in web page files;
4) the second transmission unit 608, for according to the second code ID of preservation to client transmission be used to indicate update or
Restore the message of the second code in web page files.
It will be clear that one of problem to be solved of the embodiment of the present invention is to provide a kind of server, in order to right
Client is tracked in the web pages component occurred with code form of the webpage of volume, especially load in webpage development frame
Record, and then the information that can use record tracks the webpage in volume, reaches in time to client notification web pages component
More new state purpose, or the request sent in response to client restores the message in the web page files of volume to client
The reference record about the webpage for being maintained in server side is returned to, to enable the client to restore client according to the record of return
The webpage of the pre-editing at end.
To reach this purpose, a kind of feasible scheme is webpage development personnel in client-side editor's webpage, then fixed
Uploading to server to phase should be also i.e. standby by the webpage of client-side editing by developer in the corresponding web page files of netting page
Part arrives server side, so that server can track the webpage in client-side editor.However, complete webpage
The size of file is usually larger, when be connected to the quantity of the client for editing webpage of server it is more when, it will for clothes
The network data transmission interface of business device brings biggish pressure, and brings biggish flow to bear for developer.
Another feasible scheme is that web page editing logic is arranged in server side, and client-side is responsible for editing interface
The capture of generation and the edit operation to webpage development personnel, and the edit operation captured is uploaded to server, in turn
So that server is augmented the content in netting page file for being maintained in server side according to the edit operation of upload, is deleted
With modification, the web page files editted finally are issued from server to client after webpage development process.However, for
For this scheme, the operation of Web-Page Software usually requires to occupy more money in other words for the execution of web page editing logic
Source, such as processor resource, system resource and memory resource, when be connected to server for showing editing interface and capturing
When the quantity of the client of edit operation is more, it will biggish processing pressure is brought for server, to influence entire system
The response speed of system.In other words, for above scheme, it is bigger than normal that the client of server connection will face load when more
The problem of.
To reduce the load of server and providing to the following function in netting page, in embodiments of the present invention, use
Client-side is arranged in simplified web page editing logic, webpage development personnel are added to net by the operation in client-side
Web pages component in page file is reached in a manner of uploading in the form of its identification item namely code ID and being stored in server side
Realize under the premise of netting page tracks, reduce the effect of the load of server, so solve it is existing to
Netting page carries out the technical issues of tracking scheme needs to occupy more server resource.Further, in the embodiment of the present invention
In, the record in netting page occurred in the form of code ID that can be safeguarded according to server side, the net in web page files
Notice client is updated when page component has corresponding more fresh code, or needs the pre-editing of recovery in client
When webpage, the web pages component in web page files is restored.
Technical solution of the present invention is described in more detail below with reference to the drawings and specific embodiments.
The server provided according to embodiments of the present invention, by the first receiving unit 602, server can receive client
The message of the first code stored for request server sent, and then by the first transmission unit 604, server can be with
First code and first code ID are sent to client.Specifically, in embodiments of the present invention, first code for be added to by
In the web page files of client-side editing, so that the page object that the corresponding web page display of web page files is indicated by first code, and
Each first code has unique corresponding first code ID.
In embodiments of the present invention, first code usually can be the script of web pages component, wherein these codes or net
Page component can be editted by webpage development personnel in advance, and be reused in multiple webpage development projects, to reach more
Similar expression effect is realized in a webpage and developer is avoided to carry out the purpose for repeating to write labour.Specifically, these nets
Page component is corresponding either static component is also possible to dynamic assembly corresponding to the relatively-stationary presentation content in webpage
Variable presentation content in webpage.However this is not meant to constitute the present invention restriction, for example, of the invention one
In a little embodiments, for being added in the web page files of client-side editor and the web page files being made to show the corresponding page
The first code of object is not limited to " web pages component " this concept or meaning.
Further, in embodiments of the present invention, a certain page pair of unique display can be completely used to relatively for each section
A first code ID has can be set in the first code of elephant, specifically, if first code is web pages component, the first generation
Code ID can also be considered as the web pages component ID for identifying different web pages components.More specifically, in embodiments of the present invention,
First code ID usually can be the character string being made of number and/or letter, for example, the web pages component A as first code
Can be 001 and 002 respectively with the corresponding first code ID of B, be also possible to 001.a and 001.b, wherein " .a " and
Attached ID number " 001 " can be used for identifying the code packet etc. in other words of the component packet comprising web pages component A and B before " .b "
Deng this is not limited by the present invention.
On this basis, in embodiments of the present invention, server can be in the request for receiving client transmission
After the message of one code, first code itself is returned to client and the first code ID for identifying first code, user
The first code that can then request before client-side use edits webpage, such as can by client directly will downloading
The first code got off is inserted into the web page files of pre-editing, alternatively, the mode of external linkage also can be used to first
Code quote, etc..When client is related to some first code in use, can recorde the lower first code used
Corresponding first code ID is uploaded to server as web page editing record, for example, user is by client in web page files
Be inserted into above-mentioned web pages component A and B, then client do not need for the whole section of code of web pages component A and B to be uploaded to server so as to
For realization server to client in the tracking of netting page, client can be only by the corresponding first generation of web pages component A and B
Code ID such as 001.a and 001.b upload onto the server.In the above scenario, since server itself just safeguards there is first code, because
This server can restore the webpage that client works as pre-editing in conjunction with the first code ID that client uploads to a certain extent,
To realize to client netting page tracking.
That is, the server provided according to embodiments of the present invention, by the second receiving unit 606, server be can receive
And the second code ID of client transmission is saved, and by second code ID labeled as corresponding with the web page files of client-side editing,
Wherein, second code ID expression is added to the corresponding first code ID of the first code in web page files by client.
On the basis of above description, further, the server provided according to embodiments of the present invention is sent by second
Unit 608, server can be used to indicate update to client transmission according to the second code ID of preservation or restore web page files
In second code message.That is, in embodiments of the present invention, server can use tracked web page editing information and
When the more new state of component to client in netting page notify, or compiled in response to client request recovery
The message of webpage returns web page editing information to client, in order to allow client to restore elder generation according to the information of passback
The webpage of pre-editing.
Specifically, in embodiments of the present invention, the second transmission unit 608 may include:
1) the first sending module, for there is more fresh code corresponding with any of the second code ID of preservation
When, notify any one corresponding second code with this in client terminal web page file to be in renewable state;Alternatively,
2) the second sending module for returning to second code ID to client, and makes client use the second generation returned
Code ID and first code restore the second code in web page files.
As the client that server side is saved in the form of first code ID netting page web page editing information
The concrete application mode tracked and recorded in other words, in embodiments of the present invention, a kind of optional scheme are to combine first to send mould
Block is updated notice to client.Specifically, server can be corresponding in the second code ID for detecting the presence of with saving
When more fresh code, judge second code corresponding with second code ID in other words in first code as used in client
Code is in renewable state, and then server can notify this case to client, in order to which user passes through client
To choose whether to when the respective code in the webpage of pre-editing is updated.That is, in embodiments of the present invention, with the first hair
Module coupling ground is sent, above-mentioned server can also include:
1) the 5th receiving unit, the request for receiving client transmission update in renewable state with this any one
The message of corresponding second code;
2) third transmission unit is used to indicate client for sending with this any one corresponding more fresh code to client
End uses any one the corresponding second code with this updated in code update web page files.
For example, in one embodiment, if the second code ID that client uploads includes 001.a and 001.b, and 001.a
It is respectively used to presentation web page component A and B with 001.b, then is updated in the web pages component A that server detects that it is safeguarded
A ' or when saying that the code of web pages component A is updated to the code namely above-mentioned more fresh code of A ', then server can notify visitor
The example of corresponding web pages component namely web pages component A in family end web page files or webpage development project is in renewable shape
State.If client further requests to be updated the web pages component in web page files, server can will more fresh code
Namely the code of A ' is handed down to client, in order to make client according to more fresh code to the corresponding example in web page files
It is updated.
Still optionally further, in embodiments of the present invention, ground is coupled with the first sending module, server can also include:
1) third receiving unit, for receiving and saving the third code of any client upload;
2) the first judging unit, for judging whether third code and the second code by any one mark belong to same work
Person, and/or, judge that whether corresponding the third code ID of third code is consistent with any one;
3) second judgment unit, for third code with by any one mark second code belong to same author and/
Or third code ID it is corresponding with any one consistent when, judge the content of third code in the second code by any one mark
Whether consistent hold;
4) output unit, the content for content and the second code identified by any one in third code are inconsistent
When, judge there is more fresh code corresponding with any one, and more fresh code is third code.
For the shared platform convenient for building open a code or web pages component, and multiple and different developers is avoided
Same web pages component is carried out each independently to edit possible version conflict, it in embodiments of the present invention, can be to dimension
The update mode protected in the first code of server is limited.For example, can use described in above-mentioned steps based on generation
The update inspection of code author and/or code ID, if being in first code or first code that more fresh code is saved with script
Second code used in client comes from different authors or with different code ID, then can refuse using more fresh code pair
Originally the update operation that the code saved carries out.Further, if judging, more fresh code and the code saved originally belong to together
One author and/or there is identical or corresponding ID, checked it may be considered that more fresh code has passed through update, and then server can be with
It is updated according to the code that more fresh code saves script, and client can be notified to carry out corresponding second code accordingly
It updates.
In addition, in embodiments of the present invention, another optional scheme is to combine the second sending module to client
The webpage edited is restored.Specifically, in embodiments of the present invention, server can be in response to client request instauration net
The message of page file returns to the second code ID corresponding with the web page files for being stored in server side to client, in order to
So that the second code in the second code ID and first code recovery web page files of return can be used in client.That is,
In the embodiment of the present invention, ground is coupled with the second sending module, above-mentioned server can also include:
1) the 6th receiving unit, the request for receiving client transmission restore the message of web page files.
For example, in one embodiment, if the second code ID that client uploads includes 001.a and 001.b, and 001.a
It is respectively used to presentation web page component A and B with 001.b, then server restores the net in volume in the request for receiving client transmission
After the message of page file, the second code ID namely 001.a corresponding with the web page files saved can be returned to client
And 001.b, and then client can restore its webpage edited according to the second code ID of passback.
Still optionally further, it is contemplated that position of the corresponding multiple web objects of second code in webpage, hierarchical relationship
Complexity, in embodiments of the present invention, the second receiving unit 606 may include:
1) the first receiving module, for receiving and saving the second code ID and page object parameter of client transmission,
In, form of the page object parameter for the page object represented by describing by second code in the corresponding webpage of web page files
Or positional relationship;Wherein,
Second sending module may include:
2) the first sending submodule for returning to second code ID and page object parameter to client, and makes client
Use the second code in the second code ID of return, first code and page object Parameter reconstruction web page files.
By this mode, the webpage of client elder generation pre-editing can be restored more perfectly, however the present invention is not
All kinds of parameters that page object parameter specifically includes can be limited, such as it may include coordinate information, also may include figure layer
Information can also include the information such as other configuration informations such as size, display state, and which is not limited by the present invention.
On the other hand, optionally, for convenience of server to it is specific some tracked in the web page files of volume, and reinforce
Being associated between the second code ID and web page files that server is saved, as shown in figure 5, in embodiments of the present invention, it is above-mentioned
Second receiving unit 606 may include:
1) the second receiving module, for receive and save client transmission second code ID and with ID pairs of second code
The web page files ID for the web page files answered;Wherein,
Before the second sending module, above-mentioned server can also include:
1) the 4th receiving unit, for receive client transmission carry web page files ID and for request restore webpage
The request message of file;Wherein,
Second sending module may include:
1) the second sending submodule, for returning to disappearing with carrying in request in the second code ID of preservation to client
The corresponding second code ID of web page files ID in breath.
By above embodiments, technical solution of the present invention is described, it should be understood that, above-described embodiment
It is only used for the understanding of the present invention and implementation, any restriction can't be constituted to the present invention.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed server, it can be by others side
Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one
Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (8)
1. a kind of page authoring method characterized by comprising
Receive the message for the first code stored for request server that client is sent, wherein the first code is used
In being added in the web page files by the client-side editing, so that the corresponding web page display first generation code table of the web page files
The page object shown, and each first code has unique corresponding first code ID;
The first code and the first code ID are sent to the client;
Receive and save the second code ID in the first code ID that the client is sent, and by the second code ID
Labeled as corresponding with the web page files of the client-side editing, wherein the second code ID is for identifying the first code
In second code, the second code indicates the first code being added to by the client in the web page files;
More fresh code corresponding with any one second code ID in the second code ID of preservation if it exists, then described in notice
The second code corresponding with any one second code ID in web page files described in client is in renewable state;
Alternatively,
Return to the second code ID to the client, for making the client using the second code ID returned and
The first code restores the second code in the web page files.
2. the method according to claim 1, wherein being notified in web page files described in the client described
The second code corresponding with any one second code ID is in front of renewable state, the method also includes:
Receive and save the third code of any client upload;
Judge whether the third code belongs to same work with the second code by any one second code ID mark
Person, and/or, judge that whether corresponding the third code ID of the third code is consistent with any one second code ID;
If the third code with by any one second code ID mark the second code belong to same author and/
Or the third code ID is corresponding with any one second code ID consistent, then judges the content of the third code and by institute
Whether the content for stating the second code of any one second code ID mark is consistent;
If the content of the third code and the content of the second code identified by any one second code ID are different
It causes, then judges there is more fresh code corresponding with any one second code ID, and the more fresh code is the third
Code.
3. the method according to claim 1, wherein
The second code ID received and saved in the first code ID that the client is sent includes: to receive and save
The second code ID and page object parameter that the client is sent, wherein the page object parameter for describe by
Form or positional relationship of the page object represented by the second code in the corresponding webpage of the web page files;
It is described that return to the second code ID to the client include: to return to the second code ID and institute to the client
Page object parameter is stated, for making the client use the second code ID, the first code and the page returned
The second code in the web page files as described in Parameter reconstruction.
4. the method according to claim 1, wherein
The second code ID received and saved in the first code ID that the client is sent includes: to receive and save
The webpage text for the second code ID and the web page files corresponding with the second code ID that the client is sent
Part ID;
Before the second code ID to client return, the method also includes: receive the client hair
The request message for carrying the web page files ID and being used to request to restore the web page files sent;
It is described to the client return the second code ID include: to the client return preservation the second generation
Second code ID corresponding with the web page files ID of the carrying in the request message in code ID.
5. a kind of web page editing device characterized by comprising
First receiving unit, the message of the first code stored for request server for receiving client transmission,
In, the first code is for being added in the web page files by the client-side editing, so that the web page files are corresponding
The page object that web page display first code indicates, and each first code has unique corresponding first code ID;
First transmission unit, for sending the first code and the first code ID to the client;
Second receiving unit, for receiving and saving the second code ID in the first code ID that the client is sent,
And by the second code ID labeled as corresponding with the web page files of the client-side editing, wherein the second code ID is used
In identifying the second code in the first code, the second code indicates to be added to the webpage text by the client
First code in part;
Second transmission unit, for corresponding more in the presence of any one second code ID in the second code ID with preservation
When fresh code, the second generation corresponding with any one second code ID in web page files described in the client is notified
Code is in renewable state;Alternatively, returning to the second code ID to the client, and the client is made to use return
The second code ID and the first code restore the second code in the web page files.
6. device according to claim 5, which is characterized in that further include:
Third receiving unit, for receiving and saving the third code of any client upload;
First judging unit, the second generation for judging the third code with being identified by any one second code ID
Whether code belongs to same author, and/or, judge that the third code ID of the third code and any one second code ID is
No correspondence is consistent;
Second judgment unit, in the third code and the second code by any one second code ID mark
When belonging to same author, and/or the third code ID and any one second code ID corresponding consistent, the third is judged
Whether the content of code is consistent with the content of the second code identified by any one second code ID;
Output unit, for the content in the third code and the second generation by any one second code ID mark
When the content of code is inconsistent, judge there is more fresh code corresponding with any one second code ID, and the update generation
Code is the third code.
7. device according to claim 5, which is characterized in that
Second receiving unit includes: the first receiving module, described second sent for receiving and saving the client
Code ID and page object parameter, wherein the page object parameter is for the page represented by describing by the second code
Form or positional relationship of the object in the corresponding webpage of the web page files;
Second sending module includes: the first sending submodule, for the client return the second code ID and
The page object parameter, and the client is made to use the second code ID, the first code and the page returned
The second code in the web page files as described in Parameter reconstruction.
8. device according to claim 5, which is characterized in that
Second receiving unit includes: the second receiving module, described second sent for receiving and saving the client
The web page files ID of code ID and the web page files corresponding with the second code ID;
Described device further include: the 4th receiving unit carries the web page files ID for receive that the client sends
And it is used to request to restore the request message of the web page files;
Second sending module includes: the second sending submodule, for returning to the client described the second of preservation
Second code ID corresponding with the web page files ID of the carrying in the request message in code ID.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410299175.7A CN105320672B (en) | 2014-06-26 | 2014-06-26 | Page authoring method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410299175.7A CN105320672B (en) | 2014-06-26 | 2014-06-26 | Page authoring method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105320672A CN105320672A (en) | 2016-02-10 |
CN105320672B true CN105320672B (en) | 2019-05-24 |
Family
ID=55248074
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410299175.7A Active CN105320672B (en) | 2014-06-26 | 2014-06-26 | Page authoring method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105320672B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106648960A (en) * | 2016-09-13 | 2017-05-10 | 天津海量信息技术股份有限公司 | Data recovery method and device when browser end edits application program |
CN110968302B (en) * | 2018-09-28 | 2024-01-05 | 北京嘀嘀无限科技发展有限公司 | Front-end development method and device and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101729590A (en) * | 2008-10-15 | 2010-06-09 | 北大方正集团有限公司 | Method, system and device for providing web page |
CN101807209A (en) * | 2010-04-14 | 2010-08-18 | 深圳市同洲电子股份有限公司 | Method and system for manufacturing webpage, client and server |
CN103207869A (en) * | 2012-01-16 | 2013-07-17 | 腾讯科技(深圳)有限公司 | Webpage maintenance method, system and platform |
CN103412890A (en) * | 2013-07-19 | 2013-11-27 | 北京亿赞普网络技术有限公司 | Webpage loading method and device |
CN103841110A (en) * | 2014-03-13 | 2014-06-04 | 重庆先迈通信技术有限公司 | Website establishment service system and processing method based on mobile terminal |
-
2014
- 2014-06-26 CN CN201410299175.7A patent/CN105320672B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101729590A (en) * | 2008-10-15 | 2010-06-09 | 北大方正集团有限公司 | Method, system and device for providing web page |
CN101807209A (en) * | 2010-04-14 | 2010-08-18 | 深圳市同洲电子股份有限公司 | Method and system for manufacturing webpage, client and server |
CN103207869A (en) * | 2012-01-16 | 2013-07-17 | 腾讯科技(深圳)有限公司 | Webpage maintenance method, system and platform |
CN103412890A (en) * | 2013-07-19 | 2013-11-27 | 北京亿赞普网络技术有限公司 | Webpage loading method and device |
CN103841110A (en) * | 2014-03-13 | 2014-06-04 | 重庆先迈通信技术有限公司 | Website establishment service system and processing method based on mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105320672A (en) | 2016-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106528432B (en) | The construction method and device of test scene data bury a test method | |
CN107122192B (en) | Webpage view methods of exhibiting, calculates equipment and storage medium at device | |
CN102567198B (en) | System and method for testing application program in physical system environment | |
CN102567172B (en) | For parallel workloads emulation mode and the system of application performance test | |
CN106126747A (en) | Data capture method based on reptile and device | |
CN109672583A (en) | Method for monitoring network, equipment, storage medium and device | |
CN103679487A (en) | Advertisement display monitoring method and device | |
CN102004756A (en) | Traffic visualization across web maps | |
CN105205072B (en) | The methods of exhibiting and system of webpage information | |
CN104834530A (en) | Method for developing POS application program and cloud server | |
CN109684571A (en) | A kind of collecting method and device, storage medium | |
CN104484482B (en) | The info web update method and system of the network platform | |
CN104765746A (en) | Data processing method and device for mobile communication terminal browser | |
CN106202006A (en) | Document generating method and device | |
CN107203470B (en) | Page adjustment method and device | |
CN105335139A (en) | Webpage display method and apparatus | |
CN110532495A (en) | A kind of methods of exhibiting and device of webpage information | |
CN105808587A (en) | Method and system for embedding information into webpage and gateway device | |
CN105320672B (en) | Page authoring method and device | |
CN106204164A (en) | Method of testing that web advertisement presents and device | |
CN102779045A (en) | Interface generating method, interface editor and electronic equipment | |
CN103617043B (en) | A kind of method and system uploaded with picture web data | |
CN107357810A (en) | A kind of method and system for being used to export special topic landing page | |
CN110515514A (en) | A kind of data processing method, device and storage medium | |
CN104424188A (en) | System and method for updating obtained webpage data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |