CN103970534A - Method and equipment for supplying rendered page in mobile application - Google Patents

Method and equipment for supplying rendered page in mobile application Download PDF

Info

Publication number
CN103970534A
CN103970534A CN201410151853.5A CN201410151853A CN103970534A CN 103970534 A CN103970534 A CN 103970534A CN 201410151853 A CN201410151853 A CN 201410151853A CN 103970534 A CN103970534 A CN 103970534A
Authority
CN
China
Prior art keywords
access
page
request
framework
mobile application
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
CN201410151853.5A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201410151853.5A priority Critical patent/CN103970534A/en
Publication of CN103970534A publication Critical patent/CN103970534A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and equipment for supplying a rendered page in a mobile application. Specifically, a network equipment end determines template information corresponding to a framework according to an access request sent on the basis of the mobile application of the framework, the rendered page corresponding to the access request is generated on the basis of the template information, and the rendered page is supplied to user equipment corresponding to the mobile application. Compared with the prior art, the network equipment determines the template information corresponding to the formwork according to the access request sent on the basis of the mobile application of the framework, the rendered page corresponding to the access request is generated on the basis of the template information, the rendered page is supplied to the user equipment corresponding to the mobile application, and accordingly template and data rendering at the client originally is finished at a server end in advance, white screen waiting time is shortened, the access experience of the mobile application of the user is improved, and efficiency of obtaining information by the user is improved.

Description

A kind of method and apparatus of playing up the page providing in mobile application
Technical field
The present invention relates to computer realm, relate in particular to a kind of for the technology of playing up the page of mobile application is provided.
Background technology
In the mobile Internet epoch, people are applied and are moved application as Web App, Hybrid App(mixed mode by movement more and more) etc. obtaining information.But, conventionally the mode that adopts template engine and page data to be separated when existing Web App exploitation, client is from server end downloads template engine and page data, to carry out page rendering, thereby make to have the long white screen time before page rendering completes, the head of especially mobile application shields loading, and need to store all required template engines when suspension and data could realize page rendering to this locality, the mobile application access that has not only affected user is experienced, correspondingly, also reduced the efficiency of user's obtaining information.
Summary of the invention
The object of this invention is to provide a kind of for the method and apparatus of playing up the page of mobile application is provided.
According to an aspect of the present invention, provide a kind of and moved for providing the method for playing up the page of applying at network equipment end, wherein, the method comprises:
The request of access of initiating according to the mobile application based on framework is determined the corresponding Template Information of described framework;
Generate the play up page corresponding with described request of access based on described Template Information;
Described in inciting somebody to action, playing up the page provides to the corresponding subscriber equipment of described mobile application.
According to a further aspect in the invention, also provide a kind of and moved for providing the method for playing up the page of applying at subscriber equipment end, wherein, the method comprises:
Initiate request of access by the mobile application based on framework;
Framework described in initialization in described mobile application;
Obtain the play up page corresponding with described request of access according to the described framework after initialization;
The page is provided described in providing.
According to an aspect of the present invention, provide a kind of for the network equipment of playing up the page of mobile application is provided, wherein, this network equipment comprises:
Determine the device of the corresponding Template Information of described framework for the request of access of initiating according to the mobile application based on framework;
For generating the device of playing up the page corresponding with described request of access based on described Template Information;
For the described page of playing up is provided to the device of the corresponding subscriber equipment of described mobile application.
According to another aspect of the present invention, provide a kind of for the subscriber equipment of playing up the page of mobile application is provided, wherein, this subscriber equipment comprises:
For the device of initiating request of access by the mobile application based on framework;
For the device at framework described in described mobile application initialization;
For obtaining the device of playing up the page corresponding with described request of access according to the described framework after initialization;
For the device of the page is provided described in providing.
According to a further aspect of the invention, also provide a kind of for the system of playing up the page of mobile application is provided, wherein, this system comprise as aforementioned according to one aspect of the invention for the network equipment of playing up the page of mobile application is provided, and as aforementioned according to a further aspect of the present invention for the subscriber equipment of playing up the page of mobile application is provided.
Compared with prior art, in the present invention, the network equipment is determined the corresponding Template Information of described framework by the request of access of initiating according to the mobile application based on framework, to generate the play up page corresponding with described request of access based on described Template Information, and will described in play up the page and provide to the corresponding subscriber equipment of described mobile application, thereby make originally to play up in advance and to complete at server end in the template of client and data, not only reduce white screen stand-by period (especially having reduced the stand-by period of first screen), the mobile application access that promotes user is experienced, also improved the efficiency of user's obtaining information.And, in the present invention, subscriber equipment end also can be played up the page based on the corresponding history of described request of access, described in obtaining, play up the page, thereby realize the page after automatic off-line buffer memory is played up, make in the time of client off-line, without additionally each desired data being carried out to localization storage, correspondingly, further reduced the white screen stand-by period, the mobile application access that promotes user is experienced, and has also improved the efficiency of user's obtaining information.
Brief description of the drawings
By reading the detailed description that non-limiting example is done of doing with reference to the following drawings, it is more obvious that other features, objects and advantages of the present invention will become:
Fig. 1 illustrates a kind of for the equipment schematic diagram of the subscriber equipment of playing up the page of mobile application is provided according to one aspect of the invention;
Fig. 2 illustrates in accordance with a preferred embodiment of the present invention a kind of for the subscriber equipment of playing up the page of mobile application and the equipment schematic diagram of the network equipment are provided;
A kind of method flow diagram of playing up the page for providing movement to apply is according to a further aspect of the present invention provided Fig. 3;
Fig. 4 illustrates that a kind of subscriber equipment and the network equipment in accordance with a preferred embodiment of the present invention coordinate the method flow diagram of playing up the page of realizing for mobile application is provided.
In accompanying drawing, same or analogous Reference numeral represents same or analogous parts.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Fig. 1 illustrates according to a kind of of one aspect of the invention and moves for providing the subscriber equipment of playing up the page 1 of applying, wherein, subscriber equipment 1 comprises the device (hereinafter to be referred as " access means 11 ") for initiating request of access by the mobile application based on framework, for the device (hereinafter to be referred as " framework apparatus for initializing 12 ") at framework described in described mobile application initialization, for obtain the device of playing up the page corresponding with described request of access (hereinafter to be referred as " page obtains device 13 ") according to the described framework after initialization, for the device (hereinafter to be referred as " page generator 14 ") of the page is provided described in providing.Particularly, access means 11 is initiated request of access by the mobile application based on framework; Framework apparatus for initializing 12 framework described in initialization in described mobile application; The page obtains device 13 and obtains the play up page corresponding with described request of access according to the described framework after initialization; Described in providing, page generator 14 plays up the page.
At this, described subscriber equipment 1 can be any electronic product that can carry out man-machine interaction by modes such as keyboard, mouse, touch pad, touch-screen or handwriting equipments with user, such as computing machine, mobile phone, PDA, palm PC PPC or panel computer etc.At this, described subscriber equipment 1 comprise a kind of can be according to the instruction of prior setting or storage, automatically carry out the electronic equipment of numerical evaluation and information processing, its hardware includes but not limited to microprocessor, special IC (ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedded device etc.
Those skilled in the art will be understood that above-mentioned subscriber equipment is only for giving an example, and other subscriber equipmenies existing or that may occur from now on, as applicable to the present invention, also should be included in protection domain of the present invention, and are contained in this at this with way of reference.
Particularly, the application programming interfaces (API) that access means 11 self provides by the mobile application based on framework, or the application programming interfaces that provide by third party devices such as browsers (API), or, by the general dynamic web page technique in this front and back end of NODEJS, obtain the request of access that user initiates by the mobile application based on framework of opening in its subscriber equipment/installing.
At this, the described mobile application based on framework comprises the mobile client-side program of applying for realizing as clouda based on Development Framework, as clouda WebApp client etc., it can be to be not only the specially designed mobile applications client of subscriber equipment specially, can also be according to the automatic real-time update of the variation of its corresponding servers' data, and the server end corresponding with it operates in browser, iOS, Android and search box as in Baidu's frame simultaneously.At this, the described mobile application based on framework can be realized by a series of set according to the computer data of particular order tissue and instruction.At this, described framework includes but not limited to as WebApp Development Framework clouda, backbones, emberjs, angularjs etc.At this, described mobile application realizes based on described Development of Framework, and it includes but not limited to move application (HybridApp) as web application (WebApp), mixed mode.At this, the request of access of initiating by the mobile application based on framework refers to the accessing operation of carrying out in described mobile application, its include but not limited to as click page link in described mobile application, as described in move in applying and carry out search/query operation etc.Those skilled in the art will be understood that said frame and mobile application are only for giving an example; other frameworks existing or that may occur from now on or mobile application as applicable to the present invention; also should be included in protection domain of the present invention, and be contained in this at this with way of reference.
For example, suppose to have opened in the subscriber equipment mobile phone of user A mobile application based on framework clouda as travel-WebApp, its clicked this move page link in application as park, Shanghai, application programming interfaces (API) of providing by movement application travel-WebApp self of access means 11 of application travel-WebApp are provided for this, just can get user A by this move apply travel-WebApp initiation to page link park, Shanghaithe request of access of the page pointed.
Those skilled in the art will be understood that the above-mentioned mode by the mobile application initiation request of access based on framework is only for example; the mode that request of access is initiated in other existing or passing through of may occurring from now on mobile application based on framework is as applicable to the present invention; also should be included in protection domain of the present invention, and be contained in this at this with way of reference.
Framework apparatus for initializing 12 framework described in initialization in described mobile application.Particularly, first framework apparatus for initializing 12 downloads the corresponding skeleton code file of described framework; Then, framework apparatus for initializing 12 is resolved the corresponding URL of described request of access, obtains the corresponding path of this URL part; Then, according to the corresponding path of this URL part, by router find the corresponding Template Information of described framework and/or with the corresponding target data acquisition methods of described request of access; And then, according to described target data acquisition methods, obtain described target data, to complete the initialization to described framework.At this, described Template Information refers to user interface (view) and business datum (data) or content is separated with a series of reusable assembly of rapid build web template, it is template engine, as handlebars, elf, nTenjin, doU, doT, jst_speed, artTemplate etc., its text formatting file be stored in the corresponding server of described intended application.Those skilled in the art will be understood that above-mentioned Template Information is only for giving an example, and other Template Informations existing or that may occur from now on, as applicable to the present invention, also should be included in protection domain of the present invention, and are contained in this at this with way of reference.For example, connect example, first framework apparatus for initializing 12 downloads the corresponding skeleton code file of described framework clouda, as downloaded from the server of mobile application travel-WebApp; Then the user A that, framework apparatus for initializing 12 gets according to access means 11 by this move application travel-WebApp initiate to page link park, Shanghaithe request of access of the page pointed, to the corresponding page link of this request of access park, Shanghaicorresponding URL, as http://localhost:8080/index.html/shanghaiparking/index/123/007 p=2 resolves, obtains i.e. " shanghaiparking/index " of the corresponding path of this URL part; Then, according to the corresponding path of this URL part, by router find the corresponding Template Information of described framework and/or with the corresponding target data acquisition methods of described request of access, as according to this URL, can search the controller that router obtains definition, as shown below:
Corresponding controller is
Framework apparatus for initializing 12 can be according to the onload function in controller code, obtain data capture method getPark, according to onrender function in controller code, can obtain use template name ' TEMPLATE', and then, according to described target data acquisition methods getPark, obtain described target data as object-data, to complete the initialization to described framework.
The mode that those skilled in the art will be understood that framework described in above-mentioned initialization is only for for example; described in other initialization existing or that may occur from now on, the mode of framework is as applicable to the present invention; also should be included in protection domain of the present invention, and be contained in this at this with way of reference.
The page obtains device 13 and obtains the play up page corresponding with described request of access according to the described framework after initialization.Particularly, the page obtains the device 13 corresponding Template Information of described framework that can first obtain according to framework apparatus for initializing 12 as ' TEMPLATE', and the corresponding target data of described request of access is as object-data, based on regular expression as:
var tplReg=new RegExp("("+item+"[^>]*>)[\\s\\S]*?(<\/block>)");
me.tplContent=
me.tplContent.replace(tplReg,"\$1"+me.__templateBlocks[item](data)+"\$2"),
The described target data object-data that framework apparatus for initializing 12 is obtained insert described Template Information ' in the corresponding data block of TEMPLATE', each data block is played up, as adopt the tense onrender () of controller in clouda to play up, played up accordingly the page as render-web.
Page generator 14, by the communication mode of the agreements such as http, https, the page is provided described in providing, as is offered respective user, browses for user.
Between each device of subscriber equipment 1, be constant work.Particularly, access means 11 continues to initiate request of access by the mobile application based on framework; Framework apparatus for initializing 12 continues in described mobile application framework described in initialization; The page obtains device 13 to be continued to obtain the play up page corresponding with described request of access according to the described framework after initialization; Page generator 14 is played up the page described in continuing to provide.At this, those skilled in the art will be understood that " continuing " refer to initiation, the framework of the request of constantly conducting interviews respectively between each device of subscriber equipment 1 initialization, play up the page generation with provide, until subscriber equipment 1 stops initiating request of access in a long time.
Preferably, the page obtains device 13 also can play up the page based on the corresponding history of described request of access, described in obtaining, play up the page, as using as described in play up in page data storehouse, preserve with as described in the corresponding history of request of access play up the page as described in play up the page.For example, suppose that the request of access to park, the page link Shanghai page pointed of once initiating by the mobile application travel-WebApp based on framework clouda according to user before subscriber equipment 1 determined that it was history-render-web that corresponding history is played up the page, when the access means 11 of subscriber equipment 1 get user A by this move that application travel-WebApp initiates to page link park, Shanghaiwhen the request of access of the page pointed, the page obtains device 13 can play up page history-render-web as the described page of playing up using corresponding this request of access history.At this, described in play up in page data banked cache and described subscriber equipment 1.Preferably, when described history is when to play up the page be multiple, what the page obtained that device 13 can play up multiple described history up-to-date buffer memory in the page plays up the page as the described page of playing up.
Fig. 2 illustrates in accordance with a preferred embodiment of the present invention a kind of for the subscriber equipment of playing up the page 1 of mobile application and the equipment schematic diagram of the network equipment 2 are provided.Wherein, subscriber equipment 1 comprises that access means 11 ', framework apparatus for initializing 12 ', the page obtain device 13 ', page generator 14 ', the network equipment 2 comprises the device (hereinafter to be referred as " Template Information determining device 21 ' ") of determining the corresponding Template Information of described framework for applying according to the movement based on framework the request of access of initiating, for generating the device of playing up the page (hereinafter to be referred as " webpage generating device 22 ' ") corresponding with described request of access based on described Template Information, for the described page of playing up is provided to the device (hereinafter to be referred as " template generator 23 ' ") of the corresponding subscriber equipment of described mobile application.Particularly, the access means 11 ' of subscriber equipment 1 is initiated request of access and described request of access is sent to the corresponding network equipment 2 by the mobile application based on framework; Correspondingly, the request of access that the Template Information determining device 21 ' of the network equipment 2 is initiated according to the mobile application based on framework is determined the corresponding Template Information of described framework; Webpage generating device 22 ' generates the play up page corresponding with described request of access based on described Template Information; Described in page generator 23 ' general, playing up the page provides to the corresponding subscriber equipment 1 of described mobile application; Correspondingly, the framework apparatus for initializing 12 ' of subscriber equipment 1 framework described in initialization in described mobile application; The page obtain that device 13 ' receives that the described network equipment provides described in play up the page; Described in providing, page generator 14 ' plays up the page.At this, the framework apparatus for initializing 12 ' of subscriber equipment 1 is identical or basic identical with the content of page generator 14 with the framework apparatus for initializing 12 of subscriber equipment 1 in Fig. 1 embodiment respectively with page generator 14 ', for simplicity's sake, therefore do not repeat them here, and the mode of quoting comprises therewith.
At this, the described network equipment 2 comprises the mobile request of access of applying based on framework sending for receive subscriber equipment from network, and play up the page of this request correspondence in response to this request, and the page of having played up is offered to the program of certain type computer of subscriber equipment, the described network equipment includes but not limited to that it can be by realizations such as network host, single network server, multiple webserver collection or the set of computers based on cloud computing as clouda WebApp server etc.At this, cloud is made up of a large amount of main frames based on cloud computing (Cloud Computing) or the webserver, and wherein, cloud computing is the one of Distributed Calculation, the super virtual machine being made up of the loosely-coupled computing machine collection of a group.
At this, the described network equipment 2 comprise a kind of can be according to the instruction of prior setting or storage, automatically carry out the electronic equipment of numerical evaluation and information processing, its hardware includes but not limited to microprocessor, special IC (ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedded device etc.
Those skilled in the art will be understood that the above-mentioned network equipment 2 is only for giving an example, and other network equipments existing or that may occur from now on, as applicable to the present invention, also should be included in protection domain of the present invention, and are contained in this at this with way of reference.
Particularly, first the access means 11 ' of subscriber equipment 1 initiates request of access by the mobile application based on framework; Then, by the communication mode of the agreement such as http, https, described request of access is sent to the corresponding network equipment 2.At this, access means 11 ' is identical or basic identical with the mode that the access means 11 of subscriber equipment 1 in Fig. 1 embodiment is initiated request of access by the mobile application based on framework, for simplicity's sake, thus do not repeat them here, and comprise therewith in the mode of application.
Correspondingly, the Template Information determining device 21 ' of the network equipment 2, first by the communication mode of the agreements such as http, https, receives the request of access that the mobile application based on framework is initiated; Then, then according to described request of access determine the corresponding Template Information of described framework.At this, Template Information determines that the mode of described Template Information includes but not limited to following at least any one:
1), according to described request of access, from corresponding templates file, read corresponding Template Information.For example, suppose to have opened in the subscriber equipment mobile phone of user A mobile application based on framework clouda as travel-WebApp, its clicked this move page link in application as park, Shanghai,and Template Information determining device 21 ' receive user A by this move application travel-WebApp initiate to page link park, Shanghaithe request of access of the page pointed, Template Information determining device 21 ' can be according to this request of access, from corresponding templates file as read corresponding Template Information the views file of clouda catalogue, as adopted handlebar assembly as template engine.
2) request of access of first initiating according to the mobile application based on framework is determined described framework; Then, determine the corresponding Template Information of described framework according to described framework.For example, connect example, suppose that Template Information determining device 21 ' receives the request of access to park, the page link Shanghai page pointed that user A initiates by move application travel-WebApp based on framework clouda, the request of access that first Template Information determining device 21 ' can be initiated according to the mobile application based on framework is determined described framework, as according to the NODEJS script that moves application travel-WebApp introducing based on framework clouda, determine described framework; Then, determine the corresponding Template Information of described framework according to described framework, as the corresponding URL of this request of access is resolved, obtain the corresponding path of this URL part; Then, according to the corresponding path of this URL part, find the corresponding Template Information of described framework by router, as according to this URL, can search router and obtain the controller defining, as shown below:
Corresponding controller is
Template Information determining device 21 ' can be according to onrender function in controller code, obtain use template name ' TEMPLATE'.
Those skilled in the art will be understood that the above-mentioned mode of determining the corresponding Template Information of described framework is only for giving an example; the mode of other existing or corresponding Template Informations of definite described framework that may occur is from now on as applicable to the present invention; also should be included in protection domain of the present invention, and be contained in this at this with way of reference.
Webpage generating device 22 ' generates the play up page corresponding with described request of access based on described Template Information.Particularly, webpage generating device 22 ' can, first based on described request of access, obtain the target data corresponding with described request of access; Then, based on regular expression, described target data is inserted in the corresponding data block of described Template Information, each data block is played up, as adopt the tense onrender () of controller in clouda to play up, played up accordingly the page.For example, connect example, the user A that webpage generating device 22 ' receives according to Template Information determining device 21 ' by this move application travel-WebApp initiate to page link park, Shanghaithe request of access of the page pointed, to the corresponding page link of this request of access park, Shanghaicorresponding URL, as http://localhost:8080/index.html/shanghaiparking/index/123/007 p=2 resolves, obtains i.e. " shanghaiparking/index " of the corresponding path of this URL part; Then, according to the corresponding path of this URL part, find the target data acquisition methods corresponding with described request of access by router, as according to this URL, can obtain corresponding router and be:
Suppose that webpage generating device 22 ' is according to this router, find the target data acquisition methods corresponding with described request of access, the Publish/Subscribe of target data as described in obtaining as defined in the action in this router, webpage generating device 22 ' can, according to described target data acquisition methods, obtain described target data as object-data; Then, based on regular expression, described target data object-data is inserted in the determined described Template Information of Template Information determining device 21 ' data block as corresponding in handlebar assembly, and each data block is played up, as adopt the tense onrender () of controller in clouda to play up, played up accordingly the page as render-web.
Page generator 23 ' is by the communication mode of the agreements such as http, https, will described in play up the page and provide to the corresponding subscriber equipment 1 of described mobile application.
Correspondingly, the page of subscriber equipment 1 obtains device 13 ' by the communication mode of the agreements such as http, https, plays up the page described in receiving that the described network equipment provides.
(with reference to figure 2) in a preferred embodiment, the webpage generating device 22 ' of the network equipment 2 comprises unit for obtaining the target data corresponding with described request of access (following " data capture unit 221 ' "), for generating the unit of playing up the page (hereinafter to be referred as " page generation unit 222 ' ") corresponding with described request of access based on described Template Information and described target data.
Particularly, data capture unit 221 ' obtains the target data corresponding with described request of access.At this, the mode that data capture unit 221 ' obtains described target data is identical or basic identical with the mode that aforementioned webpage generating device 22 ' obtains described target data, for simplicity's sake, thus do not repeat them here, and comprise by reference therewith.
Page generation unit 222 ' generates the play up page corresponding with described request of access based on described Template Information and described target data.At this, the mode of playing up the page described in page generation unit 222 ' generates includes but not limited to following at least any one:
1) generate the template character string corresponding with described Template Information based on described Template Information; Generate the play up page corresponding with described request of access by described target data being inserted to described template character string.At this, described template character string has been indicated the corresponding data block of described Template Information.For example, suppose that the determined described Template Information of Template Information determining device 21 ' is handlebar assembly, this Template Information is stored in the views file of clouda catalogue as txt form with text formatting, page generation unit 222 ' can adopt character string read method, obtain the template character string corresponding with described Template Information, as obtain the corresponding data block of Template Information handlebar assembly as handlebar-data-block1, handlebar-data-block2, handlebar-data-block3, etc.; Then, page generation unit 222 ' target data that obtain data capture unit 221 ' and that described request of access is corresponding can be inserted template character string handlebar-data-block1, handlebar-data-block2, handlebar-data-block3 generate with described request of access corresponding play up the page.
2) play up the page based on the corresponding history of described Template Information, and described target data, the play up page corresponding with described request of access generated.For example, suppose that the determined described Template Information of Template Information determining device 21 ' is handlebar assembly, and the corresponding history of this Template Information to play up the page be history-render-web, the described target data of content of pages information that page generation unit 222 ' can be played up history in page history-render-web is replaced, thereby plays up the page described in generating.
Those skilled in the art will be understood that the mode of playing up the page described in above-mentioned generation is only for for example; the mode of playing up the page described in other generations existing or that may occur is from now on as applicable to the present invention; also should be included in protection domain of the present invention, and be contained in this at this with way of reference.
Preferably, the request of access that the Template Information determining device 21 ' of the network equipment 2 is initiated according to the mobile application based on framework is determined the corresponding Template Information of described framework and data acquisition information, wherein, data capture unit 221 ' is according to described request of access, in conjunction with described data acquisition information, obtain the target data corresponding with described request of access.
Particularly, the request of access that Template Information determining device 21 ' is initiated according to the mobile application based on framework is determined the corresponding Template Information of described framework and data acquisition information.At this, described data pattern information represents to obtain the method for described target data, for example, for clouda, can obtain described target data by Publish/Subscribe.Particularly, Template Information determining device 21 ' can be resolved the corresponding URL of described request of access, obtains the corresponding path of this URL part; Then,, according to the corresponding path of this URL part, find the corresponding Template Information of described framework and data acquisition information by router.
For example, suppose user A that access means 11 ' gets by this move that application travel-WebApp initiates to page link park, Shanghaithe request of access of the page pointed, Template Information determining device 21 ' can be to the corresponding page link of this request of access shanghai parkcorresponding URL, as http://localhost:8080/index.html/shanghaiparking/index/123/007 p=2 resolves, obtains i.e. " shanghaiparking/index " of the corresponding path of this URL part; Then, according to the corresponding path of this URL part, find the corresponding Template Information of described framework and data acquisition information by router, as according to this URL, can obtain corresponding router and be:
Then, according to the action in this router, find the corresponding Template Information of described framework, with data acquisition information, as adopted handlebar assembly as template engine, obtain described target data by Publish/Subscribe.
Then, data capture unit 221 ', according to described request of access, in conjunction with described data acquisition information, obtains the target data corresponding with described request of access.For example, connect example, data capture unit 221 ', according to described request of access, in conjunction with described data acquisition information, obtains the target data corresponding with described request of access, obtains described target data by Publish/Subscribe.
It will be understood by those skilled in the art that in specific embodiment, the present invention can be only carries out obtaining of Template Information and target data and plays up accordingly described in obtaining and play up the page at the network equipment 2 ends, then will play up the page and be sent to subscriber equipment 1 end.Preferably, in the present invention, the head screen of mobile application is only played up at the network equipment 1 end, and inferior screen and the later mutual and page switch, do not play up at the network equipment 2 ends, but subscriber equipment 1 end directly obtains Template Information and target data is assembled from the network equipment 1 end, described in obtaining, plays up the page.
Preferably, in the present invention, subscriber equipment 1 end can obtain Template Information and target data with the network equipment 2 ends simultaneously, is convenient to Data Update so that obtain subscriber equipment 1, and subscriber equipment 1 end can embody the real-time that the network equipment 2 end datas change.
A kind of method flow diagram of playing up the page for providing movement to apply is according to a further aspect of the present invention provided Fig. 3.
Particularly, in step S1, subscriber equipment 1 is initiated request of access by the mobile application based on framework; In step S2, subscriber equipment 1 framework described in initialization in described mobile application; In step S3, subscriber equipment 1 obtains the play up page corresponding with described request of access according to the described framework after initialization; In step S4, described in providing, subscriber equipment 1 plays up the page.
At this, described subscriber equipment 1 can be any electronic product that can carry out man-machine interaction by modes such as keyboard, mouse, touch pad, touch-screen or handwriting equipments with user, such as computing machine, mobile phone, PDA, palm PC PPC or panel computer etc.At this, described subscriber equipment 1 comprise a kind of can be according to the instruction of prior setting or storage, automatically carry out the electronic equipment of numerical evaluation and information processing, its hardware includes but not limited to microprocessor, special IC (ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedded device etc.
Those skilled in the art will be understood that above-mentioned subscriber equipment is only for giving an example, and other subscriber equipmenies existing or that may occur from now on, as applicable to the present invention, also should be included in protection domain of the present invention, and are contained in this at this with way of reference.
Particularly, in step S1, the application programming interfaces (API) that subscriber equipment 1 self provides by the mobile application based on framework, or the application programming interfaces that provide by third party devices such as browsers (API), or, by the general dynamic web page technique such as grade in this front and back end of NODEJS, obtain the request of access that user initiates by the mobile application based on framework of opening in its subscriber equipment/installing.
At this, the described mobile application based on framework comprises the mobile client-side program of applying for realizing as clouda based on Development Framework, as clouda WebApp client etc., it can be to be not only the specially designed mobile applications client of subscriber equipment specially, can also be according to the automatic real-time update of the variation of its corresponding servers' data, and the server end corresponding with it operates in browser, iOS, Android and search box as in Baidu's frame simultaneously.At this, the described mobile application based on framework can be realized by a series of set according to the computer data of particular order tissue and instruction.At this, described framework includes but not limited to as WebApp Development Framework clouda, backbones, emberjs, angularjs etc.At this, described mobile application realizes based on described Development of Framework, and it includes but not limited to move application (HybridApp) as web application (WebApp), mixed mode.At this, the request of access of initiating by the mobile application based on framework refers to the accessing operation of carrying out in described mobile application, its include but not limited to as click page link in described mobile application, as described in move in applying and carry out search/query operation etc.Those skilled in the art will be understood that said frame and mobile application are only for giving an example; other frameworks existing or that may occur from now on or mobile application as applicable to the present invention; also should be included in protection domain of the present invention, and be contained in this at this with way of reference.
For example, suppose to have opened in the subscriber equipment mobile phone of user A mobile application based on framework clouda as travel-WebApp, its clicked this move page link in application as park, Shanghaithis move application travel-WebApp in step S1, the application programming interfaces (API) that subscriber equipment 1 provides by movement application travel-WebApp self, just can get user A by this move application travel-WebApp initiate to page link park, Shanghaithe request of access of the page pointed.
Those skilled in the art will be understood that the above-mentioned mode by the mobile application initiation request of access based on framework is only for example; the mode that request of access is initiated in other existing or passing through of may occurring from now on mobile application based on framework is as applicable to the present invention; also should be included in protection domain of the present invention, and be contained in this at this with way of reference.
In step S2, subscriber equipment 1 framework described in initialization in described mobile application.Particularly, in step S2, first subscriber equipment 1 downloads the corresponding skeleton code file of described framework; Then, in step S2, subscriber equipment 1 is resolved the corresponding URL of described request of access, obtains the corresponding path of this URL part; Then, according to the corresponding path of this URL part, by router find the corresponding Template Information of described framework and/or with the corresponding target data acquisition methods of described request of access; And then, according to described target data acquisition methods, obtain described target data, to complete the initialization to described framework.At this, described Template Information refers to user interface (view) and business datum (data) or content is separated with the reusable assembly of rapid build web template, it is template engine, as handlebars, elf, nTenjin, doU, doT, jst_speed, artTemplate etc., it can be stored in the corresponding server of described intended application by text formatting file.Those skilled in the art will be understood that above-mentioned Template Information is only for giving an example, and other Template Informations existing or that may occur from now on, as applicable to the present invention, also should be included in protection domain of the present invention, and are contained in this at this with way of reference.For example, connect example,, in step S2, first subscriber equipment 1 downloads the corresponding skeleton code file of described framework clouda, as downloaded from the server of mobile application travel-WebApp; Then, in step S2, the user A that subscriber equipment 1 gets in step S1 according to it by this move application travel-WebApp initiate to page link park, Shanghaithe request of access of the page pointed, to the corresponding page link of this request of access park, Shanghaicorresponding URL, as http://localhost:8080/index.html/shanghaiparking/index/123/007 p=2 resolves, obtains i.e. " shanghaiparking/index " of the corresponding path of this URL part; Then, according to the corresponding path of this URL part, by router find the corresponding Template Information of described framework and/or with the corresponding target data acquisition methods of described request of access, as according to this URL, can search the controller that router obtains definition, as shown below:
Corresponding controller is
In step S2, subscriber equipment 1 can be according to the onload function in controller code, obtain data capture method getPark, according to onrender function in controller code, can obtain use template name ' TEMPLATE', and then, according to described target data acquisition methods getPark, obtain described target data as object-data, to complete the initialization to described framework.
The mode that those skilled in the art will be understood that framework described in above-mentioned initialization is only for for example; described in other initialization existing or that may occur from now on, the mode of framework is as applicable to the present invention; also should be included in protection domain of the present invention, and be contained in this at this with way of reference.
In step S3, subscriber equipment 1 obtains the play up page corresponding with described request of access according to the described framework after initialization.Particularly, in step S3, the corresponding Template Information of described framework that first subscriber equipment 1 can obtain in step S2 according to it is as ' TEMPLATE', and the corresponding target data of described request of access is as object-data, based on regular expression as:
var tplReg=new RegExp("("+item+"[^>]*>)[\\s\\S]*?(<\/block>)");
me.tplContent=
Me.tplContent.replace (tplReg, " $ 1 "+me.__templateBlocks[item] (data)+" $ 2 "), the target data object-data that it is obtained in step S2 insert described Template Information ' in the corresponding data block of TEMPLATE', each data block is played up, as adopt the tense onrender () of controller in clouda to play up, played up accordingly the page as render-web.
In step S4, subscriber equipment 1, by the communication mode of the agreements such as http, https, the page is provided described in providing, as is offered respective user, browses for user.
Between each step of subscriber equipment 1, be constant work.Particularly, in step S1, subscriber equipment 1 continues to initiate request of access by the mobile application based on framework; In step S2, subscriber equipment 1 continues in described mobile application framework described in initialization; In step S3, subscriber equipment 1 continues to obtain the play up page corresponding with described request of access according to the described framework after initialization; In step S4, described in continuing to provide, subscriber equipment 1 plays up the page.At this, those skilled in the art will be understood that " continuing " refer to initiation, the framework of the request of constantly conducting interviews respectively between each step of subscriber equipment 1 initialization, play up the page generation with provide, until subscriber equipment 1 stops initiating request of access in a long time.
Preferably, in step S3, subscriber equipment 1 also can be played up the page based on the corresponding history of described request of access, described in obtaining, plays up the page, as using as described in play up in page data storehouse, preserve with as described in the corresponding history of request of access play up the page as described in play up the page.For example, suppose once to determine by the request of access to park, the page link Shanghai page pointed of the mobile application travel-WebApp initiation based on framework clouda that it was history-render-web that corresponding history is played up the page according to user before subscriber equipment 1, when subscriber equipment 1 in step S1, subscriber equipment 1 get user A by this move application travel-WebApp initiate to page link park, Shanghaiwhen the request of access of the page pointed, in step S3, subscriber equipment 1 can be played up page history-render-web as the described page of playing up using corresponding this request of access history.At this, described in play up in page data banked cache and described subscriber equipment 1.Preferably, when described history is when to play up the page be multiple, in step S3, what subscriber equipment 1 can be played up multiple described history up-to-date buffer memory in the page plays up the page as the described page of playing up.
Fig. 4 illustrates that a kind of subscriber equipment and the network equipment in accordance with a preferred embodiment of the present invention coordinate the method flow diagram of playing up the page of realizing for mobile application is provided.
Wherein, the method comprising the steps of S1 ', step S2 ', step S3 ', step S4 ', step S5 ' and step S6 '.Particularly, in step S1 ', the movement application of passing through based on framework of subscriber equipment 1 is initiated request of access and described request of access is sent to the corresponding network equipment 2; Correspondingly, in step S5 ', the request of access that the network equipment 2 is initiated according to the mobile application based on framework is determined the corresponding Template Information of described framework; In step S6 ', the network equipment 2 generates the play up page corresponding with described request of access based on described Template Information; In step S3 ', the network equipment 2 will described in play up the page and provide to the corresponding subscriber equipment 1 of described mobile application; Correspondingly, in step S2 ', subscriber equipment 1 framework described in initialization in described mobile application; In step S3 ', subscriber equipment 1 receive that the described network equipment provides described in play up the page; In step S4 ', described in providing, subscriber equipment 1 plays up the page.At this, step S2 ' is identical or basic identical with the content of step S2 in Fig. 3 embodiment and step S4 respectively with step S4 ', for simplicity's sake, thus do not repeat them here, and the mode of quoting comprises therewith.
At this, the described network equipment 2 comprises the mobile request of access of applying based on framework sending for receive subscriber equipment from network, and play up the page of this request correspondence in response to this request, and the page of having played up is offered to the program of certain type computer of subscriber equipment, the described network equipment includes but not limited to that it can be by realizations such as network host, single network server, multiple webserver collection or the set of computers based on cloud computing as clouda WebApp server etc.At this, cloud is made up of a large amount of main frames based on cloud computing (Cloud Computing) or the webserver, and wherein, cloud computing is the one of Distributed Calculation, the super virtual machine being made up of the loosely-coupled computing machine collection of a group.
At this, the described network equipment 2 comprise a kind of can be according to the instruction of prior setting or storage, automatically carry out the electronic equipment of numerical evaluation and information processing, its hardware includes but not limited to microprocessor, special IC (ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedded device etc.
Those skilled in the art will be understood that the above-mentioned network equipment 2 is only for giving an example, and other network equipments existing or that may occur from now on, as applicable to the present invention, also should be included in protection domain of the present invention, and are contained in this at this with way of reference.
Particularly, in step S1 ', first subscriber equipment 1 initiates request of access by the mobile application based on framework; Then, by the communication mode of the agreement such as http, https, described request of access is sent to the corresponding network equipment 2.At this, in step S1 ', subscriber equipment 1 is identical or basic identical with the mode that subscriber equipment 1 in Fig. 3 embodiment is initiated request of access by the mobile application based on framework in step S1, for simplicity's sake, therefore do not repeat them here, and comprise therewith in the mode of application.
Correspondingly, in step S5 ', the network equipment 2, first by the communication mode of the agreements such as http, https, receives the request of access that the mobile application based on framework is initiated; Then, then according to described request of access determine the corresponding Template Information of described framework.At this, Template Information determines that the mode of described Template Information includes but not limited to following at least any one:
1), according to described request of access, from corresponding templates file, read corresponding Template Information.For example, suppose to have opened in the subscriber equipment mobile phone of user A mobile application based on framework clouda as travel-WebApp, its clicked this move page link in application as park, Shanghai,and in step S5 ', the network equipment 2 receive user A by this move application travel-WebApp initiate to page link park, Shanghaithe request of access of the page pointed, in step S5 ', the network equipment 2 can be according to this request of access, from corresponding templates file as read corresponding Template Information the views file of clouda catalogue, as adopted handlebar assembly as template engine.
2) request of access of first initiating according to the mobile application based on framework is determined described framework; Then, determine the corresponding Template Information of described framework according to described framework.For example, connect example, suppose in step S5 ', the network equipment 2 receives the request of access to park, the page link Shanghai page pointed that user A initiates by move application travel-WebApp based on framework clouda, in step S5 ', the request of access that first network equipment 2 can initiate according to the mobile application based on framework is determined described framework, as according to moving and apply the NODEJS script that travel-WebApp introduces based on framework clouda, determines described framework; Then, determine the corresponding Template Information of described framework according to described framework, as the corresponding URL of this request of access is resolved, obtain the corresponding path of this URL part; Then,, according to the corresponding path of this URL part, find the corresponding Template Information of described framework by router.
Those skilled in the art will be understood that the above-mentioned mode of determining the corresponding Template Information of described framework is only for giving an example; the mode of other existing or corresponding Template Informations of definite described framework that may occur is from now on as applicable to the present invention; also should be included in protection domain of the present invention, and be contained in this at this with way of reference.
In step S6 ', the network equipment 2 generates the play up page corresponding with described request of access based on described Template Information.Particularly, in step S6 ', the network equipment 2 can, first based on described request of access, obtain the target data corresponding with described request of access; Then, based on regular expression, described target data is inserted in the corresponding data block of described Template Information, each data block is played up, as adopt the tense onrender () of controller in clouda to play up, played up accordingly the page.For example, connect example, in step S6 ', the user A that the network equipment 2 receives in step S5 ' according to it by this move application travel-WebApp initiate to page link park, Shanghaithe request of access of the page pointed, to the corresponding page link of this request of access park, Shanghaicorresponding URL, as http://localhost:8080/index.html/shanghaiparking/index/123/007 p=2 resolves, obtains i.e. " shanghaiparking/index " of the corresponding path of this URL part; Then, according to the corresponding path of this URL part, find the target data acquisition methods corresponding with described request of access by router, as according to this URL, can obtain corresponding router and be:
Suppose in step S6 ', the network equipment 2 is according to this router, find the target data acquisition methods corresponding with described request of access, the Publish/Subscribe of target data as described in obtaining as defined in the action in this router, in step S6 ', the network equipment 2 can, according to described target data acquisition methods, obtain described target data as object-data; Then, based on regular expression, described target data object-data is inserted to it in step S5 ' in determined described Template Information data block as corresponding in handlebar assembly, and each data block is played up, as adopt the tense onrender () of controller in clouda to play up, played up accordingly the page as render-web.
In step S3 ', the network equipment 2 is by the communication mode of the agreements such as http, https, will described in play up the page and provide to the corresponding subscriber equipment 1 of described mobile application.
Correspondingly, subscriber equipment 1 is by the communication mode of the agreements such as http, https, plays up the page described in receiving that the described network equipment provides.
(with reference to figure 4) in a preferred embodiment, step S6 ' comprises step S61 ' and step S62 '.Particularly, in step S61 ', the network equipment 2 obtains the target data corresponding with described request of access; In step S62 ', the network equipment 2 generates the play up page corresponding with described request of access based on described Template Information and described target data.
Particularly, in step S61 ', the network equipment 2 obtains the target data corresponding with described request of access.At this, in step S61 ', the network equipment 2 obtains the mode of described target data and aforementioned in step S6 ', the mode that the network equipment 2 obtains described target data is identical or basic identical, for simplicity's sake, thus do not repeat them here, and comprise by reference therewith.
In step S61 ', the network equipment 2 generates the play up page corresponding with described request of access based on described Template Information and described target data.At this, in step S62 ', the mode of playing up the page described in the network equipment 2 generates includes but not limited to following at least any one:
1) generate the template character string corresponding with described Template Information based on described Template Information; Generate the play up page corresponding with described request of access by described target data being inserted to described template character string.At this, described template character string has been indicated the corresponding data block of described Template Information.For example, suppose in step S5 ', the determined described Template Information of the network equipment 2 is handlebar assembly, this Template Information is stored in the views file of clouda catalogue as txt form with text formatting, in step S62 ', the network equipment 2 can adopt character string read method, obtain the template character string corresponding with described Template Information, as obtain the corresponding data block of Template Information handlebar assembly as handlebar-data-block1, handlebar-data-block2, handlebar-data-block3, etc.; Then, in step S61 ', the target data corresponding with described request of access that the network equipment 2 can obtain it in step S61 ' insert template character string handlebar-data-block1, handlebar-data-block2, handlebar-data-block3 generate with described request of access corresponding play up the page.
2) play up the page based on the corresponding history of described Template Information, and described target data, the play up page corresponding with described request of access generated.For example, suppose that the determined described Template Information of Template Information determining device 21 ' is handlebar assembly, and the corresponding history of this Template Information to play up the page be history-render-web, in step S62 ', the described target data of content of pages information that the network equipment 2 can be played up history in page history-render-web is replaced, thereby plays up the page described in generating.
Those skilled in the art will be understood that the mode of playing up the page described in above-mentioned generation is only for for example; the mode of playing up the page described in other generations existing or that may occur is from now on as applicable to the present invention; also should be included in protection domain of the present invention, and be contained in this at this with way of reference.
Preferably, in step S5 ', the request of access that the network equipment 2 is initiated according to the mobile application based on framework is determined the corresponding Template Information of described framework and data acquisition information, wherein, in step S61 ', the network equipment 2, according to described request of access, in conjunction with described data acquisition information, obtains the target data corresponding with described request of access.
Particularly, in step S5 ', the request of access that the network equipment 2 is initiated according to the mobile application based on framework is determined the corresponding Template Information of described framework and data acquisition information.At this, described data pattern information represents to obtain the method for described target data, for example, for clouda, can obtain described target data by Publish/Subscribe.Particularly, in step S5 ', the network equipment 2 can be resolved the corresponding URL of described request of access, obtains the corresponding path of this URL part; Then,, according to the corresponding path of this URL part, find the corresponding Template Information of described framework and data acquisition information by router.
For example, suppose in step S1 ', the user A that the network equipment 2 gets by this move application travel-WebApp initiate to page link park, Shanghaithe request of access of the page pointed,, in step S5 ', the network equipment 2 can be to the corresponding page link of this request of access park, Shanghaicorresponding URL, as http://localhost:8080/index.html/shanghaiparking/index/123/007 p=2 resolves, obtains i.e. " shanghaiparking/index " of the corresponding path of this URL part; Then, according to the corresponding path of this URL part, find the corresponding Template Information of described framework and data acquisition information by router, as according to this URL, can obtain corresponding router and be:
Then, according to the action in this router, find the corresponding Template Information of described framework, with data acquisition information, as adopted handlebar assembly as template engine, obtain described target data by Publish/Subscribe.
Then,, in step S61 ', the network equipment 2, according to described request of access, in conjunction with described data acquisition information, obtains the target data corresponding with described request of access.For example, connect example, in step S61 ', the network equipment 2, according to described request of access, in conjunction with described data acquisition information, obtains the target data corresponding with described request of access, obtains described target data by Publish/Subscribe.
It will be understood by those skilled in the art that in specific embodiment, the present invention can be only carries out obtaining of Template Information and target data and plays up accordingly described in obtaining and play up the page at the network equipment 2 ends, then will play up the page and be sent to subscriber equipment 1 end.Preferably, in the present invention, the head screen of mobile application is only played up at the network equipment 1 end, and inferior screen and the later mutual and page switch, do not play up at the network equipment 2 ends, but subscriber equipment 1 end directly obtains Template Information and target data is assembled from the network equipment 1 end, described in obtaining, plays up the page.
Preferably, in the present invention, subscriber equipment 1 end can obtain Template Information and target data with the network equipment 2 ends simultaneously, is convenient to Data Update so that obtain subscriber equipment 1, and subscriber equipment 1 end can embody the real-time that the network equipment 2 end datas change.
It should be noted that the present invention can be implemented in the assembly of software and/or software and hardware, for example, can adopt special IC (ASIC), general object computing machine or any other similar hardware device to realize.In one embodiment, software program of the present invention can carry out to realize step mentioned above or function by processor.Similarly, software program of the present invention (comprising relevant data structure) can be stored in computer readable recording medium storing program for performing, for example, and RAM storer, magnetic or CD-ROM driver or flexible plastic disc and similar devices.In addition, steps more of the present invention or function can adopt hardware to realize, for example, thereby as coordinate the circuit of carrying out each step or function with processor.
In addition, a part of the present invention can be applied to computer program, and for example computer program instructions, in the time that it is carried out by computing machine, by the operation of this computing machine, can call or provide the method according to this invention and/or technical scheme.And call the programmed instruction of method of the present invention, may be stored in fixing or movably in recording medium, and/or be transmitted by the data stream in broadcast or other signal bearing medias, and/or be stored in according in the working storage of the computer equipment of described programmed instruction operation.At this, comprise according to one embodiment of present invention a device, this device comprises storer for storing computer program instructions and the processor for execution of program instructions, wherein, in the time that this computer program instructions is carried out by this processor, trigger this device and move based on aforementioned according to the method for multiple embodiment of the present invention and/or technical scheme.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned example embodiment, and in the situation that not deviating from spirit of the present invention or essential characteristic, can realize the present invention with other concrete form.Therefore, no matter from which point, all should regard embodiment as exemplary, and be nonrestrictive, scope of the present invention is limited by claims instead of above-mentioned explanation, is therefore intended to all changes that drop in the implication and the scope that are equal to important document of claim to be included in the present invention.Any Reference numeral in claim should be considered as limiting related claim.In addition, obviously other unit or step do not got rid of in " comprising " word, and odd number is not got rid of plural number.Multiple unit of stating in device claim or device also can be realized by software or hardware by a unit or device.The first, the second word such as grade is used for representing title, and does not represent any specific order.

Claims (19)

1. move for providing a method of playing up the page of applying at network equipment end, wherein, the method comprises:
The request of access of initiating according to the mobile application based on framework is determined the corresponding Template Information of described framework;
Generate the play up page corresponding with described request of access based on described Template Information;
Described in inciting somebody to action, playing up the page provides to the corresponding subscriber equipment of described mobile application.
2. method according to claim 1, wherein, generates the play up page corresponding with described request of access based on described Template Information and comprises:
Obtain the target data corresponding with described request of access;
Generate the play up page corresponding with described request of access based on described Template Information and described target data.
3. method according to claim 2, wherein, the request of access of initiating according to the mobile application based on framework determines that the corresponding Template Information of described framework comprises:
The request of access of initiating according to the mobile application based on framework is determined the corresponding Template Information of described framework and data acquisition information;
Wherein, obtaining the target data corresponding with described request of access comprises:
According to described request of access, in conjunction with described data acquisition information, obtain the target data corresponding with described request of access.
4. wherein, comprise based on described Template Information and the described target data generation page of playing up corresponding with described request of access according to the method in claim 2 or 3:
Generate the template character string corresponding with described Template Information based on described Template Information;
Generate the play up page corresponding with described request of access by described target data being inserted to described template character string.
5. according to the method described in any one in claim 2 to 4, wherein, comprise based on described Template Information and the described target data generation page of playing up corresponding with described request of access:
Play up the page based on the corresponding history of described Template Information, and described target data, the play up page corresponding with described request of access generated.
6. according to the method described in any one in claim 1 to 5, wherein, the request of access of initiating according to the mobile application based on framework determines that the corresponding Template Information of described framework comprises:
The request of access of initiating according to the mobile application based on framework is determined described framework;
Determine the corresponding Template Information of described framework according to described framework.
7. move for providing a method of playing up the page of applying at subscriber equipment end, wherein, the method comprises:
Initiate request of access by the mobile application based on framework;
Framework described in initialization in described mobile application;
Obtain the play up page corresponding with described request of access according to the described framework after initialization;
The page is provided described in providing.
8. method according to claim 7, wherein, initiate request of access by the mobile application based on framework and comprise:
Initiate request of access and described request of access is sent to the corresponding network equipment by the mobile application based on framework;
Wherein, obtaining the play up page corresponding with described request of access according to the described framework after initialization comprises:
Described in receiving that the described network equipment provides, play up the page.
9. method according to claim 7, wherein, obtains the play up page corresponding with described request of access according to the described framework after initialization and comprises:
Play up the page based on the corresponding history of described request of access, described in obtaining, play up the page.
10. for a network equipment of playing up the page for mobile application is provided, wherein, this network equipment comprises:
Determine the device of the corresponding Template Information of described framework for the request of access of initiating according to the mobile application based on framework;
For generating the device of playing up the page corresponding with described request of access based on described Template Information;
For the described page of playing up is provided to the device of the corresponding subscriber equipment of described mobile application.
11. network equipments according to claim 10, wherein, generate the device of playing up the page corresponding with described request of access based on described Template Information and comprise:
For obtaining the unit of the target data corresponding with described request of access;
For generating the unit of playing up the page corresponding with described request of access based on described Template Information and described target data.
12. network equipments according to claim 11, wherein, the device that the request of access of initiating according to the mobile application based on framework is determined the corresponding Template Information of described framework for:
The request of access of initiating according to the mobile application based on framework is determined the corresponding Template Information of described framework and data acquisition information;
Wherein, the unit that obtains the target data corresponding with described request of access for:
According to described request of access, in conjunction with described data acquisition information, obtain the target data corresponding with described request of access.
13. according to the network equipment described in claim 11 or 12, wherein, based on described Template Information and described target data generate the unit of playing up the page corresponding with described request of access for:
Generate the template character string corresponding with described Template Information based on described Template Information;
Generate the play up page corresponding with described request of access by described target data being inserted to described template character string.
14. according to claim 11 to the network equipment described in any one in 13, wherein, based on described Template Information and described target data generate the unit of playing up the page corresponding with described request of access for:
Play up the page based on the corresponding history of described Template Information, and described target data, the play up page corresponding with described request of access generated.
15. according to claim 10 to the network equipment described in any one in 14, wherein, the device that the request of access of initiating according to the mobile application based on framework is determined the corresponding Template Information of described framework for:
The request of access of initiating according to the mobile application based on framework is determined described framework;
Determine the corresponding Template Information of described framework according to described framework.
16. 1 kinds are moved for providing the subscriber equipment of playing up the page of applying, and wherein, this subscriber equipment comprises:
For the device of initiating request of access by the mobile application based on framework;
For the device at framework described in described mobile application initialization;
For obtaining the device of playing up the page corresponding with described request of access according to the described framework after initialization;
For the device of the page is provided described in providing.
17. subscriber equipmenies according to claim 16, wherein, the device of initiating request of access by the mobile application based on framework is used for:
Initiate request of access and described request of access is sent to the corresponding network equipment by the mobile application based on framework;
Wherein, according to the described framework after initialization obtain the device of playing up the page corresponding with described request of access for:
Described in receiving that the described network equipment provides, play up the page.
18. subscriber equipmenies according to claim 16, wherein, according to the described framework after initialization obtain the device of playing up the page corresponding with described request of access for:
Play up the page based on the corresponding history of described request of access, described in obtaining, play up the page.
19. 1 kinds for providing the system of playing up the page of mobile application, wherein, this system comprise according to claim 10 to described in any one in 15 for the network equipment of playing up the page of mobile application is provided, and according to claim 16 to described in any one in 18 for the subscriber equipment of playing up the page of mobile application is provided.
CN201410151853.5A 2014-04-15 2014-04-15 Method and equipment for supplying rendered page in mobile application Pending CN103970534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410151853.5A CN103970534A (en) 2014-04-15 2014-04-15 Method and equipment for supplying rendered page in mobile application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410151853.5A CN103970534A (en) 2014-04-15 2014-04-15 Method and equipment for supplying rendered page in mobile application

Publications (1)

Publication Number Publication Date
CN103970534A true CN103970534A (en) 2014-08-06

Family

ID=51240074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410151853.5A Pending CN103970534A (en) 2014-04-15 2014-04-15 Method and equipment for supplying rendered page in mobile application

Country Status (1)

Country Link
CN (1) CN103970534A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699501A (en) * 2015-01-15 2015-06-10 腾讯科技(深圳)有限公司 Method and device for running application program
CN104965907A (en) * 2015-06-30 2015-10-07 小米科技有限责任公司 Structured object generation method and apparatus
CN105404622A (en) * 2014-08-20 2016-03-16 阿里巴巴集团控股有限公司 Client page display method, apparatus and system
CN105787030A (en) * 2016-02-25 2016-07-20 努比亚技术有限公司 Mobile terminal and data processing method thereof
CN105912328A (en) * 2016-04-06 2016-08-31 北京三快在线科技有限公司 Method and device for displaying web system page, and web system
CN105989046A (en) * 2015-02-03 2016-10-05 中国人寿保险股份有限公司 Website display method and system and user terminal
CN106021501A (en) * 2016-05-20 2016-10-12 天脉聚源(北京)传媒科技有限公司 Data storing method and device
CN106445507A (en) * 2016-09-08 2017-02-22 乐视控股(北京)有限公司 Interface switching method, terminal and server
CN106708479A (en) * 2015-07-27 2017-05-24 恒生电子股份有限公司 Page rendering method and device
CN107239291A (en) * 2017-06-13 2017-10-10 浪潮软件股份有限公司 A kind of method of templated query configuration in Mobile solution
CN107391664A (en) * 2017-07-19 2017-11-24 广州华多网络科技有限公司 Page data processing method and system based on WEB
CN107562427A (en) * 2017-09-07 2018-01-09 南威软件股份有限公司 A kind of Page Template engine renders method based on NodeJS
WO2018077041A1 (en) * 2016-10-25 2018-05-03 腾讯科技(深圳)有限公司 Method and apparatus for running application
CN109885355A (en) * 2019-02-21 2019-06-14 珠海市魅族科技有限公司 A kind of application starting method and relevant apparatus
CN109977333A (en) * 2019-03-22 2019-07-05 北京三快在线科技有限公司 Webpage display process, device, computer equipment and storage medium
CN110442325A (en) * 2019-07-24 2019-11-12 上海易点时空网络有限公司 Framework model and page processing method based on nodejs rendering pond
CN110442286A (en) * 2019-07-29 2019-11-12 北京奇艺世纪科技有限公司 A kind of page display method, device and electronic equipment
WO2020048218A1 (en) * 2018-09-07 2020-03-12 Oppo广东移动通信有限公司 Application page presentation method and apparatus, storage medium, and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193955A (en) * 2010-03-16 2011-09-21 深圳市金蝶中间件有限公司 Method and device for generating Facelets page
CN102314486A (en) * 2011-08-04 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for browsing page
CN102325188A (en) * 2011-09-16 2012-01-18 北京新媒传信科技有限公司 Method for realizing webpage browsing on a mobile terminal and system thereof
CN102902805A (en) * 2012-10-15 2013-01-30 东软集团股份有限公司 Page access method and device
CN103051684A (en) * 2012-12-07 2013-04-17 百度在线网络技术(北京)有限公司 Method, system and device for converting website into Web App for displaying
CN103164193A (en) * 2011-12-12 2013-06-19 阿里巴巴集团控股有限公司 Method and device for template rendering
CN103500199A (en) * 2013-09-24 2014-01-08 北京大学 Webpage rendering accelerating method and system based on pre-loaded Cloud template

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193955A (en) * 2010-03-16 2011-09-21 深圳市金蝶中间件有限公司 Method and device for generating Facelets page
CN102314486A (en) * 2011-08-04 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for browsing page
CN102325188A (en) * 2011-09-16 2012-01-18 北京新媒传信科技有限公司 Method for realizing webpage browsing on a mobile terminal and system thereof
CN103164193A (en) * 2011-12-12 2013-06-19 阿里巴巴集团控股有限公司 Method and device for template rendering
CN102902805A (en) * 2012-10-15 2013-01-30 东软集团股份有限公司 Page access method and device
CN103051684A (en) * 2012-12-07 2013-04-17 百度在线网络技术(北京)有限公司 Method, system and device for converting website into Web App for displaying
CN103500199A (en) * 2013-09-24 2014-01-08 北京大学 Webpage rendering accelerating method and system based on pre-loaded Cloud template

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
MILKJOE: "《Clouda框架开发留言板实例》", 《HTTPS://BLOG.51CTO.COM/JIAMING/1354376》 *
POCKRY: "《Node.js web框架Clouda初接触》", 《HTTPS://BLOG.51CTO.COM/POCKRY/1354217?SOURCE=DRA》 *
SIMMINONGARCIA: "《Clouda框架开发留言板实例》", 《HTTPS://BLOG.CSDN.NET/WEIXIN_34080951/ARTICLE/DETAILS/92456131》 *
佚名: "《Clouda API使用手册之Touch Publish Subscribe》", 《HTTPS://MOBILE.51CTO.COM/NEWS-414811.HTM》 *
佚名: "《CLouda相关结构详解》", 《HTTPS://MOBILE.51CTO.COM/NEWS-414587.HTM》 *

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404622A (en) * 2014-08-20 2016-03-16 阿里巴巴集团控股有限公司 Client page display method, apparatus and system
CN105404622B (en) * 2014-08-20 2019-10-18 阿里巴巴集团控股有限公司 A kind of customer terminal webpage display methods, apparatus and system
CN104699501B (en) * 2015-01-15 2018-02-16 腾讯科技(深圳)有限公司 A kind of method and device for running application program
CN104699501A (en) * 2015-01-15 2015-06-10 腾讯科技(深圳)有限公司 Method and device for running application program
CN105989046A (en) * 2015-02-03 2016-10-05 中国人寿保险股份有限公司 Website display method and system and user terminal
CN104965907A (en) * 2015-06-30 2015-10-07 小米科技有限责任公司 Structured object generation method and apparatus
CN106708479A (en) * 2015-07-27 2017-05-24 恒生电子股份有限公司 Page rendering method and device
CN106708479B (en) * 2015-07-27 2019-08-23 恒生电子股份有限公司 A kind of page rendering method and device
CN105787030A (en) * 2016-02-25 2016-07-20 努比亚技术有限公司 Mobile terminal and data processing method thereof
CN105787030B (en) * 2016-02-25 2019-10-29 努比亚技术有限公司 A kind of mobile terminal and its method for handling data
CN105912328B (en) * 2016-04-06 2018-11-06 北京三快在线科技有限公司 Display methods, device and the web system of the web system page
CN105912328A (en) * 2016-04-06 2016-08-31 北京三快在线科技有限公司 Method and device for displaying web system page, and web system
CN106021501A (en) * 2016-05-20 2016-10-12 天脉聚源(北京)传媒科技有限公司 Data storing method and device
CN106445507A (en) * 2016-09-08 2017-02-22 乐视控股(北京)有限公司 Interface switching method, terminal and server
US10824449B2 (en) 2016-10-25 2020-11-03 Tencent Technology (Shenzhen) Company Limited Application running method and device
WO2018077041A1 (en) * 2016-10-25 2018-05-03 腾讯科技(深圳)有限公司 Method and apparatus for running application
CN107239291A (en) * 2017-06-13 2017-10-10 浪潮软件股份有限公司 A kind of method of templated query configuration in Mobile solution
CN107391664A (en) * 2017-07-19 2017-11-24 广州华多网络科技有限公司 Page data processing method and system based on WEB
CN107562427A (en) * 2017-09-07 2018-01-09 南威软件股份有限公司 A kind of Page Template engine renders method based on NodeJS
WO2020048218A1 (en) * 2018-09-07 2020-03-12 Oppo广东移动通信有限公司 Application page presentation method and apparatus, storage medium, and electronic device
CN109885355A (en) * 2019-02-21 2019-06-14 珠海市魅族科技有限公司 A kind of application starting method and relevant apparatus
CN109977333A (en) * 2019-03-22 2019-07-05 北京三快在线科技有限公司 Webpage display process, device, computer equipment and storage medium
CN109977333B (en) * 2019-03-22 2020-06-09 北京三快在线科技有限公司 Webpage display method and device, computer equipment and storage medium
CN110442325A (en) * 2019-07-24 2019-11-12 上海易点时空网络有限公司 Framework model and page processing method based on nodejs rendering pond
CN110442286A (en) * 2019-07-29 2019-11-12 北京奇艺世纪科技有限公司 A kind of page display method, device and electronic equipment

Similar Documents

Publication Publication Date Title
CN103970534A (en) Method and equipment for supplying rendered page in mobile application
US11328114B2 (en) Batch-optimized render and fetch architecture
CN102306174B (en) Method and equipment for interacting with user based on web page elements
CN105260420A (en) Method and device for providing target page in mobile application
EP3161610B1 (en) Optimized browser rendering process
CN103597469A (en) Live browser tooling in an integrated development environment
CN104391868A (en) Staticizing device and method for dynamic page
CN103051706A (en) Dynamic webpage request processing system and method for dynamic website
CN104809223A (en) Method and device for supplying application content search result in application
CN105589956A (en) User portraying method and device
CN104063431A (en) Method and equipment for processing static resources
WO2013085595A1 (en) Selective image loading in mobile browsers
CN105302461A (en) Method and equipment for providing target page in mobile application
CN104281574A (en) Information recommending method, device and system
CN104572084A (en) Method and device for user interface generating and data issuing in card business
CN103744575A (en) Method and equipment for providing input auxiliary areas of input applications
CN101963992A (en) Method and browser for increasing webpage display speed
CN102298617A (en) Method for obtaining target page and equipment
CN104423991A (en) Webpage loading and webpage data providing method and device of mobile terminal
CN103955495A (en) Downloading method and device for page sub-resource
CN103577447A (en) Method and equipment used for determining page type information of target pages
WO2015003664A1 (en) Method, device, server, and client device for download processing
CN103618773A (en) Display method, device and system for thermodynamic diagrams
CN102262660A (en) Method and device implemented by computer and used for obtaining search result
US11250080B2 (en) Method, apparatus, storage medium and electronic device for establishing question and answer system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination