CN106933569B - A kind of webpage method for refreshing and device - Google Patents
A kind of webpage method for refreshing and device Download PDFInfo
- Publication number
- CN106933569B CN106933569B CN201710076205.1A CN201710076205A CN106933569B CN 106933569 B CN106933569 B CN 106933569B CN 201710076205 A CN201710076205 A CN 201710076205A CN 106933569 B CN106933569 B CN 106933569B
- Authority
- CN
- China
- Prior art keywords
- web page
- webpage
- page resources
- resources file
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Present invention discloses a kind of webpage method for refreshing and devices, and this method comprises the following steps: executing the client script in web page files, generate order transmitting-receiving client;Receive the downloading web page resources file command of the order transmitting-receiving client forwarding;Wherein, the downloading web page resources file command is that server is sent to the order transmitting-receiving client;After receiving the downloading web page resources file command, Xiang Suoshu server downloads web page resources file;Corresponding webpage is refreshed according to the web page resources file.The present invention substantially increases exploitation experience and efficiency.
Description
Technical field
This disclosure relates to Internet technical field, in particular to a kind of webpage method for refreshing and device.
Background technique
When carrying out webpage development, developer can usually encounter following situation:
Webpage is edited in editing machine, such as adds a node in html page, pattern is added into CSS,
Then it is switched to browser from editing machine, webpage is refreshed, after showing edited webpage to browser, if exploitation
Personnel are dissatisfied to pattern, then need to switch back into editing machine again from browser, edit to webpage.
Developer needs to toggle between editing machine and browser, and carries out manual refreshing to webpage, and efficiency is very
It is low.
Summary of the invention
In order to solve the problems, such as that webpage development process efficiency present in the relevant technologies is low, present disclose provides a kind of webpages
Method for refreshing and device.
A kind of webpage method for refreshing, includes the following steps:
The client script in web page files is executed, order transmitting-receiving client is generated;
Receive the downloading web page resources file command of the order transmitting-receiving client forwarding;Wherein, the downloading webpage money
Source file order is that server is sent to the order transmitting-receiving client;
After receiving the downloading web page resources file command, Xiang Suoshu server downloads web page resources file;
Corresponding webpage is refreshed according to the web page resources file.
In one embodiment,
Before downloading web page resources file to the server, the method also includes following steps:
The refreshing script of the web page files is executed, is the new uniform resource locator of the auto-building html files;
The step of downloading web page resources file to the server are as follows:
Judge whether the uniform resource locator of the webpage updates, if so, according to the new unified resource
Finger URL downloads the web page resources file to the server.
In one embodiment,
The downloading web page resources file command includes the web page identifier of the webpage;
The step of downloading web page resources file to the server are as follows:
According to the web page identifier, Xiang Suoshu server downloads the web page resources file of corresponding webpage.
In one embodiment,
The downloading web page resources file command includes the web page identifier of the webpage;
Before downloading web page resources file to the server, the method also includes following steps:
The refreshing script of the web page files is executed, is the new uniform resource locator of the auto-building html files;
The step of downloading web page resources file to the server are as follows:
Judge that the web page identifier corresponds to the uniform resource locator of webpage and whether updates, if so, according to institute
It states new uniform resource locator and downloads the web page resources file to the server.
The present invention also provides a kind of webpage method for refreshing, include the following steps:
Whether the web page resources file for monitoring setting storage location in server updates, if so, generating lower support grid
Page resource file order;
The downloading web page resources file command is sent to order transmitting-receiving client;Wherein, the order client is net
What the client script in page file generated after being executed by browser;
After sending the downloading web page resources file command to order transmitting-receiving client, Xiang Suoshu browser is sent more
Web page resources file after new.
In one embodiment,
The web page resources file includes web page files and webpage reference document;
It is updated if listening in server and setting the webpage reference document of storage location, to the browsing
Before device sends updated web page resources file, the method also includes following steps:
In the web page files, the uniform resource locator of the webpage reference document is updated;
The step of sending updated web page resources file to the browser are as follows:
Updated web page files and webpage reference document are sent to the browser.
In one embodiment,
The step of generating downloading web page resources file command are as follows:
Generate the downloading web page resources file command comprising corresponding web page identifier.
The present invention has also endured a kind of webpage method for refreshing, includes the following steps:
Whether the web page resources file for monitoring webpage in designated storage location updates, wherein the web page resources text
Part includes the web page files with client script, wherein the client script is for generating order after being executed by browser
Receive and dispatch client, order transmitting-receiving client, which is used to receive from server, downloads web page resources file command, and will be described under
Support grid page resource file order is transmitted to the browser;
If updating, updated web page resources file is sent to the server.
In one embodiment,
The web page files also have refreshing script;Wherein, after the refreshing script is used to be executed by the browser, it is
The new uniform resource locator of the auto-building html files.
The present invention also provides a kind of webpage refreshing apparatus, comprising:
First execution unit, is configured as: executing the client script in web page files, generates order transmitting-receiving client;
Receiving unit is configured as: receiving the downloading web page resources file command of the order transmitting-receiving client forwarding;Its
In, the downloading web page resources file command is that server is sent to the order transmitting-receiving client;
Download unit is configured as: after receiving the downloading web page resources file command, the downloading of Xiang Suoshu server
Web page resources file;
Refresh unit is configured as: being refreshed according to the web page resources file to corresponding webpage.
In one embodiment,
Further include the second execution unit, be configured as: before downloading web page resources file to the server, executing institute
The refreshing script of web page files is stated, is the new uniform resource locator of the auto-building html files;
The download unit is configured as:
Judge whether the uniform resource locator of the webpage updates, if so, according to the new unified resource
Finger URL downloads the web page resources file to the server.
In one embodiment,
The downloading web page resources file command includes the web page identifier of the webpage;
The download unit is configured as:
According to the web page identifier, Xiang Suoshu server downloads the web page resources file of corresponding webpage.
In one embodiment,
The downloading web page resources file command includes the web page identifier of the webpage;
The webpage refreshing apparatus further includes third execution unit, is configured as: downloading webpage to the server
Before resource file, the refreshing script of the web page files is executed, is the new uniform resource locator of the auto-building html files;
The download unit is configured as:
Judge that the web page identifier corresponds to the uniform resource locator of webpage and whether updates, if so, according to institute
It states new uniform resource locator and downloads the web page resources file to the server.
The present invention also provides a kind of webpage refreshing apparatus, comprising:
Monitoring unit is configured as: whether the web page resources file for monitoring setting storage location in server updates,
Then generate downloading web page resources file command;
First transmission unit, is configured as: sending the downloading web page resources file command to order transmitting-receiving client;Its
In, the order client is generated after the client script in web page files is executed by browser;
Second transmission unit, is configured as: sending the downloading web page resources file command to order transmitting-receiving client
Later, Xiang Suoshu browser sends updated web page resources file.
In one embodiment,
The web page resources file includes web page files and webpage reference document;
Further include updating unit, be configured as:
It is updated if listening in server and setting the webpage reference document of storage location, to the browsing
Before device sends updated web page resources file, the unified resource of the webpage reference document is updated in the web page files
Finger URL;
The transmission unit, is configured as: Xiang Suoshu browser sends updated web page files and webpage reference document.
In one embodiment,
The monitoring unit is configured as: monitoring whether the web page resources file for setting storage location in server occurs more
Newly, then the downloading web page resources file command comprising corresponding web page identifier is generated.
The present invention also provides a kind of webpage refreshing apparatus, comprising:
Monitoring unit is configured as: whether the web page resources file for monitoring webpage in designated storage location updates,
In, the web page resources file includes the web page files with client script, wherein the client script is for being browsed
Device generates order transmitting-receiving client after executing, the order transmitting-receiving client is used to receive downloading web page resources file from server
Order, and the downloading web page resources file command is transmitted to the browser;
Transmission unit is configured as: if updating, updated web page resources file being sent to the server.
In one embodiment,
The web page files also have refreshing script;Wherein, after the refreshing script is used to be executed by the browser, it is
The new uniform resource locator of the auto-building html files.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Server monitor in real time setting storage location web page resources file whether update, if update, will under
Support grid page resource file order is sent to order transmitting-receiving client, and order transmitting-receiving client will download web page resources file command again
It is transmitted to browser, browser downloads corresponding web page resources file, root to server according to downloading web page resources file command
Webpage is refreshed according to web page resources file, developer is not needed and manual refreshing is carried out to webpage, and can pass through in real time
Browser shows the webpage of newest editor, substantially increases exploitation experience and efficiency.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
It is open.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and in specification together principle for explaining the present invention.
Fig. 1 is that the webpage method for refreshing of an embodiment of the present invention implements the schematic diagram of system;
Fig. 2 is the interaction figure of the webpage method for refreshing of an embodiment of the present invention;
Fig. 3 is the process for corresponding to file and updating the webpage method for refreshing of client-side of an embodiment of the present invention
Figure;
Fig. 4 is the flow chart of the webpage method for refreshing corresponding to server-side of an embodiment of the present invention;
Fig. 5 is the variation schematic diagram of the web page files of an embodiment of the present invention;
Fig. 6 is the flow chart of the webpage method for refreshing corresponding to browser side of an embodiment of the present invention;
Fig. 7 is the schematic diagram of the server of an embodiment of the present invention, order transmitting-receiving client and browser;
Fig. 8 is the webpage refreshing apparatus schematic diagram for corresponding to file and updating client-side of an embodiment of the present invention;
Fig. 9 is the webpage refreshing apparatus schematic diagram corresponding to server-side of an embodiment of the present invention;
Figure 10 is the webpage refreshing apparatus schematic diagram corresponding to browser side of an embodiment of the present invention.
Specific embodiment
Here will the description is performed on the exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
As shown in Figure 1, being that the webpage method for refreshing of an embodiment of the present invention implements the schematic diagram of system, which includes
Server and computer;Wherein, run on computer Web page editor, file update client, order transmitting-receiving client and
Browser.
Web page editor saves web page resources file to the finger of computer for editing to web page resources file
Determine storage location, such as specified folder;Wherein, web page resources file refers to the file for constituting webpage, web page resources file packet
Web page files and webpage reference document are included, web page files refer to html file, and webpage reference document refers to, cited in web page files
File, for example, picture file cited in web page files, video file etc..
File updates client and is used for, and whether the web page resources file for monitoring the designated storage location of computer occurs more
Newly, if updating, updated web page resources file is sent to server.File updates the specific of client and executes step
Suddenly, the webpage method for refreshing of following example is please referred to.
The web page resources file received is stored designated storage location in the server by server, and server is monitored specified
Whether the web page resources file in storage location updates, if updating, sends lower support grid to order transmitting-receiving client
Page resource file order.The specific execution step of server, please refers to the webpage method for refreshing of following example.
The downloading web page resources file command is transmitted to browser by order transmitting-receiving client, and browser receives lower support grid
After page resource file order, updated web page resources file is downloaded to server.Order transmitting-receiving client specifically executes step
Suddenly, the webpage method for refreshing of following example is please referred to.
As shown in Fig. 2, being the interaction schematic diagram of the webpage method for refreshing of an embodiment of the present invention, Fig. 3 is a kind of implementation
Correspond to the webpage method for refreshing that file updates client-side in example, includes the following steps.
Whether S100, the web page resources file for monitoring webpage in designated storage location update.
Web page resources file includes web page files and webpage reference document, inserts client script and brush in web page files
New script.In general, storing the corresponding web page resources file of a webpage under a designated storage location.
After browser downloads web page files, when executing web page files, client script is executed by browser, client
Script generates order transmitting-receiving client, and order transmitting-receiving client is used to receive downloading web page resources file command from server, and
Downloading web page resources file command is transmitted to the browser.The specific execution step of order transmitting-receiving client refers to following
The webpage method for refreshing of embodiment.
When executing web page files, refresh script and executed by browser, refreshing script is the new unification of the auto-building html files
Resource Locator (URL).The specific execution step for refreshing script refers to the webpage method for refreshing of following example.
During the test, Developmental Engineer is modified using web page resources file of the Web page editor to webpage, example
Such as, it modifies to certain section of code of the html file of website main page;The webpage reference document of website main page is repaired
Change, the picture 1 that website main page is quoted such as is changed to picture 2, i.e., it is corresponding the corresponding URL1 of picture 1 to be changed to picture 2
URL2, the video 1 of website main page reference should be more video 2 etc..As shown in Figure 1, storing composition in designated storage location
Web page files, webpage reference document 1 and the webpage reference document 2 of some webpage.
Web page editor is saved in the designated storage location of computer to web page resources file after modification.If modified
Web page resources file name is identical as the web page resources file name before modification, and modified web page resources file can be covered or be replaced
Web page resources file before repair changes will not modify to web page files title usually in test.
File updates client and monitors whether web page resources file in designated storage location updates.Monitor web page resources
Whether file, which occurs updating, can many methods.
For example, file, which updates client, can save a log, each web page resources file of the log recording is utilized
The file informations such as file name, file modified date, file size.File updates client and judges whether occur according to the log
The web page resources file of newname, if so, obtaining the conclusion that updating occurs in web page resources file.For another example, file updates client
End judges whether the size of web page resources file of the same title, modification time update according to the log, if occurring,
Obtain the conclusion that updating occurs in web page resources file.
It is understood that once inserting client script in the web page files in designated storage location and refreshing foot
After this, no matter how web page files update, as long as not deleting client script and refreshing script, file updates client and is sent to
The web page files of server all containing client script and can refresh script.
If web page resources file updates in the designated storage location in S101, computer, by updated webpage
Resource file is sent to the server.
File updates client can be communicatively coupled by http protocol and server, updated web page resources text
Part is sent to the designated storage location of server.As shown in Figure 1, the designated storage location of server store in computer
The identical file of designated storage location: web page files, webpage reference document 1 and webpage reference document 2.
Method through this embodiment, whenever the web page resources file in the designated storage location of computer has carried out more
Newly, updated web page resources file can be uploaded onto the server in time, for browser downloading.
As shown in figure 4, be the webpage method for refreshing executed in a kind of embodiment in server, below in conjunction with Fig. 1, Fig. 2 and
The webpage method for refreshing of the present embodiment is described in detail in Fig. 4.Webpage method for refreshing includes the following steps.
Whether S200, the web page resources file for monitoring setting storage location in server update, if so, under generating
Support grid page resource file order.
S201, downloading web page resources file command is sent to order transmitting-receiving client.
In general, storing the corresponding web page resources file of a webpage under a setting storage location.Server is monitored in real time
Whether the web page resources file of setting storage location updates.Whether monitoring web page resources file, which occurs updating, can have very much
Method.
For example, server can save a log, using the file name of each web page resources file of the log recording,
The file informations such as file modified date, file size.Server judges whether the web page resources for newname occur according to the log
File, if so, obtaining the conclusion that updating occurs in web page resources file.For another example, server judges the same name according to the log
Whether the size of the web page resources file of title, modification time update, if occurring, it is concluded that web page resources file updates
Conclusion.
If the web page resources file of setting storage location updates, server sends downloading to order transmitting-receiving client
Web page resources file command.Order transmitting-receiving client can be communicatively coupled by http protocol and server, real-time reception
Download web page resources file command.
The identifier of corresponding webpage is contained in the downloading web page resources file command of generation, when order transmitting-receiving client will
After downloading web page resources file command is transmitted to browser, so that browser distinguishes downloading web page resources file command,
Downloading web page resources file command is associated with corresponding webpage.Identifier can be URL (the unified resource positioning of webpage
Symbol).For example, URL1 is the uniform resource locator of the first webpage, then downloading the downloading of the web page resources file of the first webpage
Web page resources file command may include URL1.
If S202, the webpage reference document for listening to setting storage location in server update, in the webpage
In file, the more uniform resource locator of new web page reference document.
Many browsers meeting cache web pages resource files, including web page files and webpage reference document.When browser needs
When the web page resources of requested webpage, first before the URL and the web page resources file of the web page resources file of analysis current request
URL it is whether identical, if identical, browser reads corresponding web page resources file from caching, without to server
The web page resources file is downloaded in request.
By the uniform resource locator of more new web page reference document, after browser downloads web page files, to webpage text
Part is executed, and the URL that the webpage reference document of acquisition is current is different from URL before, then browser can be downloaded to server
The webpage reference document.
New timestamp can be added, in the URL in webpage reference document to realize the unification of more new web page reference document
Resource Locator.
As shown in figure 5, computer, which is sent to, contains the URL:URL1 of webpage reference document 1 in the web page files of server
With the URL:URL2 of webpage reference document 2, and it has been stored in the setting storage location of server.After step S201,
Web page files are changed: the URL:URL1+ timestamp and webpage that webpage reference document 1 is contained in web page files draw
With the URL:URL2+ timestamp of file 2.Timestamp can be a random string, can also be the time: for example
201612121212。
S203, after sending the downloading web page resources file command to order transmitting-receiving client, Xiang Suoshu browser
Send updated web page resources file.
The downloading web page resources file command that client forwards is received and dispatched when browser receives order, and is sent to server
After the request for downloading web page resources file, the corresponding web page resources file of webpage is then sent to browser by server.
As shown in fig. 6, corresponding to the webpage method for refreshing of browser side, including the following steps in a kind of embodiment.
S300, browser execute the client script in web page files, generate order transmitting-receiving client.
As shown in Figure 1 and Figure 5, contain client script in the web page files of webpage, when server carries out web page files
When execution, client script can be executed, client script generates order transmitting-receiving client.
The downloading web page resources file command that order transmitting-receiving client real-time reception is sent from server, if receiving down
Support grid page resource file order then orders transmitting-receiving client to be transmitted to browser for web page resources file command is downloaded.
S301, browser receive the downloading web page resources file command of the order transmitting-receiving client forwarding.
After receiving the downloading web page resources file command, Xiang Suoshu server downloads webpage money for S302, browser
Source file.
S303, browser refresh corresponding webpage according to the web page resources file.
Browser sends asking for downloading web page files to server first after receiving downloading web page resources file command
It asks.After server receives the request of downloading web page files, the web page files for setting storage location are sent to clear by server
Look at device.
After browser receives web page files, web page files are executed, if not comprising other in web page files
The URL of webpage reference document, then browser refreshes webpage according to web page files.If web page files further comprise webpage
The URL of reference document, then browser further can send downloading webpage citation to server according to the URL of webpage reference document
The request of part.
Server sends webpage reference document after receiving the request of downloading webpage reference document of browser transmission
To browser.
After browser receives webpage reference document, then browser according to web page files and webpage reference document to webpage into
Row refreshes.
It is understood that before the web page files comprising client script are downloaded for the first time by browser, computer
In and there is no order transmitting-receiving client.Client script can be included from server downloading by manual refreshing browser
Web page files, after client script is executed by browser, client script can generate order transmitting-receiving client.
In some cases, Developmental Engineer simultaneously develops multiple webpages, and needs in a browser to multiple
Webpage is refreshed.Whether the web page resources file that server monitors the corresponding setting storage location of each webpage updates, if
The corresponding web page resources file of certain webpage updates, then sends to all order transmitting-receiving clients and download certain webpage
The order of web page resources file, wherein the downloading web page resources file command contains the identifier (such as URL) of certain webpage,
Browser receives the downloading web page resources file command from multiple order clients, therefrom recognizes the need for downloading certain webpage
Web page resources file, and certain webpage is updated.
As shown in fig. 7, there are two set storage location for tool on server: setting storage location 1 and setting storage location 2.
Wherein, setting storage location 1 stores the web page files 1 of webpage 1, and setting storage location 2 stores the web page files 2 of webpage 2.
After browser obtains web page files 1 and web page files 2, web page files 1 and web page files 2 are executed respectively, generate life
Enable transmitting-receiving client 1 and order transmitting-receiving client 2.
Whether the web page resources file that server monitors setting storage location 1 in real time updates, and monitors setting in real time and deposits
Whether the web page resources file that storage space sets 2 updates.If the web page resources file of setting storage location 1 updates, take
Device be engaged in the order for ordering the web page resources file of transmitting-receiving client 1 and the order transmitting-receiving transmission downloading webpage 1 of client 2, wherein
URL1 containing webpage 1 in order.
Order is sent to browser by order client 1 and order client 2, after browser receives order, then to
Server downloads the web page resources file of webpage 1, i.e. web page resources file under setting storage location 1, is provided later according to webpage
Source file refreshes webpage 1.
Due to the identifier containing corresponding webpage in downloading web page resources file command, when there are multiple order clients
When, browser wrong will not download web page resources file, will not mistake refreshing webpage.
As described above, many browsers can cache web pages resource files, when browser receive refresh web commands or
After person downloads web page resources file command, corresponding web page resources file may be read from caching.Browser in order to prevent
Corresponding web page resources file is read from caching after receiving downloading web page resources file command, the present invention also provides as follows
Embodiment.
In one embodiment,
Between step S301 and step S302, the method also includes following steps:
The refreshing script of the web page files is executed, is the new uniform resource locator of the auto-building html files.
As shown in figure 5, it is similar to preceding embodiment, the new time can be added in the uniform resource locator of the webpage
Stamp, to generate new uniform resource locator.
Step S302 are as follows:
Browser judges the uniform resource locator of the webpage after receiving the downloading web page resources file command
Whether update, if so, downloading the web page resources text to the server according to the new uniform resource locator
Part.
Scheme through this embodiment, since variation has occurred (newly for auto-building html files in the uniform resource locator of webpage
Uniform resource locator), therefore, can be again under server after browser receives downloading web page resources file command
The web page resources file is carried, reads the web page resources file in caching without going.
In one embodiment, when support grid page resource file order instantly includes the web page identifier of the webpage, step
S302 are as follows: browser judges that the web page identifier corresponds to webpage after receiving the downloading web page resources file command
Whether uniform resource locator updates, if so, being downloaded according to the new uniform resource locator to the server
The web page resources file.
Scheme through this embodiment, when there are multiple order clients, browser will not mistake downloading webpage money
Source file;Simultaneously as variation has occurred (for the new unified resource positioning of auto-building html files in the uniform resource locator of webpage
Symbol), therefore, after browser receives downloading web page resources file command, the web page resources can be downloaded to server again
File reads the web page resources file in caching without going.
In one embodiment, file updates client and order transmitting-receiving client can be websocket (network socket
Word) client, it correspondingly, on server deploys and updates client communication with file, and receive and dispatch client communication with order
Websocket server-side.
As shown in figure 8, a kind of webpage refreshing apparatus for corresponding to file and updating client-side of embodiment, comprising:
Monitoring unit 100, is configured as: whether the web page resources file for monitoring webpage in designated storage location occurs more
Newly, wherein the web page resources file includes the web page files with client script, wherein the client script is used for
Order transmitting-receiving client is generated after being executed by browser, the order transmitting-receiving client is used to receive downloading webpage money from server
Source file order, and the downloading web page resources file command is transmitted to the browser;
Transmission unit 101, is configured as: if updating, updated web page resources file being sent to the service
Device.
The specific execution method of the webpage refreshing apparatus of the present embodiment, the file that corresponds to for referring to preceding embodiment update
The webpage method for refreshing of client-side, details are not described herein.
As shown in figure 9, a kind of webpage refreshing apparatus corresponding to server-side of embodiment, comprising:
Monitoring unit 200, is configured as: monitoring whether the web page resources file for setting storage location in server occurs more
Newly, then downloading web page resources file command is generated;
First transmission unit 201, is configured as: sending the downloading web page resources file life to order transmitting-receiving client
It enables;Wherein, the order client is generated after client script in web page files is executed by browser;
Second transmission unit 202, is configured as: sending the downloading web page resources file life to order transmitting-receiving client
After order, Xiang Suoshu browser sends updated web page resources file.
The specific execution method of the webpage refreshing apparatus of the present embodiment, refer to preceding embodiment corresponds to server one
The webpage method for refreshing of side, details are not described herein.
As shown in Figure 10, the webpage refreshing apparatus corresponding to browser side of a kind of embodiment, comprising:
First execution unit 300, is configured as: executing the client script in web page files, generates order transmitting-receiving client
End;
Receiving unit 301, is configured as: receiving the downloading web page resources file life of the order transmitting-receiving client forwarding
It enables;Wherein, the downloading web page resources file command is that server is sent to the order transmitting-receiving client;
Download unit 302, is configured as: after receiving the downloading web page resources file command, Xiang Suoshu server
Download web page resources file;
Refresh unit 303, is configured as: being refreshed according to the web page resources file to corresponding webpage.
The specific execution method of the webpage refreshing apparatus of the present embodiment, refer to preceding embodiment corresponds to browser one
The webpage method for refreshing of side, details are not described herein.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and change can executed without departing from the scope.The scope of the present invention is limited only by the attached claims.
Claims (18)
1. a kind of webpage method for refreshing, characterized in that be applied to browser, include the following steps:
The client script in web page files is executed, order transmitting-receiving client is generated;
Receive the downloading web page resources file command of the order transmitting-receiving client forwarding;Wherein, the downloading web page resources text
Part order is that server is sent to the order transmitting-receiving client;
After receiving the downloading web page resources file command, Xiang Suoshu server downloads web page resources file;
Corresponding webpage is refreshed according to the web page resources file.
2. webpage method for refreshing as described in claim 1, characterized in that
Before downloading web page resources file to the server, the method also includes following steps:
The refreshing script of the web page files is executed, is the new uniform resource locator of the auto-building html files;
The step of downloading web page resources file to the server are as follows:
Judge whether the uniform resource locator of the webpage updates, if so, positioning according to the new unified resource
It accords with to the server and downloads the web page resources file.
3. webpage method for refreshing as described in claim 1, characterized in that
The downloading web page resources file command includes the web page identifier of the webpage;
The step of downloading web page resources file to the server are as follows:
According to the web page identifier, Xiang Suoshu server downloads the web page resources file of corresponding webpage.
4. webpage method for refreshing as described in claim 1, characterized in that
The downloading web page resources file command includes the web page identifier of the webpage;
Before downloading web page resources file to the server, the method also includes following steps:
The refreshing script of the web page files is executed, is the new uniform resource locator of the auto-building html files;
The step of downloading web page resources file to the server are as follows:
Judge that the web page identifier corresponds to the uniform resource locator of webpage and whether updates, if so, according to described new
Uniform resource locator download the web page resources file to the server.
5. a kind of webpage method for refreshing, characterized in that be applied to server, include the following steps:
Whether the web page resources file for monitoring setting storage location in server updates, if so, generating downloading webpage money
Source file order;
The downloading web page resources file command is sent to order transmitting-receiving client;Wherein, the order client is webpage text
What the client script in part generated after being executed by browser;
After sending the downloading web page resources file command to order transmitting-receiving client, after Xiang Suoshu browser sends update
Web page resources file.
6. webpage method for refreshing as claimed in claim 5, characterized in that
The web page resources file includes web page files and webpage reference document;
If the webpage reference document for listening to setting storage location in server updates, sent out to the browser
Before sending updated web page resources file, the method also includes following steps:
In the web page files, the uniform resource locator of the webpage reference document is updated;
The step of sending updated web page resources file to the browser are as follows:
Updated web page files and webpage reference document are sent to the browser.
7. webpage method for refreshing as claimed in claim 5, characterized in that
The step of generating downloading web page resources file command are as follows:
Generate the downloading web page resources file command comprising corresponding web page identifier.
8. a kind of webpage method for refreshing, characterized in that be applied to client, include the following steps:
Whether the web page resources file for monitoring webpage in designated storage location updates, wherein the web page resources file packet
Include the web page files with client script, wherein the client script is for generating order transmitting-receiving after being executed by browser
Client, order transmitting-receiving client are used to receive downloading web page resources file command from server, and by the lower support grid
Page resource file order is transmitted to the browser;
If updating, updated web page resources file is sent to the server.
9. webpage method for refreshing as claimed in claim 8, characterized in that
The web page files also have refreshing script;It wherein, is described after the refreshing script is used to be executed by the browser
The new uniform resource locator of auto-building html files.
10. a kind of webpage refreshing apparatus, characterized in that be applied to browser, comprising:
First execution unit, is configured as: executing the client script in web page files, generates order transmitting-receiving client;
Receiving unit is configured as: receiving the downloading web page resources file command of the order transmitting-receiving client forwarding;Wherein,
The downloading web page resources file command is that server is sent to the order transmitting-receiving client;
Download unit is configured as: after receiving the downloading web page resources file command, Xiang Suoshu server downloads webpage
Resource file;
Refresh unit is configured as: being refreshed according to the web page resources file to corresponding webpage.
11. webpage refreshing apparatus as claimed in claim 10, characterized in that
Further include the second execution unit, be configured as: before downloading web page resources file to the server, executing the net
The refreshing script of page file is the new uniform resource locator of the auto-building html files;
The download unit is configured as:
Judge whether the uniform resource locator of the webpage updates, if so, positioning according to the new unified resource
It accords with to the server and downloads the web page resources file.
12. webpage refreshing apparatus as claimed in claim 10, characterized in that
The downloading web page resources file command includes the web page identifier of the webpage;
The download unit is configured as:
According to the web page identifier, Xiang Suoshu server downloads the web page resources file of corresponding webpage.
13. webpage refreshing apparatus as claimed in claim 10, characterized in that
The downloading web page resources file command includes the web page identifier of the webpage;
The webpage refreshing apparatus further includes third execution unit, is configured as: downloading web page resources to the server
Before file, the refreshing script of the web page files is executed, is the new uniform resource locator of the auto-building html files;
The download unit is configured as:
Judge that the web page identifier corresponds to the uniform resource locator of webpage and whether updates, if so, according to described new
Uniform resource locator download the web page resources file to the server.
14. a kind of webpage refreshing apparatus, characterized in that be applied to server, comprising:
Monitoring unit is configured as: whether the web page resources file for monitoring setting storage location in server updates, then gives birth to
At downloading web page resources file command;
First transmission unit, is configured as: sending the downloading web page resources file command to order transmitting-receiving client;Wherein,
The order client is generated after the client script in web page files is executed by browser;
Second transmission unit, is configured as: after sending the downloading web page resources file command to order transmitting-receiving client,
Updated web page resources file is sent to the browser.
15. webpage refreshing apparatus as claimed in claim 14, characterized in that
The web page resources file includes web page files and webpage reference document;
Further include updating unit, be configured as:
If the webpage reference document for listening to setting storage location in server updates, sent out to the browser
Before sending updated web page resources file, the unified resource positioning of the webpage reference document is updated in the web page files
Symbol;
The transmission unit, is configured as: Xiang Suoshu browser sends updated web page files and webpage reference document.
16. webpage refreshing apparatus as claimed in claim 14, characterized in that
The monitoring unit is configured as: whether the web page resources file for monitoring setting storage location in server updates,
Then generate the downloading web page resources file command comprising corresponding web page identifier.
17. a kind of webpage refreshing apparatus, characterized in that be applied to client, comprising:
Monitoring unit is configured as: whether the web page resources file for monitoring webpage in designated storage location updates, wherein
The web page resources file includes the web page files with client script, wherein the client script is used for by browser
Order transmitting-receiving client is generated after execution, the order transmitting-receiving client is used to receive downloading web page resources file life from server
It enables, and the downloading web page resources file command is transmitted to the browser;
Transmission unit is configured as: if updating, updated web page resources file being sent to the server.
18. webpage refreshing apparatus as claimed in claim 17, characterized in that
The web page files also have refreshing script;It wherein, is described after the refreshing script is used to be executed by the browser
The new uniform resource locator of auto-building html files.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710076205.1A CN106933569B (en) | 2017-02-13 | 2017-02-13 | A kind of webpage method for refreshing and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710076205.1A CN106933569B (en) | 2017-02-13 | 2017-02-13 | A kind of webpage method for refreshing and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106933569A CN106933569A (en) | 2017-07-07 |
CN106933569B true CN106933569B (en) | 2019-08-09 |
Family
ID=59423262
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710076205.1A Active CN106933569B (en) | 2017-02-13 | 2017-02-13 | A kind of webpage method for refreshing and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106933569B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108628626B (en) * | 2018-05-04 | 2021-09-28 | 北京星选科技有限公司 | Development environment building method, code updating method and device |
CN109922368B (en) * | 2019-02-18 | 2021-09-21 | 海信视像科技股份有限公司 | Picture display method based on webpage and smart television |
CN111352847A (en) * | 2020-03-09 | 2020-06-30 | 中国邮政储蓄银行股份有限公司 | Real-time debugging method and system for mobile application terminal |
CN112905928B (en) * | 2021-05-07 | 2021-08-03 | 杭州米络星科技(集团)有限公司 | Webpage refreshing method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103873502A (en) * | 2012-12-11 | 2014-06-18 | 阿里巴巴集团控股有限公司 | Cache updating method and system, and update resource providing method and system |
CN104462231A (en) * | 2014-11-11 | 2015-03-25 | 北京奇虎科技有限公司 | Webpage rendering method, device and system |
CN105320687A (en) * | 2014-07-29 | 2016-02-10 | 腾讯科技(北京)有限公司 | Webpage display method and device |
-
2017
- 2017-02-13 CN CN201710076205.1A patent/CN106933569B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103873502A (en) * | 2012-12-11 | 2014-06-18 | 阿里巴巴集团控股有限公司 | Cache updating method and system, and update resource providing method and system |
CN105320687A (en) * | 2014-07-29 | 2016-02-10 | 腾讯科技(北京)有限公司 | Webpage display method and device |
CN104462231A (en) * | 2014-11-11 | 2015-03-25 | 北京奇虎科技有限公司 | Webpage rendering method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN106933569A (en) | 2017-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106933569B (en) | A kind of webpage method for refreshing and device | |
US10412176B2 (en) | Website access method, apparatus, and website system | |
CN105743945B (en) | Document down loading method and system based on switching loading source | |
CN105446750B (en) | The method and apparatus that WebApp starting runs, generates image file | |
CN103873502A (en) | Cache updating method and system, and update resource providing method and system | |
CN103152367A (en) | Cache dynamic maintenance updating method and system | |
CN105227610A (en) | File uploading and storing method and device | |
WO2012151993A1 (en) | Service pushing method and device | |
CN103297275A (en) | Dynamic discovery and loading system and method for Web network management client module | |
WO2012120658A1 (en) | Method and device for recording and reproducing web operation | |
US20150067037A1 (en) | Communication apparatus and communication method | |
GB2516115A (en) | Methods and devices for exchanging data | |
CN103457979A (en) | Distribution type file storage system and method | |
CN102542858B (en) | Course playing method and system | |
CN104092722A (en) | Network file downloading method and device | |
US10606730B2 (en) | Networked digital data processor log file viewer | |
CN109240982B (en) | File distribution method and system and storage medium | |
CN111031128A (en) | Method for realizing skylight-free website IPv6 transformation based on cloud technology | |
CN102624910B (en) | Method, the Apparatus and system of the web page contents that process user chooses | |
CN103823694A (en) | Method and device for updating script file | |
EP3101539B1 (en) | Selection of compatible resources after updating web application servers | |
CN102769625A (en) | Client-side Cookie information acquisition method and device | |
CN114254228A (en) | Web application processing method and related device for dynamically binding data | |
CN104933018B (en) | A kind of document handling method and device | |
CN103763638A (en) | Video resource obtaining method and device |
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 |