CN107451270B - Page display method, electronic equipment and computer storage media - Google Patents

Page display method, electronic equipment and computer storage media Download PDF

Info

Publication number
CN107451270B
CN107451270B CN201710655584.XA CN201710655584A CN107451270B CN 107451270 B CN107451270 B CN 107451270B CN 201710655584 A CN201710655584 A CN 201710655584A CN 107451270 B CN107451270 B CN 107451270B
Authority
CN
China
Prior art keywords
display module
page display
webpage
content
local page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710655584.XA
Other languages
Chinese (zh)
Other versions
CN107451270A (en
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.)
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201710655584.XA priority Critical patent/CN107451270B/en
Publication of CN107451270A publication Critical patent/CN107451270A/en
Priority to PCT/CN2018/081151 priority patent/WO2019024520A1/en
Application granted granted Critical
Publication of CN107451270B publication Critical patent/CN107451270B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • 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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

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 invention discloses a kind of page display method, electronic equipment and computer storage media, this method includes:The uniform resource locator for obtaining Webpage to be presented determines corresponding local page display module according to the uniform resource locator;The parameter information for including in the uniform resource locator is supplied to the local page display module, so that the local page display module shows the localization page corresponding with the Webpage according to the parameter information.It can be seen that, in mode provided by the invention, Webpage directly can be converted to the corresponding localization page according to the parameter information for including in the uniform resource locator of Webpage to be presented and shown by local page display module, to enable Webpage to show user in the form of localizing the page, display effect is optimized.

Description

Page display method, electronic equipment and computer storage media
Technical field
The present invention relates to computer realms, and in particular to a kind of page display method, electronic equipment and computer storage are situated between Matter.
Background technology
With becoming increasingly abundant for Internet resources, more and more contents can be shown by carrier of Webpage.Net The development cost of the network page is low, can flexibly use various existing Web designs and development technique, and can run on any peace On terminal device equipped with web browser.But since Webpage is unable to fully carry using terminal hardware during display The novel capabilities of confession, the influence of all kinds of factors such as network speed, switch speed, causes the display effect of Webpage obviously inferior in addition In the localization page.Conversely, the localization page can make full use of the various functions of terminal hardware offer during display, also The limitation of webpage frame can be removed, display effect is substantially better than Webpage.
But in the implementation of the present invention, it is as follows to have found that aforesaid way in the prior art at least exists by inventor Problem:In the prior art, Webpage can only be shown with web form, can not convert Webpage to localization page Face is shown.
Invention content
In view of the above problems, it is proposed that the present invention overcoming the above problem in order to provide one kind or solves at least partly State page display method, electronic equipment and the computer storage media of problem.
According to an aspect of the invention, there is provided a kind of page display method, including:Obtain Webpage to be presented Uniform resource locator, corresponding local page display module is determined according to the uniform resource locator;By the unification The parameter information for including in Resource Locator is supplied to the local page display module, for the local page display module The localization page corresponding with the Webpage is shown according to the parameter information.
According to another aspect of the present invention, a kind of electronic equipment is provided, including:Processor, memory, communication interface and Communication bus, processor, memory and communication interface complete mutual communication by communication bus;Memory is for storing extremely A few executable instruction, executable instruction make processor execute following operation:Obtain the unified resource of Webpage to be presented Finger URL determines corresponding local page display module according to the uniform resource locator;By the uniform resource locator In include parameter information be supplied to the local page display module, so that the local page display module is according to the ginseng Number information shows the localization page corresponding with the Webpage.
According to another aspect of the invention, a kind of computer storage media is provided, at least one is stored in storage medium Executable instruction, executable instruction make processor execute following operation:Obtain the unified resource positioning of Webpage to be presented Symbol, corresponding local page display module is determined according to the uniform resource locator;It will be wrapped in the uniform resource locator The parameter information contained is supplied to the local page display module, so that the local page display module is believed according to the parameter Breath shows the localization page corresponding with the Webpage.
In page display method provided by the invention, electronic equipment and computer storage media, pre-sets and be used for The local page display module of the displaying localization page corresponding with Webpage.Correspondingly, first when showing Webpage First, corresponding local page display module is determined according to the uniform resource locator of Webpage to be presented;Then, obtaining should The parameter information is supplied to local page display module by the parameter information for including in uniform resource locator;Finally, the local Page presentation module obtains the particular content of Webpage to be presented according to the parameter information, and according to preset displaying logic The displaying localization page corresponding with the Webpage.It can be seen that in mode provided by the invention, local page displaying Module can directly turn Webpage according to the parameter information for including in the uniform resource locator of Webpage to be presented It is changed to the corresponding localization page and shows, it is excellent to enable Webpage to show user in the form of localizing the page Display effect is changed.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart for the page display method that the embodiment of the present invention one provides;
Fig. 2 shows the flow charts of page display method provided by Embodiment 2 of the present invention;
Fig. 3 shows the structural schematic diagram of according to embodiments of the present invention four a kind of electronic equipment.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Embodiment one
Fig. 1 shows the flow chart for the page display method that the embodiment of the present invention one provides.As shown in Figure 1, this method packet Include following steps:
Step S110:The uniform resource locator for obtaining Webpage to be presented, it is true according to the uniform resource locator Fixed corresponding local page display module.
Wherein, uniform resource locator is also URL (Uniform Resoure Locator), is that standard provides on internet The address in source.Each file on internet has unique URL, and position and the browsing of file are can determine according to URL Device is directed to the processing mode of this document.In mode provided by the invention, is determined and be somebody's turn to do according to the URL of Webpage to be presented The corresponding local page display module of Webpage.Since URL can reflect the storage location information and/or the page of Webpage Therefore type information can quickly determine local page display module corresponding with the Webpage according to URL.It is specific to determine Mode can be flexibly arranged by those skilled in the art.
For example, if the present embodiment is only used for carrying out for the Webpage of single storage location and/or single page type Processing, then can only be arranged a local page display module, correspondingly, if determining the net according to uniform resource locator The network page is the page that can be handled by the local page display module, then continues to execute subsequent step;If provided according to unified Source finger URL determines that the Webpage is the page that cannot be handled by the local page display module, then directly according to web shapes Formula shows the Webpage.For example, e-book application in, pre-set one for for e-book type network The page is localized the local page display module of displaying, correspondingly, if determining the network according to uniform resource locator The page is the page of e-book type, then continues to execute subsequent step;If conversely, determining the net according to uniform resource locator The network page is not the page of e-book type, then directly shows the Webpage according to traditional web modes.Wherein, in order to just In showing Webpage according to traditional web modes, a Webpage display module can also be pre-set, correspondingly, when When to determine the Webpage not according to uniform resource locator be the page of e-book type, the Webpage exhibition is directly invoked Show that module is shown.
For another example, if the present embodiment is used for at the Webpage of multiple storage locations and/or a variety of page types Reason, then can be respectively set multiple local page display modules.Specifically, both can according to the storage location of Webpage (or Network originating) each local page display module is divided, it can also divide each native page according to the type of Webpage Face display module, or even according to other by the dividing mode that URL is determined mould can also can be shown to divide each local page Block.For example, in e-book application, two local page display modules and a Webpage displaying mould are pre-set Block, wherein the Webpage that a local page display module is used to be directed to e-book type is localized displaying, another Local page display module is used to be localized displaying for the Webpage of type of user information.For being both not belonging to electronics Book type, the Webpage for being also not belonging to type of user information, then by preset Webpage display module with traditional web Mode is shown.Correspondingly, if determining that the Webpage is the page of e-book type according to uniform resource locator, at this The local page display module determined in step is the sheet for being localized displaying for the Webpage of e-book type Ground page presentation module;If determining that the Webpage is the page of type of user information according to uniform resource locator, The local page display module determined in this step is for being localized displaying for the Webpage of type of user information Local page display module.
It can be seen that this step is equivalent to the URL according to Webpage, each Webpage is route, so as to for Webpage determines corresponding local page display module.
Step S120:The parameter information for including in uniform resource locator is supplied to local page display module, for The local page display module shows the localization page corresponding with the Webpage according to the parameter information.
Due to having determined that local page display module corresponding with the Webpage in previous step, In this step, it is supplied to the local page determined in previous step to show the parameter information for including in uniform resource locator Module, so that the local page display module shows the localization page corresponding with the Webpage according to the parameter information.
Specifically, it is supplied to the mode of local page display module can the parameter information for including in uniform resource locator There are many, for example, can the local page display module directly be sent to the uniform resource locator, by the local page Display module extracting parameter information from the URL.For another example, the parameter information for including in uniform resource locator can also be extracted Afterwards, the parameter information extracted is sent to the local page display module.
Wherein, the parameter information for including in uniform resource locator is used to determine the content of pages information of Webpage, only It can be used for determining that the parameter information of content of pages information is used equally for the present invention.For example, parameter information can be used for Indicate the information of filename, file suffixes, and/or file path.Correspondingly, local page display module is obtained according to parameter information After getting the content of pages information of Webpage, generates and show and the page using the preset content displaying rule of inside modules The corresponding localization page of content information.
It can be seen that in mode provided by the invention, local page display module can be directly according to net to be presented Webpage is converted to the corresponding localization page and shown by the parameter information for including in the uniform resource locator of the network page, To enable Webpage to show user in the form of localizing the page, display effect is optimized.
Embodiment two
Fig. 2 shows the flow charts of page display method provided by Embodiment 2 of the present invention.In the present embodiment, with electronics It is illustrated for book application, it will be appreciated to those of skill in the art that present invention can also apply to other various types Application in.As shown in Fig. 2, this approach includes the following steps:
Step S200:Previously according to the type of Webpage to be presented, multiple local page display modules are set;Wherein, Each local page display module is respectively used to the Webpage of displaying corresponding types.
Wherein, the type of Webpage to be presented can flexibly be divided by those skilled in the art, for example, both can basis The network originating of Webpage divides, and can also be divided according to the store path of Webpage, can also be according to Webpage Content of pages divides, as long as in short, it can be used equally for dividing the type of Webpage by the URL information determined.
In the present embodiment, the type of Webpage includes following three kinds:E-book type, type of user information and Preset function type in.Correspondingly, the local page display module in the present embodiment includes following three:For showing It is the first kind display module of e-book, the second class display module for showing user information, default in application for showing The third class display module of function.Wherein, e-book type includes mainly the content page corresponding to various e-book, for example, Title page, details page, brief introduction page and text page in e-book including various subject matters etc..Type of user information includes mainly With the relevant various pages of the personal information of user, it may for example comprise " my account ", " my gift " and " my reading is inclined It is good " etc. the pages.Preset function type in include mainly with using one or more of the relevant page of preset function, For example, third class display module can will be transferred to be shown with the relevant page of " registering " function.Those skilled in the art are also The type of Webpage can be flexibly set and the quantity of local page display module, the present invention do not limit this.
It preferably, can be by the similar page of process flow in order to promote the operational efficiency of each local page display module Face is divided into same type, and the same local page display module is transferred to be responsible for processing.
Step S210:The module id of each local page display module and the unified of the Webpage of corresponding types are provided In the mapping relations storage to preset mapping table for the feature field for including in the finger URL of source.
Wherein, the feature field for including in uniform resource locator is used to determine the type of Webpage.It correspondingly, can be with The specific location of feature field is set according to the Type division mode of Webpage.If for example, the type of Webpage according to Store path divides, then can be using the field for indicating store path as feature field;If the type of Webpage according to Content of pages divide, then can using for the field of representation page content as feature field.In the present embodiment, usually by position The field of level-one after domain name, indicating file or second-level directory can distinguish one as feature field according to the field A Webpage belongs to e-book type or type of user information etc..
For the ease of quickly determining the type of each Webpage and its corresponding local page display module, in this step In, mapping table is pre-established, the Network page of module id and corresponding types for storing each local page display module The mapping relations for the feature field for including in the uniform resource locator in face.For example, being stored with following data in the mapping table: The module I D1 of first kind display module --- feature field 1;The module I D2 of second class display module --- feature field 2;The The module I D3 of three classes display module --- feature field 3.Wherein, the quantity of the corresponding feature fields of each module I D can be It is one or more.
Wherein, step S200 and step S210 is pre- the step of first carrying out.
Step S220:The feature field for including in the uniform resource locator of Webpage to be presented is obtained, according to upper State the module id that mapping table determines local page display module corresponding with this feature field.
Wherein, this step can be realized by preset routing module control, be mainly used for determining Webpage to be presented Routing iinformation when being shown in e-book application.First, it is parsed for the URL of Webpage to be presented, root Feature field wherein included is determined according to analysis result;Then, preset mapping table is inquired, determination is corresponding with this feature field The module id of local page display module.For example, in the present embodiment, Webpage to be presented is e-book type, phase The module id of Ying Di, local page display module corresponding with feature field are ID1, and therefore, it is necessary to be shown by the first kind Module is shown.
Step S230:The parameter information for including in uniform resource locator is supplied to local page display module.
Wherein, the parameter information for including in uniform resource locator can be supplied in previous step by routing module control Determining local page display module, so that the local page display module is shown and the Webpage phase according to the parameter information The corresponding localization page (being also the primary page).Specifically, directly the URL can be both sent to by routing module control In one step determine local page display module, by the local page display module from the URL extracting parameter information;Also may be used After extracting parameter information wherein included according to the analysis result of URL by routing module control, the parameter information that will extract It is sent to the local page display module.Preferably, the present embodiment in order to accelerate each local page display module displaying speed Degree, is realized using latter approach.
Wherein, the parameter information for including in uniform resource locator is used to determine the content of pages information of Webpage, only It can be used for determining that the parameter information of content of pages information is used equally for the present invention.For example, parameter information can be used for Indicate the information of filename, file suffixes, and/or file path.
Step S240:Local page display module shows localization page corresponding with Webpage according to the parameter information Face.
Specifically, local page display module obtains content of pages corresponding with Webpage according to parameter information and believes Breath;It is generated and is shown corresponding with the content of pages information by preset content displaying rule in local page display module Localize the page.Content displaying rule is usually defined by least one content displaying function and/or content displaying class.Its In, local page display module according to parameter information obtain Webpage content of pages information mode can there are many.Example Such as, the content of pages letter of Webpage corresponding with the parameter information can be asked from local page display module to server Breath;For another example, it can also be obtained and the parameter information according to the store path for including in parameter information by local page display module The content of pages information of corresponding Webpage, the present invention do not limit this.When the content of pages for getting Webpage is believed After breath, called and the content of pages by the content displaying function and/or content displaying class that include in local page display module The corresponding localization code (being also primary code) of information is shown corresponding with content of pages information by the localization code The localization page.Specifically, localization code corresponding with the content of pages information is pre-set is used for network The page is converted into the frame code of the corresponding localization page, content displaying function and/or content displaying class by call with The mode of the corresponding localization code of the content of pages information generates the localization page corresponding with content of pages information Local page source code realizes the displaying of the localization page by the local page source code.
In addition, the type of each type of corresponding content of pages information of Webpage includes a variety of, it is correspondingly, local The quantity for the content displaying function for including in page presentation module is multiple, and each content displaying function is respectively used to displaying and corresponds to The content of pages information of type.
Below by taking the Webpage of e-book type as an example, the specific implementation details of this step is discussed in detail:
Content of pages information corresponding to the Webpage of e-book type is primarily referred to as the essence for including in Webpage Content.Under normal conditions, in the Webpage write in the form of CSS codes or JAVA script scripts etc., in addition to comprising waiting opening up Also include usually a large amount of code for showing form for defining substantive content outside existing substantive content.For example, for one page Including for the e-book page of word and picture, word and picture belong to the essence browsed for user for including in the page Content, and be used to define the font of word, format, the size for showing position and picture, format code be then not belonging to the page Substantive content in face.Correspondingly, for show that the first kind display module of e-book type obtains according to parameter information with The corresponding content of pages information of the Webpage generally includes the substantive contents such as word and picture, without including for defining text The code portions of the display form of word and picture are graded other parts unrelated with substantive content, and thus, it is possible to the first kind is greatly reduced Display module needs the data volume received, and then shortens data transmission delay, is promoted and shows speed.First kind display module obtains To after the above-mentioned content of pages information comprising word and picture, corresponded to by each content displaying function displays wherein included The content of pages information of type.
Specifically, since first kind display module needs to show word and picture, it can be set in the inside of the module Multiple functions for showing word are set, and by for showing that the function of word is encapsulated as an individual class, are also word class; Meanwhile multiple functions for exhibiting pictures are set, and it will be encapsulated as another individual class for the function of exhibiting pictures, It is picture category.Wherein, in the inside of word class, can such as minor function be set further according to page properties:For showing cover Cover page function, the title page function for showing title page, the details page function for showing details page and for showing of page The text page function of text;Furthermore it is also possible to which multiple subfunctions, example is further arranged in function corresponding to each property pages Such as, in text page function, can following subfunction be further set according to word rank:For showing headline class word Headline function, the subtitle function for showing subtitle class word, the text class function etc. for showing text class word. Similarly, in the inside of picture category, can also further be arranged such as minor function:First kind lattice for the picture for showing JPG types Formula handles function, the second class format analysis processing function of picture for showing BMP types, it is default to be more than for exhibiting pictures size Data threshold first kind thresholding functions and for exhibiting pictures size be not more than preset data threshold second Class thresholding functions etc..
In addition, the processing mode of other kinds of Webpage and its corresponding local page display module is similar, herein It repeats no more.In short, being previously provided with the content of pages of corresponding type in the inside of each function of local page display module The displaying rule of information, therefore, in the present embodiment, local page display module is without obtaining in Webpage for defining exhibition Show the code section of rule, you can open up the content of pages information got according to the preset displaying rule of the inside modules Show, while improving displaying speed, also allows for that different display forms is respectively set for plurality of kinds of contents, improve bandwagon effect Diversity.Also, due to the inside of a local page display module pre-defined the module can handle it is each The display form of the content information of type, therefore, local page display module have very strong versatility, need to only get and wait opening up The content of pages information of the Webpage shown, you can quickly shown using the function of its internal preset corresponding with the Webpage The localization page, to realize corresponding types the overall network page quick displaying.
Also, local page display module shows localization page corresponding with content of pages information by localizing code When face, further content of pages information can also be cached by the localization code, shown according to buffered results corresponding The localization page.After buffered, the content of displaying can be made more smooth, avoid content caused by due to network speed fluctuates and tremble Phenomena such as dynamic, provides guarantee for the high-quality reading of user.In addition, since local page display module is to localize code Form realize localization page presentation, therefore, convenient for the various novel capabilities provided using hardware, can realize preferably dynamic State effect.
In addition, in the present embodiment, additionally it is possible to be updated for each local page display module.It is grasped by updating Make, the displaying rule inside local page display module can be changed, and/or, correct the defects of application operation.For example, right For the second class display module of the Webpage for handling type of user information, it is assumed that e-book application is proposed new edition This, has adjusted the Show Styles of " my account " button in user information in new version, and/or, increase " my browsing newly This button of record " correspondingly can be wrapped by update corresponding with the second class display module and realize above-mentioned update.It is preferred that Ground is updated in order not to interfere the normal operation of application using hot update mode.
Specifically, in the present embodiment, the parameter for including in the uniform resource locator of Webpage to be presented is believed Before the step of breath is supplied to local page display module, further comprise step:Judge the version of local page display module Whether need to update, if so, being updated the version of local page display module by hot update mode.When it is implemented, Can the parameter information for including in the uniform resource locator of Webpage to be presented be supplied to local page exhibition every time When showing module, judge whether corresponding local page display module needs to update;Alternatively, can also be after application starts, to clothes Business device asks the version information of each local page display module;Judge server return version information be locally stored it is each Whether the version information of a local page display module is consistent, if not, it is determined that the version of local page display module needs more Newly, it downloads and corresponding update packet is installed.
It is carried out more in addition, existing each local page display module can not only be directed to by the above-mentioned newer mode of heat Newly, it can also it is enough by more newly increasing new local page display module.If for example, being increased newly in the application of New Version Electronic book One function module then can create corresponding local page display module for the corresponding display page of the function module, and Newly-built local page display module is loaded into application by the above-mentioned newer mode of heat.
In summary, aforesaid way provided by the invention can be realized conveniently and efficiently from Webpage to the localization page The conversion of (being also the primary page).Specifically, previously according to the characteristics of various types of Webpages be respectively provided with it is multiple not Same local page display module, also, it is that each Webpage to be presented determines accordingly originally to utilize routing module control Ground page presentation module is realized the localization process of the Webpage of corresponding types by each local page display module.The party Formula can not only be applied in native applications be the localization page from the conversion of page of internet;It can also be applied to To be the localization page from the conversion of page of internet in web application, to realize the bandwagon effect of high-quality.
Embodiment three
The embodiment of the present application three provides a kind of nonvolatile computer storage media, the computer storage media storage There are an at least executable instruction, the computer executable instructions to can perform the page presentation side in above-mentioned any means embodiment Method.
Executable instruction specifically can be used for so that processor executes following operation:Obtain the system of Webpage to be presented One Resource Locator determines corresponding local page display module according to the uniform resource locator;
The parameter information for including in the uniform resource locator is supplied to the local page display module, for institute It states local page display module and the localization page corresponding with the Webpage is shown according to the parameter information.
In a kind of optional mode, the executable instruction further makes the processor execute following operation:
Previously according to the type of Webpage to be presented, multiple local page display modules are set;Wherein, each local Page presentation module is respectively used to the Webpage of displaying corresponding types;And
By the uniform resource locator of the module id of each local page display module and the Webpage of corresponding types In include feature field mapping relations storage in preset mapping table;Wherein, the uniform resource locator of Webpage In include feature field be used to determine the type of Webpage;
The feature field for including in the uniform resource locator is obtained, is determined and the tagged word according to the mapping table The module id of the corresponding local page display module of section.
In a kind of optional mode, the feature field includes:Include in uniform resource locator provides for determining The field of source store path;And the type of the Webpage to be presented includes at least one of the following:E-book type, Preset function type in type of user information and application;
The local page display module includes at least one of the following:For showing that the first kind of e-book shows mould Block, the second class display module for showing user information, the third class display module for showing the preset function in application.
In a kind of optional mode, the executable instruction specifically makes the processor execute following operation:
The local page display module is obtained according to the parameter information in the page corresponding with the Webpage Hold information;
It generates and shows and the content of pages by preset content displaying rule in the local page display module The corresponding localization page of information.
In a kind of optional mode, preset content displaying rule passes through at least one in the local page display module A content displaying function definition;The executable instruction specifically makes the processor execute following operation:Pass through the content exhibition Show function call localization code corresponding with the content of pages information, passes through localization code displaying and the page The corresponding localization page of face content information.
In a kind of optional mode, the type of the content of pages information includes a variety of;And the local page displaying The quantity for the content displaying function for including in module is multiple, and each content displaying function is respectively used to show the page of corresponding type Face content information.
In a kind of optional mode, the executable instruction specifically makes the processor execute following operation:Pass through institute It states localization code to cache the content of pages information, the localization page is shown according to buffered results.
In a kind of optional mode, the executable instruction also makes the processor execute following operation:It will be to be presented Webpage uniform resource locator in include parameter information be supplied to before the local page display module, judge Whether the version of the local page display module needs to update, if so, being shown to the local page by hot update mode The version of module is updated.
In a kind of optional mode, the executable instruction specifically makes the processor execute following operation:When described After startup, the version information of the local page display module is asked to server;
Judge version information that server returns and the version information of local page display module that is locally stored whether one It causes, if not, it is determined that the version of the local page display module needs to update.
Example IV
Fig. 3 shows the structural schematic diagram of according to embodiments of the present invention four a kind of electronic equipment, present invention specific implementation Example does not limit the specific implementation of electronic equipment.
As shown in figure 3, the electronic equipment may include:Processor (processor) 302, communication interface (Communications Interface) 304, memory (memory) 306 and communication bus 308.
Wherein:Processor 302, communication interface 304 and memory 306 complete mutual lead to by communication bus 308 Letter.Communication interface 304, for being communicated with the network element of miscellaneous equipment such as client or other servers etc..Processor 302 is used In executing program 310, the correlation step in above-mentioned page display method embodiment can be specifically executed.
Specifically, program 310 may include program code, which includes computer-managed instruction.
Processor 302 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that electronic equipment includes can be same type of processor, such as one or more CPU;Also may be used To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 306, for storing program 310.Memory 306 may include high-speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 310 specifically can be used for so that processor 302 executes following operation:Obtain the system of Webpage to be presented One Resource Locator determines corresponding local page display module according to the uniform resource locator;
The parameter information for including in the uniform resource locator is supplied to the local page display module, for institute It states local page display module and the localization page corresponding with the Webpage is shown according to the parameter information.
In a kind of optional mode, the executable instruction further makes the processor execute following operation:
Previously according to the type of Webpage to be presented, multiple local page display modules are set;Wherein, each local Page presentation module is respectively used to the Webpage of displaying corresponding types;And
By the uniform resource locator of the module id of each local page display module and the Webpage of corresponding types In include feature field mapping relations storage in preset mapping table;Wherein, the uniform resource locator of Webpage In include feature field be used to determine the type of Webpage;
The feature field for including in the uniform resource locator is obtained, is determined and the tagged word according to the mapping table The module id of the corresponding local page display module of section.
In a kind of optional mode, the feature field includes:Include in uniform resource locator provides for determining The field of source store path;And the type of the Webpage to be presented includes at least one of the following:E-book type, Preset function type in type of user information and application;
The local page display module includes at least one of the following:For showing that the first kind of e-book shows mould Block, the second class display module for showing user information, the third class display module for showing the preset function in application.
In a kind of optional mode, the executable instruction specifically makes the processor execute following operation:
The local page display module is obtained according to the parameter information in the page corresponding with the Webpage Hold information;
It generates and shows and the content of pages by preset content displaying rule in the local page display module The corresponding localization page of information.
In a kind of optional mode, preset content displaying rule passes through at least one in the local page display module A content displaying function definition;The executable instruction specifically makes the processor execute following operation:Pass through the content exhibition Show function call localization code corresponding with the content of pages information, passes through localization code displaying and the page The corresponding localization page of face content information.
In a kind of optional mode, the type of the content of pages information includes a variety of;And the local page displaying The quantity for the content displaying function for including in module is multiple, and each content displaying function is respectively used to show the page of corresponding type Face content information.
In a kind of optional mode, the executable instruction specifically makes the processor execute following operation:Pass through institute It states localization code to cache the content of pages information, the localization page is shown according to buffered results.
In a kind of optional mode, the executable instruction also makes the processor execute following operation:It will be to be presented Webpage uniform resource locator in include parameter information be supplied to before the local page display module, judge Whether the version of the local page display module needs to update, if so, being shown to the local page by hot update mode The version of module is updated.
In a kind of optional mode, the executable instruction specifically makes the processor execute following operation:When described After startup, the version information of the local page display module is asked to server;
Judge version information that server returns and the version information of local page display module that is locally stored whether one It causes, if not, it is determined that the version of the local page display module needs to update.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame Claim.

Claims (24)

1. a kind of page display method comprising:
The uniform resource locator for obtaining Webpage to be presented determines corresponding local according to the uniform resource locator Page presentation module;
The parameter information for including in the uniform resource locator is supplied to the local page display module, for described Ground page presentation module shows the localization page corresponding with the Webpage according to the parameter information;
Wherein, the local page display module shows localization corresponding with the Webpage according to the parameter information The step of page, specifically includes:The local page display module obtains opposite with the Webpage according to the parameter information The content of pages information answered;Generated by preset content displaying rule in the local page display module and show with it is described The corresponding localization page of content of pages information.
2. described to determine corresponding native page according to the uniform resource locator according to the method described in claim 1, wherein Before the step of face display module, further comprise step:
Previously according to the type of Webpage to be presented, multiple local page display modules are set;Wherein, each local page Display module is respectively used to the Webpage of displaying corresponding types;And
It will be wrapped in the uniform resource locator of the module id of each local page display module and the Webpage of corresponding types In the mapping relations storage to preset mapping table of the feature field contained;Wherein, it is wrapped in the uniform resource locator of Webpage The feature field contained is used to determine the type of Webpage;
Then described the step of determining corresponding local page display module according to the uniform resource locator, specifically includes:
The feature field for including in the uniform resource locator is obtained, is determined and the feature field pair according to the mapping table The module id for the local page display module answered.
3. according to the method described in claim 2, wherein, the feature field includes:The use for including in uniform resource locator In the field for determining resource store path;And the type of the Webpage to be presented includes at least one of the following:Electricity Preset function type in philosophical works type, type of user information and application;
The local page display module includes at least one of the following:For show e-book first kind display module, The second class display module for showing user information, the third class display module for showing the preset function in application.
4. according to the method described in claim 3, wherein, preset content displaying rule is logical in the local page display module Cross at least one content displaying function definition;Then generated by preset content displaying rule in the local page display module And the step of showing the localization page corresponding with the content of pages information, specifically includes:
By content displaying function call localization code corresponding with the content of pages information, pass through the local Change code and shows the localization page corresponding with the content of pages information.
5. according to the method described in claim 4, wherein, the type of the content of pages information includes a variety of;And the local The quantity for the content displaying function for including in page presentation module is multiple, and each content displaying function is respectively used to displaying and corresponds to The content of pages information of type.
6. according to any methods of claim 1-5, wherein described to pass through localization code displaying and the page The step of content information corresponding localization page, specifically includes:By the localization code to the content of pages information It is cached, the localization page is shown according to buffered results.
7. according to any methods of claim 1-5, wherein the parameter that will include in the uniform resource locator Information was supplied to before the step of local page display module, further comprised step:
Judge whether the version of the local page display module needs to update, if so, by hot update mode to the local The version of page presentation module is updated.
8. described to judge whether the version of the local page display module needs according to the method described in claim 7, wherein The step of update, specifically includes:
After application starts, the version information of the local page display module is asked to server;
Judge whether the version information that server returns is consistent with the version information for the local page display module being locally stored, if It is no, it is determined that the version of the local page display module needs to update.
9. a kind of electronic equipment, including:Processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute following behaviour for storing an at least executable instruction, the executable instruction Make:
The uniform resource locator for obtaining Webpage to be presented determines corresponding local according to the uniform resource locator Page presentation module;
The parameter information for including in the uniform resource locator is supplied to the local page display module, for described Ground page presentation module shows the localization page corresponding with the Webpage according to the parameter information;
Wherein, the executable instruction specifically makes the processor execute following operation:The local page display module according to The parameter information obtains content of pages information corresponding with the Webpage;By in the local page display module Preset content displaying rule generates and shows the localization page corresponding with the content of pages information.
10. electronic equipment according to claim 9, the executable instruction further makes the processor execute following behaviour Make:
Previously according to the type of Webpage to be presented, multiple local page display modules are set;Wherein, each local page Display module is respectively used to the Webpage of displaying corresponding types;And
It will be wrapped in the uniform resource locator of the module id of each local page display module and the Webpage of corresponding types In the mapping relations storage to preset mapping table of the feature field contained;Wherein, it is wrapped in the uniform resource locator of Webpage The feature field contained is used to determine the type of Webpage;
The feature field for including in the uniform resource locator is obtained, is determined and the feature field pair according to the mapping table The module id for the local page display module answered.
11. electronic equipment according to claim 10, wherein the feature field includes:It is wrapped in uniform resource locator The field for determining resource store path contained;And the type of the Webpage to be presented include it is following at least one It is a:Preset function type in e-book type, type of user information and application;
The local page display module includes at least one of the following:For show e-book first kind display module, The second class display module for showing user information, the third class display module for showing the preset function in application.
12. electronic equipment according to claim 11, preset content displaying rule in the local page display module It is defined by least one content displaying function;The executable instruction specifically makes the processor execute following operation:Pass through Content displaying function call localization code corresponding with the content of pages information, passes through the localization code exhibition Show the localization page corresponding with the content of pages information.
13. electronic equipment according to claim 12, wherein the type of the content of pages information includes a variety of;And institute The quantity for stating the content displaying function for including in local page display module is multiple, and each content displaying function is respectively used to open up Show the content of pages information of corresponding type.
14. according to any electronic equipments of claim 9-13, wherein the executable instruction specifically makes the processor Execute following operation:The content of pages information is cached by the localization code, institute is shown according to buffered results State the localization page.
15. according to any electronic equipments of claim 9-13, the executable instruction also execute the processor with Lower operation:Before the parameter information for including in uniform resource locator is supplied to the local page display module, institute is judged Whether the version for stating local page display module needs to update, if so, showing mould to the local page by hot update mode The version of block is updated.
16. electronic equipment according to claim 15, the executable instruction specifically makes the processor execute following behaviour Make:After application starts, the version information of the local page display module is asked to server;
Judge whether the version information that server returns is consistent with the version information for the local page display module being locally stored, if It is no, it is determined that the version of the local page display module needs to update.
17. a kind of computer storage media, an at least executable instruction, the executable instruction are stored in the storage medium Processor is set to execute following operation:
The uniform resource locator for obtaining Webpage to be presented determines corresponding local according to the uniform resource locator Page presentation module;
The parameter information for including in the uniform resource locator is supplied to the local page display module, for described Ground page presentation module shows the localization page corresponding with the Webpage according to the parameter information;
The executable instruction specifically makes the processor execute following operation:The local page display module is according to the ginseng Number acquisition of information content of pages information corresponding with the Webpage;By preset in the local page display module Content displaying rule generates and shows the localization page corresponding with the content of pages information.
18. computer storage media according to claim 17, the executable instruction further holds the processor The following operation of row:
Previously according to the type of Webpage to be presented, multiple local page display modules are set;Wherein, each local page Display module is respectively used to the Webpage of displaying corresponding types;And
It will be wrapped in the uniform resource locator of the module id of each local page display module and the Webpage of corresponding types In the mapping relations storage to preset mapping table of the feature field contained;Wherein, it is wrapped in the uniform resource locator of Webpage The feature field contained is used to determine the type of Webpage;
The feature field for including in the uniform resource locator is obtained, is determined and the feature field pair according to the mapping table The module id for the local page display module answered.
19. computer storage media according to claim 18, wherein the feature field includes:Unified resource positions The field for determining resource store path for including in symbol;And during the type of the Webpage to be presented includes following It is at least one:Preset function type in e-book type, type of user information and application;
The local page display module includes at least one of the following:For show e-book first kind display module, The second class display module for showing user information, the third class display module for showing the preset function in application.
20. computer storage media according to claim 19, wherein in preset in the local page display module Hold displaying rule to define by least one content displaying function;It is following that the executable instruction specifically executes the processor Operation:By content displaying function call localization code corresponding with the content of pages information, pass through described Ground code shows the localization page corresponding with the content of pages information.
21. computer storage media according to claim 20, wherein the type of the content of pages information includes more Kind;And the quantity for the content displaying function in the local page display module including is multiple, each content displaying function point The content of pages information of corresponding type Yong Yu not be shown.
22. according to any computer storage medias of claim 17-21, wherein the executable instruction specifically makes institute It states processor and executes following operation:The content of pages information is cached by the localization code, is tied according to caching Fruit shows the localization page.
23. according to any computer storage medias of claim 17-21, the executable instruction also makes the processor Execute following operation:Before the parameter information for including in uniform resource locator is supplied to the local page display module, Judge whether the version of the local page display module needs to update, if so, by hot update mode to the local page The version of display module is updated.
24. computer storage media according to claim 23, the executable instruction specifically executes the processor It operates below:After application starts, the version information of the local page display module is asked to server;
Judge whether the version information that server returns is consistent with the version information for the local page display module being locally stored, if It is no, it is determined that the version of the local page display module needs to update.
CN201710655584.XA 2017-08-03 2017-08-03 Page display method, electronic equipment and computer storage media Active CN107451270B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710655584.XA CN107451270B (en) 2017-08-03 2017-08-03 Page display method, electronic equipment and computer storage media
PCT/CN2018/081151 WO2019024520A1 (en) 2017-08-03 2018-03-29 Page presentation method, electronic device and non-volatile computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710655584.XA CN107451270B (en) 2017-08-03 2017-08-03 Page display method, electronic equipment and computer storage media

Publications (2)

Publication Number Publication Date
CN107451270A CN107451270A (en) 2017-12-08
CN107451270B true CN107451270B (en) 2018-07-20

Family

ID=60489904

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710655584.XA Active CN107451270B (en) 2017-08-03 2017-08-03 Page display method, electronic equipment and computer storage media

Country Status (2)

Country Link
CN (1) CN107451270B (en)
WO (1) WO2019024520A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451270B (en) * 2017-08-03 2018-07-20 掌阅科技股份有限公司 Page display method, electronic equipment and computer storage media
CN108334379A (en) * 2018-01-05 2018-07-27 北京明略软件系统有限公司 A kind of implementation method and realization device of page expansion function
CN109086442B (en) * 2018-08-16 2021-07-06 口口相传(北京)网络技术有限公司 Business data display method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163206B (en) * 2011-01-30 2013-05-01 青岛海信传媒网络技术有限公司 Method and system for loading pages
CN102819591B (en) * 2012-08-07 2016-04-06 北京网康科技有限公司 A kind of content-based Web page classification method and system
CN103970760B (en) * 2013-01-28 2018-09-04 腾讯科技(深圳)有限公司 A kind of web-page requests processing method and processing device
CN103309996A (en) * 2013-06-21 2013-09-18 宇龙计算机通信科技(深圳)有限公司 Webpage content processing method and device
US9569522B2 (en) * 2014-06-04 2017-02-14 International Business Machines Corporation Classifying uniform resource locators
CN104182229A (en) * 2014-08-21 2014-12-03 乐视网信息技术(北京)股份有限公司 Callback display method and device and callback method and device
CN105574049B (en) * 2014-10-30 2020-07-03 阿里巴巴集团控股有限公司 Page processing method, device and system for mobile application
CN107451270B (en) * 2017-08-03 2018-07-20 掌阅科技股份有限公司 Page display method, electronic equipment and computer storage media

Also Published As

Publication number Publication date
CN107451270A (en) 2017-12-08
WO2019024520A1 (en) 2019-02-07

Similar Documents

Publication Publication Date Title
EP3667520A1 (en) Webpage content extraction method and terminal device
US9977770B2 (en) Conversion of a presentation to Darwin Information Typing Architecture (DITA)
CN109445835A (en) Method, terminal device and the computer readable storage medium of building project frame
CN107451270B (en) Page display method, electronic equipment and computer storage media
CN108156022A (en) A kind of service calling method, device and electronic equipment
US9400633B2 (en) Methods and apparatus for voiced-enabling a web application
CN108572965A (en) A kind of resource loading method and device
CN103631875A (en) Method for carrying out network search on browser side and browser
CN102402518A (en) Method and device for accessing webpage
US9781262B2 (en) Methods and apparatus for voice-enabling a web application
WO2013028438A1 (en) System and method for dynamically assembling an application on a client device
US10157612B2 (en) Methods and apparatus for voice-enabling a web application
CN105094786A (en) Method and system for customizing page based on JavaScript
CN103559097B (en) The method of interprocess communication, device and browser in a kind of browser
US10594764B2 (en) Request cache to improve web applications performance
US9292252B2 (en) Methods and apparatus for voiced-enabling a web application
CN103020191A (en) Device and method for displaying file
CN111209374A (en) Data query display method and device, computer system and readable storage medium
US10606935B2 (en) Transforming a website for dynamic web content management
CN104090869B (en) A kind of method and translation system for translating the network information
CN105183890A (en) Webpage loading method based on browser and browser device
CN109558123B (en) Method for converting webpage into electronic book, electronic equipment and storage medium
CN110321510A (en) Page rendering method and system
CN109669678A (en) Template engine integration method, device, electronic equipment and storage medium
CN111767498B (en) Method and device for realizing file information sharing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant