CN108536805A - web access method and device - Google Patents

web access method and device Download PDF

Info

Publication number
CN108536805A
CN108536805A CN201810295338.2A CN201810295338A CN108536805A CN 108536805 A CN108536805 A CN 108536805A CN 201810295338 A CN201810295338 A CN 201810295338A CN 108536805 A CN108536805 A CN 108536805A
Authority
CN
China
Prior art keywords
web page
rear end
web
page resources
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810295338.2A
Other languages
Chinese (zh)
Inventor
刘俊廷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810295338.2A priority Critical patent/CN108536805A/en
Priority to PCT/CN2018/101555 priority patent/WO2019192128A1/en
Publication of CN108536805A publication Critical patent/CN108536805A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a kind of Web access method and device, the Web access method includes:Front end obtains the web access requests that the Internet, applications are initiated to the back-end;Web page resources positioning is carried out in rear end according to the webpage link address in the web access requests, receives the web page resources that the rear end returns, and the web page resources only include front end data;Web displaying is carried out in the Internet, applications to the web page resources only comprising front end data by the presentation layer detached with rear end.It solves the problems, such as to lead to web page access inefficiency because front and back end coupling is excessively high in the prior art using Web access method provided by the present invention and device.

Description

Web access method and device
Technical field
The present invention relates to field of computer technology more particularly to a kind of Web access methods and device.
Background technology
With the rise of internet, the Internet, applications are come into being.So-called the Internet, applications using front end (user terminal)/ Rear end (server end) communication pattern, diversified demand is provided for client.
Specifically, rear end is the web page resources that front end stores related web page, as long as carrying out data between front and rear end Transmission just can obtain being stored in rear end and correspond to webpage link address by the webpage link address (URL) that front end is stored Web page resources, be achieved in the online access to webpage, carried so that user enjoys the webpage by the Internet, applications The various online services supplied.
However, for the data transmission carried out between front and rear end, front and rear end coupling is very high, maintenance cost It is high.
For example, the data that front end receiver arrives are not pure enough, that is, further comprising part should be by the number of back-end processing According to (hereinafter referred to as Back end data), for this purpose, front end needs the Back end data carrying out Data Format Transform, forming front end can After the change data of support, subsequent processing can be carried out.Similarly, the data that rear end receives are also not pure enough, further comprise Part should be also required to data format before being handled and turned by the data (hereinafter referred to as front end data) of front-end processing It changes.
In other words, it for the development phase, since the data that front end is handled include not only front end data, also relates to And portion rear end data, cause the exploitation of front end to be necessarily dependent upon the exploitation of rear end, alternatively the exploitation of rear end takes in turn Certainly in the exploitation of front end, i.e. front and back end coupling is very high, this is bound to cause the complexity of Data Format Transform during web page access Degree, and then lead to web page access inefficiency.
Invention content
In order to solve the above-mentioned technical problem, it is an object of the present invention to provide a kind of Web access method and devices.
Wherein, the technical solution adopted in the present invention is:
On the one hand, a kind of Web access method, including:Front end obtains the web page access that the Internet, applications are initiated to the back-end and asks It asks;Web page resources positioning is carried out in rear end according to the webpage link address in the web access requests, receives the rear end The web page resources of return, the web page resources only include front end data;By the presentation layer that is detached with rear end to only including front end The web page resources of data carry out web displaying in the Internet, applications.
On the other hand, a kind of web page access device, including:Ask initiation module, for front end obtain the Internet, applications to The web access requests that rear end is initiated;Resource receiving module, for according to the webpage link address in the web access requests Web page resources positioning is carried out in rear end, receives the web page resources that the rear end returns, and the web page resources only include front end number According to;Web displaying module, for the presentation layer by being detached with rear end to the web page resources only comprising front end data described mutual Web displaying is carried out in working application.
On the other hand, a kind of web page access device, including processor and memory are stored with computer on the memory Readable instruction, the computer-readable instruction realize Web access method as described above when being executed by the processor.
On the other hand, a kind of computer readable storage medium is stored thereon with computer program, the computer program quilt Processor realizes Web access method as described above when executing.
In the above-mentioned technical solutions, the web access requests that the Internet, applications are initiated to the back-end are obtained by front end, with root Web page resources positioning is carried out in rear end according to the webpage link address in web access requests, and then is received rear end and returned only Include the web page resources of front end data, and only the web page resources comprising front end data exist the presentation layer by being detached with rear end to this Web displaying is carried out in the Internet, applications.
That is, since the web page resources that rear end returns only include front end data so that front end receiver to clean data, And the presentation layer for web displaying is detached with rear end, is avoided front and back end coupling excessively high with this, is significantly reduced webpage Complexity in access process, and then solve causes web page access efficiency low because front and back end coupling is excessively high in the prior art Under problem.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not It can the limitation present invention.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention Example, and in specification together principle for explaining the present invention.
Fig. 1 is the schematic diagram according to implementation environment according to the present invention.
Fig. 2 is a kind of hardware block diagram of terminal shown according to an exemplary embodiment.
Fig. 3 is a kind of hardware block diagram of server shown according to an exemplary embodiment.
Fig. 4 is a kind of flow chart of Web access method shown according to an exemplary embodiment.
Fig. 5 is the flow chart of another Web access method shown according to an exemplary embodiment.
Fig. 6 be in Fig. 5 corresponding embodiments step 430 in the flow chart of one embodiment.
Fig. 7 be in Fig. 5 corresponding embodiments step 430 in the flow chart of another embodiment.
Fig. 8 be in Fig. 4 corresponding embodiments step 350 in the flow chart of one embodiment.
Fig. 9 is a kind of block diagram of web page access device shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the present invention will be hereinafter described in more detail, these attached drawings It is not intended to limit the scope of the inventive concept in any manner with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate idea of the invention.
Specific implementation mode
Here will explanation be executed to 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 and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is a kind of schematic diagram of the implementation environment involved by Web access method.The implementation environment includes terminal (before i.e. End) 100 and server end (i.e. rear end) 200.
Wherein, terminal 100 can be laptop, tablet computer, smart mobile phone, desktop computer or other for mutual The electronic equipment of working application operation, herein without limiting.
Communication connection is established between terminal 100 and server end 200, which includes but not limited to that wireless network connects It connects, cable network connection etc., and then the communication connection by being established carries out data transmission, and transmission is communicated to connect for example, passing through Web page resources etc..
Specifically, terminal 100 initiates web access requests, to obtain using the Internet, applications of operation to server end 200 The web page resources in server end 200 are taken, and then controls the web page resources and carries out web displaying in the Internet, applications.
Referring to Fig. 2, Fig. 2 is a kind of block diagram of terminal shown according to an exemplary embodiment.
It should be noted that the terminal 100 is an example for adapting to the present invention, it must not believe that there is provided to this Any restrictions of the use scope of invention.The terminal 100 can not be construed to need to rely on or must have in Fig. 2 to show Illustrative terminal 100 in one or more component.
As shown in Fig. 2, terminal 100 (only shows one including memory 101, storage control 103, one or more in Fig. 2 It is a) processor 105, Peripheral Interface 107, radio-frequency module 109, locating module 111, photographing module 113, audio-frequency module 115, touch-control Screen 117 and key-press module 119.These components are mutually communicated by one or more communication bus/signal wire 121.
Wherein, memory 101 can be used for storing computer program and module, such as the base in exemplary embodiment of the present In the corresponding computer-readable instruction of client data secure access method and device and module of mobile terminal, processor 105 is logical It crosses operation and is stored in computer-readable instruction in memory 101, to perform various functions and data processing, that is, complete base In the client data secure access method of mobile terminal.
The carrier that memory 101 is stored as resource, can be random access memory, for example high speed random access memory, it is non-easily The property lost memory, such as one or more magnetic storage devices, flash memory or other solid-state memories.Storage mode can be short Temporary storage permanently stores.
Peripheral Interface 107 may include an at least wired or wireless network interface, an at least connection in series-parallel translation interface, at least One input/output interface and at least USB interface etc., for coupleeing external various input/output devices to memory 101 And processor 105, to realize the communication with external various input/output devices.
Radio-frequency module 109 is used for transceiving electromagnetic wave, the mutual conversion of electromagnetic wave and electric signal is realized, to pass through communication network Network is communicated with other equipment.Communication network includes cellular telephone networks, WLAN or Metropolitan Area Network (MAN), above-mentioned communication network Network can use various communication standards, agreement and technology.
Locating module 111 is used to obtain the geographical location of terminal 100 being currently located.The example of locating module 111 includes But it is not limited to GPS (GPS), the location technology based on WLAN or mobile radio communication.
Photographing module 113 is under the jurisdiction of camera, for shooting picture or video.The picture or video of shooting can be deposited In storage to memory 101, host computer can also be sent to by radio-frequency module 109.
Audio-frequency module 115 provides a user audio interface, may include one or more microphone interfaces, one or more Speaker interface and one or more earphone interfaces.The interaction of audio data is carried out by audio interface and miscellaneous equipment.Sound Frequency can also be sent according to that can store to memory 101 by radio-frequency module 109.
Touch Screen 117 provides an I/O Interface between terminal 100 and user.Specifically, user can pass through Touch Screen 117 carries out the gesture operations such as input operation, such as click, touch, sliding, so that terminal 100 operates the input It is responded.Terminal 100 then by word, picture either any one form of video or combination be formed by output content pass through Touch Screen 117 shows to user and exports.
Key-press module 119 includes at least one button, to provide user's interface inputted to terminal 100, user Terminal 100 can be made to execute different functions by pressing different buttons.For example, sound regulating key is for user's realization pair The adjusting for the wave volume that terminal 100 plays.
It is appreciated that structure shown in Fig. 2 is only to illustrate, terminal 100 may also include more more or fewer than shown in Fig. 2 Component, or with the component different from shown in Fig. 2.Hardware, software may be used in each component shown in Fig. 2 To realize.
Fig. 3 is a kind of hardware block diagram of server 200 shown according to an exemplary embodiment.It needs to illustrate It is that the server 200 is an example for adapting to the present invention, must not believe that there is provided the use scopes to the present invention Any restrictions.The server 200 can not be construed to need to rely on or must have shown in Fig. 3 illustratively to service One or more component in device 200.
The hardware configuration of the server 200 can generate larger difference due to the difference of configuration or performance, such as Fig. 3 institutes Show, server 200 includes:Power supply 210, interface 230, at least a memory 250 and an at least central processing unit (CPU, Central Processing Units)270。
Wherein, power supply 210 is used to provide operating voltage for each hardware device on server 200.
Interface 230 includes an at least wired or wireless network interface 231, at least a string and translation interface 233, at least one defeated Enter output interface 235 and at least USB interface 237 etc., is used for and external device communication.
The carrier that memory 250 is stored as resource can be read-only memory, random access memory, disk or CD Deng the resource stored thereon includes operating system 251, application program 253 and data 255 etc., and storage mode can be of short duration It stores or permanently stores.Wherein, operating system 251 is for managing and controlling each hardware device on server 200 and answer To realize calculating and processing of the central processing unit 270 to mass data 255 can be Windows with program 253 ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..Application program 253 be based on operating system 251 it The upper computer program for completing at least one particular job, may include an at least module (being not shown in Fig. 3), each module The series of computation machine readable instruction to server 200 can be separately included.Data 255 can be stored in disk Photo, picture etc..
Central processing unit 270 may include the processor of one or more or more, and be set as through bus and memory 250 communications, for operation and the mass data 255 in processing memory 250.
As described in detail above, memory will be read by central processing unit 270 by being applicable in the server 200 of the present invention The form of the series of computation machine readable instruction stored in 250 completes Web access method.
In addition, also can equally realize the present invention by hardware circuit or hardware circuit combination software, therefore, this hair is realized The bright combination for being not limited to any specific hardware circuit, software and the two.
Referring to Fig. 4, in one exemplary embodiment, a kind of Web access method is suitable for implementation environment shown in Fig. 1 The structure of terminal, the terminal can be as shown in Figure 2.
This kind of Web access method can be executed by terminal (i.e. front end), may comprise steps of:
Step 310, front end obtains the web access requests that the Internet, applications are initiated to the back-end.
As previously mentioned, the Internet, applications use front end/back end communications pattern, diversified demand is provided for client.After for example, End is the web page resources that front end stores related web page just can obtain the web page resources in rear end as long as front and rear end interacts, It is achieved in online access of the user to webpage, so that user enjoys the various lines that webpage is provided by the Internet, applications Upper service.
Web access requests as a result, are that user controls the interconnection for running on front end to carry out online access to webpage Net application is initiated to the back-end.The web access requests indicate the Internet, applications and ask the webpage accessed, in order to follow-up Can rear end return the Internet, applications ask access webpage web page resources.For example, the Internet, applications can be insurance marketing Using then webpage can be declaration form sale webpage or declaration form after sale webpage etc..
It should be appreciated that the web page resources of the stored webpage in rear end are magnanimity, the storage location of different web pages resource is respectively not It is identical.Therefore, web access requests are generated according to the storage location of web page resources, it is understood that are that web page access is asked The storage location of web page resources is carried in asking.
Webpage link address indicates the storage location of web page resources, be used to carry out web page resources in rear end Positioning.That is, there is different web page resources different webpage link address, i.e. webpage link address to realize to webpage The unique mark of storage location of the resource in rear end just can uniquely be obtained in rear end as a result, based on webpage link address The web page resources of storage.
Step 330, web page resources positioning is carried out in rear end according to the webpage link address in web access requests, is received The web page resources that rear end returns.
It, will be from the web access requests after receiving the web access requests transmitted by front end for rear end Middle extraction obtains webpage link address, and then just can be positioned to web page resources according to webpage link address.
Positioning is the storage location referred to for corresponding to the magnanimity web page resources stored in rear end, according to web page interlinkage The storage location of the web page resources of address instruction is searched, to obtain the web page resources for being stored in the storage location.
For front end, when rear end return web page resources, it is just correspondingly received the web page resources.Wherein, the webpage Resource only includes front end data.
Web page resources only include front end data, refer to data received by front end are pure, that is, do not include rear end number According to, it is understood that it is that there is no should reach front and back end point by the data of back-end processing with this for the data that front end receiver arrives From purpose.
Step 350, by the presentation layer that is detached with rear end to only including the web page resources of front end data in the Internet, applications Middle carry out web displaying.
Wherein, so-called presentation layer indicates the form of performance web page resources.
For example, web page resources are texts, then the form of expression of the web page resources indicated by presentation layer can be txt lattice Formula so that text is carried out by txt formats in the Internet, applications and is shown, alternatively, web page resources are pictures, then indicated by presentation layer The forms of expression of web page resources can be jpg formats so that picture is carried out by jpg formats in the Internet, applications and is shown.
It is appreciated that web displaying mainly carries out in front end, therefore, in the present embodiment, presentation layer is detached with rear end.
Specifically, in the data mining that front end is carried out independently of rear end, after may being transmitted to by developed data End, then it is developed data and the presentation layer for web displaying are decoupling, to form the presentation layer detached with rear end.
In other words, the presentation layer detached with rear end safeguarded by front end completely, without depending on rear end, accordingly Ground, there will be no should be by data (such as the presentation layer of front-end processing for the data by front end stand-alone development that rear end receives Related data), further achieve the purpose that front and back end is detached with this.
During above-mentioned realization, by only including the web page resources of front end data and the presentation layer that is detached with rear end, Realize the decoupling of front and back end so that complexity is effectively reduced during web page access, to solve in the prior art Because front and back end coupling is excessively high leads to web page access inefficiency the problem of.
Referring to Fig. 5, in one exemplary embodiment, before step 330, the above method can also include the following steps:
Step 410, rear end carries out data mining independently of front end, generates web page resources.
Wherein, web page resources only include the front end data for complying with standard data format.
Step 430, communication interface is disposed in the rear end for carrying out Dynamic data exchange exploitation, to carry out webpage by communication interface The transmission of resource.
That is, in the data mining that rear end is carried out independently of front end, due to web page resources be used in front end into Row web displaying and need to be transmitted to front end, then the web page resources generated only include front end data so that front end is received To data be it is pure, with this achieve the purpose that front and back end detach.
Further, since front and back end detaches, the data interaction between front and rear end is real by unified communication interface It is existing, the complexity of data transmission is not only reduced, and be conducive to follow-up data format conversion, and then be conducive to further carry High web page access efficiency.
Standard data format is configured by communication interface, i.e., the standard data format that different communication interface is supported is different, then For the standard data format also different from of front end data configuration.For example, communication interface is api interface, it is front end number correspondingly Can be JSON, XML etc. according to the standard data format configured.
In an embodiment in the specific implementation, for rear end, api interface is restful styles.
As shown in fig. 6, step 430 may comprise steps of:
Step 431, the communication protocol configuration of api interface is carried out.
After deploying unified api interface respectively in front and back end, by for the unified api interface configuration protocol, So that the unified api interface meets configured communication protocol when carrying out data transmission, to realize efficient data transmission.
For example, communication protocol is http agreements or https agreements.
Step 433, domain name deployment is carried out to the api interface for being configured with communication protocol.
Domain name is to be uniquely identified to the position (electronic position/geographical location) where rear end, for example, front end is logical It crosses domain name and rear end is directly accessed.
Domain name is disposed, that is, refers to the api interface that deployment is configured with communication protocol in domain name so that access is to be based on the domain The api interface disposed in name, for example, the api interface of rear end is directly accessed in the api interface that front end is disposed by domain name.
Specifically, domain name dispose, the api interface for being configured with communication protocol is deployed in Main Domain, alternatively, for not into The api interface for being configured with communication protocol, can also be deployed in the next stage of Main Domain by the api interface of row extension.
For example, for https:For //api1.example.com, api interface is api1 interfaces, for api1 interfaces institute The communication protocol of configuration is https agreements, which is deployed in Main Domain example.com In.
For http:For //example.org/api2/, api interface is api2 interfaces, is configured by api2 interfaces Communication protocol is http agreements, which is then deployed in the next stage of Main Domain.
It remarks additionally herein, api interface is substantially the interface that operating system is supplied to application program, and then makes Obtaining application program, trigger action system goes executing application to instruct by calling api interface, is referred to as a result, according to application program The difference of order, the calling service that api interface is provided also change therewith, if the calling service that api interface is provided is relatively simple It is single and relatively fixed, that is, the api interface is regarded as the api interface without extension.
Step 435, path and the action type of web page resources are added in the domain name for deploying api interface.
Wherein, the path of web page resources is the storage location for indicating web page resources in rear end so that front end can pass through The path access of web page resources is to the corresponding web page resource for being stored in rear end in domain name.
Action type refers to the operation that rear end can perform web page resources, including but not limited to:Resource Access, resource are new Build, resource updates, resource delete etc. operations.
Further, as shown in fig. 7, step 430 can also include the following steps:
Step 437, the addition filtering information in the domain name for deploying api interface.
If web page resources are excessive, all web page resources can not possibly be returned to front end by rear end, for this purpose, filtering information is to use In the filtering for carrying out web page resources, which includes but not limited to:It returns to quantity, screening conditions, return to web page resources institute Starting position, the clooating sequence etc. for returning to web page resources.
Step 439, conditional code information is added in the domain name for deploying api interface.
Conditional code information includes the conditional code that rear end forward end returns, and indicates rear end to being operated performed by web page resources with this And/or operation implementing result.
For example, conditional code is 200, then it represents that rear end forward end returns to requested web page resources success, alternatively, conditional code It is 400, then it represents that rear end does not carry out newly-built operation or the update operation of web page resources.
By the cooperation of above-described embodiment, the api interface deployment of restful styles in rear end is realized, and then be front end It carries out web page access and provides foundation, is i.e. front end just can be asked by containing the domain name of the api interface of the restful styles Rear end returns to the corresponding web page resources of webpage.
It should be noted that the execution sequence of step 437~step 439 can adjust, the present embodiment is not subject to this It limits.
In one exemplary embodiment, before step 350, the above method can also include the following steps:
In the data mining that front end is carried out independently of rear end, developed data and the presentation layer for web displaying are decoupled It closes, forms the presentation layer detached with rear end.
It is decoupling, refer to that will be used for the presentation layer of web displaying and the developed data separating in front end, so that being transmitted to The data of rear end will not include the presentation layer related data for web displaying, so that the data received by rear end are pure Net, that is, the data that should be handled by front end are not present, for example, the relevant number of presentation layer institute for web displaying According to.
Software architecture used by decoupling, including but not limited to:MVC(Model-View-Controller)、MVP (Model-View-Presenter), MVVM (Model-View-ViewModel) pattern.
In one exemplary embodiment, before step 350, the above method can also include the following steps:
The presentation layer that front end pair is detached with rear end carries out component package.
It should be appreciated that during web displaying, in addition to the displaying of web page resources, the displaying of interface element is further related to, for example, Interface element includes menu bar, taskbar, the view button etc..Correspondingly, the presentation layer detached with rear end, in addition to indicating webpage The form of expression of resource may also indicate that the display styles of interface element.
As a result, in the present embodiment, the component package that presentation layer is carried out refers to the modularization for carrying out interface element so that Same interface element carries out having unified display styles during web displaying by presentation layer, not only simplifies presentation layer and opens The complexity of hair, and be conducive to enhance flexibility, the aesthetics of interface element, and then be conducive to be promoted the access body of user It tests.
In an application scenarios, it is unified that identical softphone in declaration form sales page and declaration form after-sale page is dialed into button It is encapsulated as component A, component A is shown with phone icon, so that in declaration form sales page and declaration form after-sale page Softphone dials button and is illustrated as phone icon during web displaying.
Referring to Fig. 8, in one exemplary embodiment, step 350 may comprise steps of:
Step 351, the communication interface that front end is disposed by itself carries out web page resources reception, and it only includes to meet mark to obtain The web page resources of quasi- data format front end data.
As previously described, because front and back end detaches, the data interaction between front and rear end is real by unified communication interface It is existing, the complexity of data transmission is not only reduced, and be conducive to follow-up data format conversion, and then be conducive to further carry High web page access efficiency.
The communication interface that front end is disposed as a result, is consistent with rear end, for example, communication interface is api interface, accordingly Ground, standard data format are configured by the api interface, including but not limited to:JSON, XML etc..
In an embodiment in the specific implementation, for front end, returned by the api interface of restful styles in rear end It has returned after web page resources, just can receive the front end data for meeting JSON formats.
Step 353, Data Format Transform is carried out to the front end data for complying with standard data format in web page resources, is turned Change data.
Data Format Transform refers to being supported when the standard data format of front end data is converted to front end actual treatment Data format.
Step 355, the presentation layer detached with rear end is called to carry out web displaying according to change data in the Internet, applications.
In above process, the web page resources received only include the front end data for complying with standard data format, i.e., do not deposit In the data that should be handled by rear end, it is understood that be, front end receiver to data be it is pure, it is therefore, and rear During the web displaying that the presentation layer of end separation is carried out, front end only needs to handle front end data, avoids processing Back end data, And then be conducive to improve front-end processing efficiency, to accelerate web displaying process, be conducive to the access experience for promoting user.
Following is apparatus of the present invention embodiment, can be used for executing client's number according to the present invention based on mobile terminal According to safety access method.For undisclosed details in apparatus of the present invention embodiment, please refer to according to the present invention based on shifting The embodiment of the method for the client data secure access method of dynamic terminal.
Referring to Fig. 9, in one exemplary embodiment, a kind of web page access device 900 includes but not limited to:Request is initiated Module 910, resource receiving module 930 and web displaying module 950.
Wherein, request initiation module 910 obtains the web access requests that the Internet, applications are initiated to the back-end for front end.
Resource receiving module 930 is used to carry out webpage money in rear end according to the webpage link address in web access requests Source positions, and receives the web page resources that rear end returns, and web page resources only include front end data.
Web displaying module 950 is used for the presentation layer by being detached with rear end to only including that the web page resources of front end data exist Web displaying is carried out in the Internet, applications.
It should be noted that the web page access device that above-described embodiment is provided is when carrying out web page access processing, only with The division progress of above-mentioned each function module, can be as needed and by above-mentioned function distribution by not for example, in practical application Same function module is completed, i.e., the internal structure of web page access device will be divided into different function modules, to complete above retouch The all or part of function of stating.
In addition, the embodiment for the web page access device and Web access method that above-described embodiment is provided belongs to same structure Think, wherein modules execute the concrete mode operated and are described in detail in embodiment of the method, no longer superfluous herein It states.
In one exemplary embodiment, a kind of web page access device, including processor and memory.
Wherein, it is stored with computer-readable instruction on memory, which realizes when being executed by processor Web access method in the various embodiments described above.
In one exemplary embodiment, a kind of computer readable storage medium, is stored thereon with computer program, the calculating The Web access method in the various embodiments described above is realized when machine program is executed by processor.
The above, only preferable examples embodiment of the invention, are not intended to limit embodiment of the present invention, this Field those of ordinary skill central scope according to the present invention and spirit can be carried out very easily corresponding flexible or repaiied Change, therefore protection scope of the present invention should be subject to the protection domain required by claims.

Claims (10)

1. a kind of Web access method, which is characterized in that including:
Front end obtains the web access requests that the Internet, applications are initiated to the back-end;
Web page resources positioning is carried out in rear end according to the webpage link address in the web access requests, receives the rear end The web page resources of return, the web page resources only include front end data;
Net is carried out in the Internet, applications to the web page resources only comprising front end data by the presentation layer detached with rear end Page display.
2. the method as described in claim 1, which is characterized in that the web page interlinkage according in the web access requests Location carries out web page resources positioning in rear end, and before receiving the web page resources that the rear end returns, the method further includes:
The rear end carries out data mining independently of front end, generates web page resources, and the web page resources only include to comply with standard number According to the front end data of format;
Communication interface is disposed in the rear end for carrying out Dynamic data exchange exploitation, to carry out the webpage by the communication interface The transmission of resource.
3. method as claimed in claim 2, which is characterized in that the communication interface is the api interface of restful styles;
It is described to dispose communication interface in the rear end for carrying out Dynamic data exchange exploitation, including:
Carry out the communication protocol configuration of the api interface;
The api interface to being configured with the communication protocol carries out domain name deployment;
Path and the action type of the web page resources are added in the domain name for deploying the api interface.
4. method as claimed in claim 3, which is characterized in that described to be disposed in the rear end for carrying out Dynamic data exchange exploitation Communication interface further includes:
The addition filtering information in the domain name for deploying the api interface, the filtering information is for carrying out the web page resources Filtering;And/or
Conditional code information is added in the domain name for deploying the api interface, and the rear end is indicated by the conditional code information To implementing result is operated and/or operated performed by the web page resources.
5. the method as described in claim 1, which is characterized in that it is described by the presentation layer that is detached with rear end to only including front end Before the web page resources of data carry out web displaying in the Internet, applications, the method further includes:
In the data mining that the front end is carried out independently of the rear end, by developed data and the presentation layer for being used for web displaying It is decoupling, form the presentation layer detached with the rear end.
6. the method as described in claim 1 or 5, which is characterized in that it is described by the presentation layer that is detached with rear end to only including Before the web page resources of front end data carry out web displaying in the Internet, applications, the method further includes:
The presentation layer that the front end pair is detached with the rear end carries out component package.
7. the method as described in claim 1, which is characterized in that it is described by the presentation layer that is detached with rear end to only including front end The web page resources of data carry out web displaying in the Internet, applications, including:
The communication interface that the front end is disposed by itself carries out web page resources reception, and it only includes to comply with standard data lattice to obtain The web page resources of formula front end data;
Front end data to complying with standard data format in the web page resources carries out Data Format Transform, obtains change data;
The presentation layer detached with the rear end is called to carry out web displaying according to the change data in the Internet, applications.
8. a kind of web page access device, which is characterized in that including:
Initiation module is asked, the web access requests that the Internet, applications are initiated to the back-end are obtained for front end;
Resource receiving module, for carrying out web page resources in rear end according to the webpage link address in the web access requests Positioning, receives the web page resources that the rear end returns, and the web page resources only include front end data;
Web displaying module, for the presentation layer by being detached with rear end to the web page resources only comprising front end data described mutual Web displaying is carried out in working application.
9. a kind of web page access device, which is characterized in that including:
Processor;And
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is held by the processor The Web access method as described in any one of claim 1 to 7 is realized when row.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The Web access method as described in any one of claim 1 to 7 is realized when being executed by processor.
CN201810295338.2A 2018-04-04 2018-04-04 web access method and device Pending CN108536805A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810295338.2A CN108536805A (en) 2018-04-04 2018-04-04 web access method and device
PCT/CN2018/101555 WO2019192128A1 (en) 2018-04-04 2018-08-21 Webpage access method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810295338.2A CN108536805A (en) 2018-04-04 2018-04-04 web access method and device

Publications (1)

Publication Number Publication Date
CN108536805A true CN108536805A (en) 2018-09-14

Family

ID=63482659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810295338.2A Pending CN108536805A (en) 2018-04-04 2018-04-04 web access method and device

Country Status (2)

Country Link
CN (1) CN108536805A (en)
WO (1) WO2019192128A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815430A (en) * 2018-11-30 2019-05-28 北京金山云网络技术有限公司 Request processing method, device, data processing server and readable storage medium storing program for executing
CN112148953A (en) * 2020-09-30 2020-12-29 北京金堤征信服务有限公司 Method and device for accessing difference data

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463324A (en) * 2020-11-25 2021-03-09 银盛支付服务股份有限公司 Method for realizing front-end and back-end separation, computer equipment and storage medium
CN113254914A (en) * 2021-04-24 2021-08-13 中电长城网际***应用广东有限公司 Front-end and back-end synchronous management method and system based on visual display

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010008769A2 (en) * 2008-07-16 2010-01-21 Yahoo, Inc. Method and apparatus for sharing concurrent ad hoc web content between users visiting the same web pages
CN106020823A (en) * 2016-05-19 2016-10-12 浪潮电子信息产业股份有限公司 Front-end Web presentation and data separation and page quick response mode
CN107273528A (en) * 2017-06-28 2017-10-20 努比亚技术有限公司 A kind of front and back end separation method, mobile terminal and computer-readable recording medium
CN107862044A (en) * 2017-11-07 2018-03-30 北京京东尚科信息技术有限公司 The method and apparatus of displayed page

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8875012B1 (en) * 2013-04-30 2014-10-28 Linkedin Corporation Front-end tool for displaying diagnostic information to facilitate web page development
CN106407388A (en) * 2016-09-19 2017-02-15 福建中金在线信息科技有限公司 A web page generating method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010008769A2 (en) * 2008-07-16 2010-01-21 Yahoo, Inc. Method and apparatus for sharing concurrent ad hoc web content between users visiting the same web pages
CN106020823A (en) * 2016-05-19 2016-10-12 浪潮电子信息产业股份有限公司 Front-end Web presentation and data separation and page quick response mode
CN107273528A (en) * 2017-06-28 2017-10-20 努比亚技术有限公司 A kind of front and back end separation method, mobile terminal and computer-readable recording medium
CN107862044A (en) * 2017-11-07 2018-03-30 北京京东尚科信息技术有限公司 The method and apparatus of displayed page

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815430A (en) * 2018-11-30 2019-05-28 北京金山云网络技术有限公司 Request processing method, device, data processing server and readable storage medium storing program for executing
CN109815430B (en) * 2018-11-30 2020-07-31 北京金山云网络技术有限公司 Request processing method and device, data processing server and readable storage medium
CN112148953A (en) * 2020-09-30 2020-12-29 北京金堤征信服务有限公司 Method and device for accessing difference data
CN112148953B (en) * 2020-09-30 2024-06-07 北京金堤征信服务有限公司 Access method and device for difference data

Also Published As

Publication number Publication date
WO2019192128A1 (en) 2019-10-10

Similar Documents

Publication Publication Date Title
WO2020244495A1 (en) Screen projection display method and electronic device
WO2020244492A1 (en) Screen projection display method and electronic device
CN108536805A (en) web access method and device
US8499088B1 (en) Parallel multiple format downloads
JP6093482B2 (en) Method and apparatus for displaying search results on portable terminal
CN109428911A (en) Apparatus control method, device, terminal device and operating system
WO2021115038A1 (en) Application data processing method and related apparatus
CN109150677B (en) Cross-domain access processing method and device and electronic equipment
CN104965848A (en) Front-end resource loading method and apparatus
WO2020186928A1 (en) Data sharing method and apparatus, electronic device and computer-readable storage medium
CN107580011B (en) Data sharing method and desktop cloud server
CN109981719A (en) Information processing method and its system, computer system and computer readable medium
US20240104513A1 (en) Schedule sharing method, apparatus, and device
CN106850242A (en) A kind of information processing method and device
CN110070592A (en) Generation method, device and the hardware device of special efficacy packet
CN104978378B (en) A kind of Web access method and device
EP4134904A1 (en) Image special effect configuration method, image recognition method, apparatuses, and electronic device
CN110134480A (en) Processing method, device, electronic equipment and the storage medium of user's trigger action
CN112995005B (en) Virtual network data exchange method and device
WO2020186927A1 (en) Data sharing method, apparatus and device, and medium
CN110442416A (en) For showing method, electronic equipment and the computer-readable medium of information
CN114138393B (en) Service data input method and device
CN110177126A (en) Data communication method, the apparatus and system in unified message channel
CN112784201B (en) Webpage display method, device, terminal and storage medium
CN109739653A (en) Previewing file method, document handling 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180914

RJ01 Rejection of invention patent application after publication