CN109840114A - Page processing method and mobile terminal - Google Patents

Page processing method and mobile terminal Download PDF

Info

Publication number
CN109840114A
CN109840114A CN201711192281.5A CN201711192281A CN109840114A CN 109840114 A CN109840114 A CN 109840114A CN 201711192281 A CN201711192281 A CN 201711192281A CN 109840114 A CN109840114 A CN 109840114A
Authority
CN
China
Prior art keywords
page
surface layer
mobile terminal
source file
load
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
CN201711192281.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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201711192281.5A priority Critical patent/CN109840114A/en
Priority to PCT/CN2018/115384 priority patent/WO2019100985A1/en
Publication of CN109840114A publication Critical patent/CN109840114A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

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

Abstract

The embodiment of the present application provides a kind of page processing method, is related to field of terminal technology.The described method includes: providing first page, according to the instruction of load second page, the second page is generated, the second page is loaded in the page framework of the first page.The application can reduce page volume and memory overhead, while also reducing and first page is replaced with to the scintillation that second page may cause completely, improve display effect.

Description

Page processing method and mobile terminal
Technical field
This application involves field of terminal technology, more particularly to a kind of page processing method and mobile terminal.
Background technique
With the development of terminal technology, mobile terminal has been increasingly becoming indivisible a part in user's life.It is mobile Application can be usually installed, and in order to provide the performance of application and user experience in terminal, which can be for based on movement Hold the application of Cross-border congestion management frame (such as WEEX technological frame).Since application is usually shown by way of the page to user Relevant data are applied to this, and more using relevant data to this, for example, mass users are to the merchandise display of purchase Deng therefore, needing a kind of page processing method.
It in the prior art, include a page in the application based on mobile terminal Cross-border congestion management frame, this applies all need Content to be shown is all uniformly stored in the page source file of the page.Mobile terminal is according to the page source file, in the page Loading page content in face, and when needing in the new content of pages of the page presentation, needing according to the page source file, weight The newly loading page content in the page.
Due to only including a page in application, and the application the content of display in need be stored in the page of the page In the source file of face, when the function of the application is complex or needs content to be shown more, page volume may result in Greatly, a large amount of memories are expended, or even cause to be difficult to the problems such as normally showing, that is, show that the limitation of content of pages is larger, it is difficult to is suitable In increasingly complicated display demand.
Summary of the invention
In view of the above problems, it proposes on the application overcomes the above problem or at least be partially solved in order to provide one kind State the page processing method and mobile terminal of problem.
According to a first aspect of the present application, a kind of page processing method is provided, comprising:
First page is provided;
According to the instruction of load second page, the second page is generated;
The second page is loaded in the page framework of the first page.
Optionally, described to load the second page in the page framework of the first page and include:
It generates in the page source file of the first page for loading the second page surface layer of the second page, and sets The second page surface layer is set to be located on the first page surface layer of the first page;
Reload the corresponding page source file of the first page.
Optionally, the page source file of the first page is preset at least one embedded components, the embedded components pair The display position answered is arranged on the first page surface layer of the first page;
The setting second page surface layer, which is located on the first page surface layer of the first page, includes:
The second page surface layer is added in the embedded components of page source file of the first page.
It is optionally, described that the second page is loaded in the page framework of the first page further include:
The corresponding display parameters of frame of the embedded components are set, so that the frame of the embedded components is not show shape State.
Optionally, described to load the second page in the page framework of the first page and include:
The page of first page in the page source file of the first page is replaced using the content of pages of the second page Face content;
Reload the corresponding page source file of the first page.
It optionally, further include target element in the content of the first page;
It is described to load the second page in the page framework of the first page and include:
Page area in the first page in addition to the target element loads the second page.
Optionally, the target element includes page navigation component;
The instruction of the load second page includes the page switching instruction based on the page navigation component.
Optionally, the offer first page includes:
When starting application program, the first page is obtained, the first page includes page framework;
Generate the third page;
The third page is loaded in the page framework of the first page.
According to a second aspect of the present application, a kind of page processing method is provided, comprising:
Homepage is provided, includes subpage frame display area in the homepage;
According to the instruction of the first subpage frame of load, the first subpage frame is generated;
First subpage frame is loaded in the subpage frame display area.
According to the third aspect of the application, a kind of Page handling device is provided, comprising:
First page provides module, for providing first page;
Second page generation module generates the second page for the instruction according to load second page;
Second page loading module, for loading the second page in the page framework of the first page.
Optionally, the second page loading module includes:
Second page surface layer loads submodule, described for loading for generating in the page source file of the first page The second page surface layer of second page, and the second page surface layer is set and is located on the first page surface layer of the first page;
First page source file loads submodule, for reloading the corresponding page source file of the first page.
Optionally, the page source file of the first page is preset at least one embedded components, the embedded components pair The display position answered is arranged on the first page surface layer of the first page;
The second page surface layer load submodule is also used to:
The second page surface layer is added in the embedded components of page source file of the first page.
Optionally, the second page loading module includes:
Submodule, the corresponding display parameters of frame for the embedded components to be arranged, so that described are arranged in display parameters The frame of embedded components is not show state.
It optionally, further include target element in the content of the first page;
The second page loading module includes:
Second page loads submodule, adds for the page area in the first page in addition to the target element Carry the second page.
Optionally, the target element includes page navigation component;
The instruction of the load second page includes the page switching instruction based on the page navigation component.
According to the fourth aspect of the application, a kind of Page handling device is provided, comprising:
Homepage provides module, includes subpage frame display area in the homepage for providing homepage;
First subpage frame generation module generates the first subpage frame for the instruction according to the first subpage frame of load;
First subpage frame loading module, for loading first subpage frame in the subpage frame display area.
According to the 5th of the application aspect, a kind of calculating equipment is provided, including memory, processor and be stored in storage On device and the computer program that can run on a processor, the processor realize such as aforementioned one when executing the computer program A or multiple method.
According to the 6th of the application the aspect, computer readable storage medium is provided, computer program is stored thereon with, institute State the method realized when computer program is executed by processor such as aforementioned one or more.
In the embodiment of the present application, it is capable of providing first page, and in order to avoid in single-page application that institute is in need aobvious The content shown is stored in the problems in page source file of single-page, can historically second page instruction generate second The page loads second page in the page framework of first page, to reduce page volume and memory overhead, while also subtracting Lack and first page is replaced with to the scintillation that second page may cause completely, has improved display effect.
Above description is only the general introduction of technical scheme, in order to better understand the technological means of the application, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects, features and advantages of the application can It is clearer and more comprehensible, below the special specific embodiment for lifting the application.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the application 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 a kind of page processing method flow chart according to the application one embodiment one;
Fig. 2 shows a kind of page processing method flow charts according to the application one embodiment two;
Fig. 3 shows a kind of page processing method flow chart according to the application one embodiment three;
Fig. 4 shows a kind of page schematic diagram according to the application one embodiment;
Fig. 5 shows another page schematic diagram according to the application one embodiment;
Fig. 6 shows another page schematic diagram according to the application one embodiment;
Fig. 7 shows a kind of structural block diagram of Page handling device according to the application one embodiment six;
Fig. 8 shows a kind of structural block diagram of Page handling device according to the application one embodiment seven;
Fig. 9 shows a kind of structural block diagram of exemplary system according to the application one embodiment.
Specific embodiment
The application exemplary embodiment is more fully described below with reference to accompanying drawings.Although showing that the application shows in attached drawing Example property embodiment, it being understood, however, that may be realized in various forms the application without that should be limited by embodiments set forth here System.It is to be able to thoroughly understand the application on the contrary, providing these embodiments, and can be complete by scope of the present application Be communicated to those skilled in the art.
The embodiment of the present application is deeply understood for the ease of those skilled in the art, will introduce the embodiment of the present application first below Involved in technical term definition.
The page can correspond to a page instance, and the page is made of content of pages and page framework, and content of pages is the page The part that middle main body is shown may include the content types component such as text, picture or video, can also include access control, input The functional forms component such as frame, scroll bar.Each page assembly is arranged according to the arrangement mode of the page.Wherein, navigation arrangement is access control One kind of part, for jumping to another page from current page.
Page framework includes the remainder of the content of pages shown in the page except main body, including page frame, page top The menu bar in portion, the scroll bar of page side, the function bar etc. of page bottom, in multiple pages of the same software, usually It is to apply the same page frame.
Mobile terminal may include mobile phone, smartwatch, VR (Virtual Reality, virtual reality) equipment, plate electricity Brain, E-book reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert Compression standard audio level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, move State image expert's compression standard audio level 4) player, pocket computer on knee, vehicle-mounted computer, desktop computer, machine top Box, intelligent TV set, wearable device etc..The mobile terminal can be equipped with operating system, including IOS (apple operation system System), Android operation system or YunOS (Ali's operating system) etc..The mobile terminal can be interacted with remote server, be obtained Client, plug-in unit, page processing service, and the device including following figure 7-9 are taken, implements the mode of 1-3, thus to the page Reason.
Client may include at least one application application program based on mobile terminal Cross-border congestion management frame.The client It can run in the terminal, to realize page processing method provided by the embodiments of the present application.
Plug-in unit may include in the application for running on mobile terminal, to realize at the page provided by the embodiments of the present application Reason method.
Due between mobile terminal software environment and hardware environment usually differ greatly, thus it requires in the mobile terminal The application program of middle operation also has the characteristics that corresponding certain, for example the mobile terminal based on above-mentioned different operating system may It is required that the application program installed is by specific programming language or with special file format.Therefore, in order to make Application program has good compatibility, can be obtained by mobile terminal Cross-border congestion management frame come development and application program Application program is the application program based on mobile terminal Cross-border congestion management frame, such application program usually can be in different shiftings It is run in dynamic terminal.By taking WEEX technological frame as an example, developer, which can write, generates page source file, and by the page source sheet File is deployed in remote server, and by way of then issuing network request or in advance, which is passed to Mobile terminal, the mobile terminal can be based on the page source file, the loading page in application or webpage, to user's displayed page Content.
It below will be by taking WEEX technological frame as an example, to page processing method provided by the embodiment of the present application and mobile terminal It is illustrated.
The embodiment of the present application can be applied to the field that mobile terminal shows the page in the application based on WEEX technological frame Scape.Due in the prior art, only including a page in, and the application the content of display in need be stored in this In the page source file of the page, cause the page committed memory larger, it is difficult to meet the increasingly complicated application display page of function The demand of content, limitation are larger.Therefore, in the embodiment of the present application, first page can be provided, and can be according to load the The instruction of two pages generates second page, loads second page in the page framework of first page, can be in a page Page framework in load another page, to be made full use of in WEEX technological frame by multiple page presentation content of pages The flexibility of multi-page exemplary architecture, avoid by application the content of display in need be stored in the page source of a page This problem of file, reduces page volume and memory overhead, therefore can adapt to need content to be shown more or function More complicated application carries out the demand of page processing, makes the large-scale more real-time smoothness of page series connection applied, is also convenient for each The page is managed.
The embodiment of the present application can be implemented as client or plug-in unit, and mobile terminal can be obtained and be installed from remote server The client or plug-in unit, to implement page processing method provided by the embodiment of the present application by the client or plug-in unit. Certainly, the embodiment of the present application can also be disposed on the remote server in the form of page processing software, and mobile terminal can lead to It crosses and accesses the remote server to obtain page processing service.
Embodiment one
Referring to Fig.1, a kind of page processing method flow chart according to the application one embodiment, specific steps packet are shown It includes:
Step 101, first page is provided.
In order to show that certain contents, such as certain shopping class are applied to user and show the commodity bought to user by application Etc. information, mobile terminal the first webpage can be provided.
Mobile terminal can obtain the page source file of first page from the remote server in local or aforementioned, Page load or rendering, including building page framework are carried out according to the page source file, and is shown accordingly in page framework Content of pages.
Page source file includes data needed for loading page, each component, each component for including for illustrating the page Arrangement mode and each component corresponding to content.
Step 102, according to the instruction of load second page, the second page is generated.
In order to avoid in single-page application, by the content of display in need be stored in the corresponding page source of a page Page volume caused by file is big and second page can be generated in this larger problem of committed memory, mobile terminal.
The instruction for loading second page can be default by executing clicking operation, slide or button operation etc. by user Operation triggering, to indicate that mobile terminal on the basis of currently existing first page, generates second page.
Mobile terminal can obtain second page according to mode identical with the aforementioned middle acquisition page source file of first page The page source file in face, and according to the page source file generated second page.
Step 103, the second page is loaded in the page framework of the first page.
In order to reduce the scintillation that first page is replaced with to second page completely and may cause, to improve display effect Fruit and user experience, mobile terminal can load second page in the page framework of first page, that is, by second page Face is shown as the form of the subpage frame of first page.
Mobile terminal can add the component or other special of container type in the page source file of first page in advance Component, thus the region needed for addition load second page in the page framework of first page, and in region load the Two pages.
Certainly, in practical applications, second page can not also be first generated, then second page is loaded in first page In page framework, but directly according to the page source file of second page, in the page framework of first page, second page is loaded Face.
In the embodiment of the present application, it is capable of providing first page, and in order to avoid in single-page application that institute is in need aobvious The content shown is stored in the problems in page source file of single-page, can historically second page instruction generate second The page loads second page in the page framework of first page, to reduce page volume and memory overhead, while also subtracting Lack and first page is replaced with to the scintillation that second page may cause completely, has improved display effect.
Embodiment two
Referring to Fig. 2, a kind of page processing method flow chart according to the application one embodiment, specific steps packet are shown It includes:
Step 201, mobile terminal provides first page.
Wherein, mobile terminal provides the mode of first page, may refer to the associated description in aforementioned, herein no longer one by one It repeats.
In the embodiment of the present application, optionally, since the content that may need to switch display in application is more, so in order to Display effect is improved, and further decreases the memory of page volume and occupancy, mobile terminal obtains institute when starting application program First page is stated, the first page includes page framework, generates the third page, is added in the page framework of the first page Carry the third page.It that is to say, may include the region that at least one is used to show other pages in first page.
Wherein, mobile terminal loads the mode of the third page in the page framework of first page, can be with aforementioned The mode that second page is loaded in the page framework of one page is identical, no longer repeats one by one herein.
For in first page for showing each regions of other pages, mobile terminal can in this region to region The corresponding page switches over display, for example by following step, the third page of display is replaced with second page.
In addition, in practical applications, other contents can not be shown in first page, but only show second page or Other pages such as three pages.
Step 202, the mobile terminal generates the second page according to the instruction of load second page.
Wherein, mobile terminal generates the mode of second page according to the instruction of load second page, may refer in aforementioned Associated description, no longer repeat one by one herein.
In the embodiment of the present application, optionally, due to application may include multiple pages therefore, for the ease of according to The demand at family switches between multiple pages, and the instruction of the load second page includes that the page based on page navigation is cut Change instruction.
Wherein, page line navigation to application for carrying out global control, including switching to some page etc..Page line navigation It may include multiple switching entrances for being directed to the different pages respectively, which may include the mark such as button or icon, and A corresponding page, when receiving the predetermined registration operation of aforementioned middle user based on any switching entrance, i.e., determining receive is based on The page switching of the page navigation indicates, to switch to the page corresponding to the switching entrance.
Step 203, the mobile terminal loads the second page in the page framework of the first page.
In the embodiment of the present application, optionally, in order to avoid switching the slack problem of switching that may cause when the page, And then raising display effect and user experience, mobile terminal can be generated in the page source file of the first page and be used for The second page surface layer of the second page is loaded, and the first page surface layer that the second page surface layer is located at the first page is set On, reload the corresponding page source file of the first page.It that is to say, the content of pages shown by first page Upper layer shows second page, and the page that the second page lower layer is in first page is covered by the content of pages of second page Content.
From the foregoing it will be appreciated that illustrating each component and each group included by first page in the page source file of first page Therefore the arrangement mode of part can add the component for showing second page in the page source file of first page, and The component is arranged on first page surface layer, to generate second page surface layer.Certainly, in practical applications, the component It can be and be arranged in the page source file of first page in advance.
The page source file of second page can be associated by mobile terminal with the component, for example, setting in the assembly The address of the page source file of second page is set, later, in the source file for reloading first page, is closed according to the component The address of connection loads second page in second page surface layer.Certainly, mobile terminal can also will be in the page source file of second page Including data be added in the component, mobile terminal can be directly according to the data for including in the component, in second page surface layer Load second page.
In the embodiment of the present application, optionally, since embedded components embed (i.e. embed label) can be in current page On the basis of example, the new page instance in current page example upper layer is initialized, so ensuring that Second page is shown on the basis of first page, improves the reliability of loading page, is reduced user and is perceived first page and the Two pages are the possibility of two pages, that is, improve the integrality of the page, and the page source file of the first page is preset at least One embedded components, the corresponding display position of the embedded components are arranged on the first page surface layer of the first page, phase It answers, the second page surface layer can be added in the embedded components of page source file of the first page by mobile terminal.
Wherein, mobile terminal can be by the associated description in aforementioned, by the page source file of second page and the component It is associated, so that second page surface layer is added in embedded components.
Certainly, in practical applications, the identical embedded components of multiple display parameters can be preset in page source file, it is each embedding A page can be respectively corresponded by entering component, thus by multiple embedded components, it is right in the same page area of first page Multiple pages switch over display, wherein the page that the page corresponding to the embedded components in top layer is as currently shown, The page that the corresponding page of embedded components under the top layer is as currently hidden.
The display parameters of embedded components are used to control the pattern for showing the embedded components, including the embedded components are in the page Position, shared area size and frame etc..
In the embodiment of the present application, optionally, the side between first page and second page is perceived in order to avoid user Display effect is improved, mobile terminal can be set described to make the first page of display and second page that there is globality in boundary The corresponding display parameters of the frame of embedded components, so that the frame of the embedded components is not show state.
Wherein, the corresponding display parameters of frame that the embedded components arrive can be set in mobile terminal, to control the insertion The frame of component is not show state.
Certainly, in practical applications, the corresponding display parameters of frame that embedded components also can be set, make the embedded components Frame color it is identical as the background color of first page, so that it is guaranteed that user will not perceive first page and second page Between boundary.
In the embodiment of the present application, optionally, in order to avoid switching the slack problem of switching that may cause when the page, And then display effect and user experience are improved, mobile terminal can be using the content of pages replacement of the second page described the The content of pages of first page in the page source file of one page reloads the corresponding page source file of the first page.
Data in the page source file of first page can be replaced with the page source file of second page by mobile terminal In data, certainly, if the page framework of first page is identical as the page framework of second page, the mobile terminal can will Data associated by each component for including in first page replace with data associated by the component in second page, thus will The content of pages of first page replaces with the content of pages of second page.
In the embodiment of the present application, optionally, due to may show second page content of pages during, may It also needs to show the partial content in first page, be needed and other pages alternatively, may include part in first page The content of pages that face is shown jointly, therefore, in order to further increase display effect and show the reliability of the page, described first It further include target element in the content of the page.Correspondingly, mobile terminal can remove the target element in the first page Page area in addition loads the second page.
Wherein, target element may include the random component in aforementioned in addition to embedded components.
Mobile terminal can be to load second page in embedded components, to go out the area other than target element in first page Domain loads second page.
For example, first page includes 3 components, wherein component 1 is character component, and component 2 is list element, and component 3 is Embedded components.It therefore, can be in component 3 if mobile terminal needs load second page in the page framework of first page Second page is loaded, includes component 1 and 2 in first page, and be loaded with the component 3 of second page after the completion of load.
In the embodiment of the present application, optionally, from the foregoing it will be appreciated that may include page navigation in the page, and the page is led Boat determines the page loaded in first page frame for receiving the predetermined registration operation of user, therefore, for the ease of quickly quasi- Really the page loaded in the page framework of first page is controlled, is included in first page upper layer and loads other pages Or the page loaded is switched over, the reliability and display effect of loading page are improved, the target element includes the page Navigation arrangement.
In addition, can make full use of WEEX skill due to need not all write all content of pages in one page example The flexibility of multi-page framework in art frame overcomes and needs to reload multiple groups of page navigation component etc. in single-page example The problem of part, reduces the development cost of application.
In the embodiment of the present application, firstly, mobile terminal is capable of providing first page, and in order to avoid in single-page application By the content of display in need be stored in the problems in the page source file of single-page, mobile terminal can be with historically The instruction of two pages generates second page, second page is loaded in the page framework of first page, to reduce page body Long-pending and memory overhead, while decreasing and first page is replaced with to the scintillation that second page may cause completely, it improves Display effect.
Secondly, mobile terminal can by embedded components, in the page instance of the upper layer initialization information of first page, from And can be by the way that second page surface layer is added to the embedded components, to download second page in the embedded components, the second page Face is the upper layer for being in first page, it is ensured that can show second page on the basis of first page, improve loaded page The reliability in face, while decreasing user and perceiving first page and second page as the possibility of two pages, improve page The integrality in face.
In addition, mobile terminal can page area in first page except target element load second page, and should Target element may include page navigation component, it is ensured that it is new that mobile terminal can receive user's load based on page navigation component The page instruction, rapidly and accurately load other pages on first page upper layer or the page loaded switched over, mention The high reliability and display effect of loading page.
It should be understood that the method and step in above-described embodiment is not each essential, Under specific situation, it is convenient to omit one or more of steps, as long as can be realized the technical purpose of page processing.This hair The quantity and its sequence of step in the bright embodiment not limited, protection scope of the present invention is worked as to be limited to claims It is quasi-.
Embodiment three
Referring to Fig. 3, a kind of page processing method flow chart according to the application one embodiment, specific steps packet are shown It includes:
Step 301, homepage is provided, includes subpage frame display area in the homepage.
Wherein, mobile terminal provides the method for homepage, can be identical as the aforementioned middle offer mode of first page, herein No longer repeat one by one.
For showing subpage frame, which may include that at least one in aforementioned is embedding for subpage frame display area Enter region corresponding to component.
Step 302, according to the instruction of the first subpage frame of load, the first subpage frame is generated.
Wherein, mobile terminal, can according to receiving the instruction of the first subpage frame of load and generating the mode of the first subpage frame It is identical in a manner of staying in the instruction of second page with aforementioned middle reception and generate second page, it no longer repeats one by one herein.
Step 303, first subpage frame is loaded in the subpage frame display area.
Wherein, the page layer of the first subpage frame can be added to insertion corresponding to subpage frame display area by mobile terminal In component.
In the embodiment of the present application, mobile terminal is capable of providing homepage, and in order to avoid that will own in single-page application Content to be shown is needed to be stored in the problems in page source file of single-page, mobile terminal can be with historically the first subpage The instruction in face generates the first subpage frame, the first subpage frame is loaded in the subpage frame display area of homepage, to reduce page Face volume and memory overhead, while decreasing and homepage is replaced with to the scintillation that another page may cause completely, it mentions High display effect.
It should be understood that the method and step in above-described embodiment is not each essential, Under specific situation, it is convenient to omit one or more of steps, as long as can be realized the technical purpose of page processing.This hair The quantity and its sequence of step in the bright embodiment not limited, protection scope of the present invention is worked as to be limited to claims It is quasi-.
The application is more fully understood for the ease of those skilled in the art, below by way of a specific example to the application A kind of page processing method of embodiment is illustrated:
Mobile terminal can show that the page is as shown in Figure 4, wherein homepage includes page navigation and subpage frame viewing area Domain, subpage frame display area can correspond to multiple embedded components, and embedded components are for loading corresponding subpage frame, in subpage frame not Including page navigation, but for showing content of pages.Mobile terminal can receive the predetermined registration operation of user by page navigation, To obtain the instruction of load subpage frame, corresponding subpage frame is shown in subpage frame display area, to realize the only switching page Purpose of the content without switching page navigation.As shown in figure 5, the corresponding button of subpage frame 1 is in selected in current page State, subpage frame display area show subpage frame 1, and the subpage frame further comprises and hiding (is in the page of subpage frame 1 Under layer) subpage frame 2, subpage frame 3 and subpage frame 4.
Alternatively, mobile terminal can show that the page is as shown in Figure 6 in the application an alternative embodiment, wherein Homepage only includes subpage frame display area, without including page navigation.
Multi-page is realized in the application program based on WEEX technological frame to mobile terminal through the foregoing embodiment The method of putting be illustrated, and due to during running the application program, between multiple pages of the application program (such as Between first page, second page in aforementioned and the third page or between homepage and subpage frame, subpage frame and subpage frame Between etc.) it may need to carry out data synchronization, therefore, once by other two embodiment to multiple pages of the application program Between carry out the synchronous mode of data and be illustrated.
Example IV
A kind of page processing method process according to the application one embodiment is shown, specific steps include:
Step S1 updates page shared data according to the content alteration of first page, and the page shared data is stored in The shared memory space of multi-page.
In order to realize that the data between multi-page are synchronous, so that it is guaranteed that application program can pass through multiple pages of user oriented exhibitions Show content of pages, makes full use of the advantage of multi-page in the Cross-border congestion management frame of the mobile terminals such as WEEX technological frame mobile terminal, subtract The higher problem of risk of few development cost and application program by single-page caused by, improves the effect of application program Rate, mobile terminal can be updated page shared data, according to the content alteration of first page consequently facilitating subsequent step It is middle that other pages are updated according to updated page shared data, achieve the purpose that multipage face data is synchronous.
Page shared data between the pages multiple in owning application by sharing, i.e., as multiple pages in the application program The global variable in face, to illustrate logging state (for example, logged in or be not logged in, listed username and password etc.), be directed to (number of reviews such as same commodity or same piece article thumbs up number to the statistical data or attribute information of some object Amount), certainly, in real-life program, which can also include sharing between other multiple pages of needs Information.Page shared data may include at least one key and corresponding key assignments, and key included by the page shared data can be with There is mobile terminal to be determined in advance, such as acquisition etc. from the configuration file about page shared data of the application program.Wherein, Key is Data Identification, is used for mark data, illustrates the function or purposes of data, and key assignments is the particular content of data, for example, with For face shared data includes username:asd001, username indicates that the key is user name, and asd001 indicates user It is entitled.
Mobile terminal can be interacted based on first page with user, including receive user operation instruction, if detecting Default alternative events, that is, can determine the content alteration of first page, to be updated to page shared data.
Wherein, default alternative events can be determined in advance by mobile terminal, for example, the application program belonged to by first page Developer default alternative events are set, and default alternative events are led to according to the function and application scene of the application program It crosses remote server and is handed down to the mobile terminal.
For example, the default alternative events may include log-in events, comment event, forwarding event, thumb up event, scoring thing Part etc..Wherein, when the register instruction for receiving user, the log-in events can be confirmly detected;When receiving user's Operational order is commented on, the comment event can be confirmly detected;When the forwarding operational order for receiving user, detection can be determined To the forwarding event;When receive user thumbs up operational order, this can be confirmly detected and thumb up event;When receiving user Scoring operational order, the scoring event can be confirmly detected;Certainly, in practical applications, default alternative events can root According to the function and application scene of application program, including more or fewer events.
Wherein, the shared memory space of multi-page can be distributed to obtain by mobile terminal, including (i.e. Local is locally stored ) or application cache Storage.
Step S2 updates the content of pages of second page according to the updated page shared data.
Since current page shared data has been updated, certain data in second page may be different with other pages It causes, it therefore, can be according to updated page shared data, to second page in order to synchronous to data are carried out between multiple pages The content of pages in face is updated.
Second page may include in applying go out first page except it is any needs with first page progress data it is synchronous The page.
Mobile terminal can obtain updated page shared data from the memory space that multi-page above-mentioned shares, from And according to the page shared data got, the content of pages of second page is updated.
Wherein, mobile terminal the content of pages of second page is updated may include to account logging state (for example, Logged in or be not logged in, listed username and password etc.) update or statistical data or attribute information to same target The update of (number of reviews or thumb up quantity) such as same commodity or same piece article in practical applications, moves certainly The content that dynamic terminal can also synchronize the needs of other types between multi-page is updated.
In the embodiment of the present application, the shared memory space of multi-page can store the shared number of the page of the application program According to, therefore the page shared data can be updated, and according to the content alteration of first page content according to updated Page shared data is updated the content of pages of second page, realizes that the data between multi-page are synchronous, it is ensured that application Program can make full use of the mobile terminals such as WEEX Cross-border congestion management frame reliably by multiple pages of user oriented displayed page contents The advantage of multi-page in frame, the risk of development cost and application program of the reduction by single-page caused by is higher to ask Topic, improves the efficiency of application program.
Embodiment five
A kind of page processing method process according to the application one embodiment is shown, specific steps include:
Step S1, mobile terminal start application program, register relevant interface.
It is updated, perceives the update and obtains the update for the ease of subsequent page page shared data, it is mobile whole End can carry out interface registration when starting application program.
Wherein, application program is the application program that first page or second page are belonged to.
Relevant interface may include at least one interface, generates page shared data for the page, is total to the existing page It enjoys data to be updated, perhaps obtain updated page shared data or determines whether page shared data has been updated And it is synchronous to need to carry out data.
WEEX technological frame is provided with JSService (i.e. subscription services, JS are the abbreviation of scripting language JavaScript) Interface, the JSService interface can be with the page instances in the application program based on WEEX technological frame in JS Runtime It is run parallel in (i.e. JavaScript running environment), it therefore, can be by the page by the variable that the JSService interface defines Example access, that is to say, multiple pages in the application program based on WEEX technological frame can perceive and get by The variable of JSService interface registration, to be updated to content of pages.Mobile terminal can be right when starting application program WEEX container (i.e. the environment of loading page in application program) is initialized, and WEEX SDK (Software is called Development Kit, Software Development Kit) carry out interface registration.
For example, the code for carrying out interface registration can be with if the operating system of mobile terminal is IOS (Apple Macintosh operating system) For " [WeexSDKEngine registerService:@" SERVICE_NAME " withScript:@" SERVICE_JS_ CODE"withOptions:@{}];".
In the examples described above, SERVICE_JS_CODE is the code for being used to register relevant interface, to enable the page The code is perceived and used, i.e., by registration to page exposure relevant interface, the page is carried out based on above-mentioned interface in order to subsequent Between data it is synchronous.
In the embodiment of the present application, optionally, page shared data is updated for the ease of the page, it is subsequent to ensure It is synchronous that data can be carried out to multi-page, when such applications are launched, interface can be written with log-on data in mobile terminal.
Wherein, data write-in interface for the page add new page shared data, to existing page shared data into Row updates, and executes above-mentioned addition in the page or update operation, i.e., total to the page is had subscribed when page shared data changes The other pages for enjoying data variation send event notice, so that other pages perceive current page shared data and have occurred and that Change, it is synchronous to need to carry out data.
In the embodiment of the present application, optionally, updated page shared data is got for the ease of the page, to ensure The subsequent data that can carry out to multi-page are synchronous, and when such applications are launched, mobile terminal can be obtained with log-on data and be connect Mouthful
Wherein, data acquisition interface obtains page shared data for the page.
It in the embodiment of the present application, optionally, can be in time in the page in order to ensure needing to carry out the synchronous page of data It is synchronous that data are carried out when shared data changes, and the synchronous reliability of data are carried out between the page to improve, described in starting When application program, mobile terminal can be with register update subscribing interface.
Wherein, it updates subscribing interface and is used for the shared data update event of page subscriptions page.If the page is ordered by the update It reads interface and has subscribed page shared data update event, then other pages are modified to page shared data, to the page Feedback event notice, makes the page determine that page shared data update event is triggered, carries out service logic by call back function Processing, it is synchronous to carry out data.
Page shared data update event for illustrating that current page shared data has changed, needed between the page into Row data are synchronous.Correspondingly, the event notice of page shared data update event is used for Notifications page current page shared data It has been changed that, that is, the page shared data update event occurs, it is synchronous that data can be carried out.
Step S2, the mobile terminal load first page in the application program.
Wherein, first page can be first page loading after application program launching.Mobile terminal can be answered at this After being started with program, first page is loaded automatically, it is of course also possible to be to load first page according to the instruction of load first page Face.
The instruction for loading first page can be default by executing clicking operation, slide or button operation etc. by user Operation triggering.Mobile terminal can provide the homepage including page navigation and subpage frame display area on startup, should Page navigation includes multiple switching entrances for being directed to the different pages respectively, which may include the mark such as button or icon Know, and a corresponding subpage frame (first page can be for one of subpage frame), is received when based on any switching entrance When the predetermined registration operation of aforementioned middle user, that is, the page load instruction received based on the page navigation is determined, thus in subpage frame Display area loads corresponding subpage frame.
Homepage and each subpage frame can respectively correspond a page instance.
Mobile terminal can be from locally or remotely server, data needed for obtaining load first page, such as first Corresponding page source file of the page etc., loads first page according to the data got, thus to user's displayed page Content.
Step S3, the mobile terminal initialize page shared data.
In order to ensure there are page shared datas to mention so as to access to page shared data in application cache Height carries out the synchronous reliability of the data between the page, it is ensured that the normal operation of application program, mobile terminal can be total to the page Data are enjoyed to be initialized.
Mobile terminal can obtain page shared data by the data acquisition interface in aforementioned from application cache, from And judge whether page shared data has been initialized according to the result of acquisition, if the data got are sky, it is determined that page Interface is written by the data in aforementioned in shared data current no initializtion in face, by the shared number of the page included by current page According to storing to application cache, initialization is completed, otherwise determines that the page shared data has initialized.
Certainly, it is determining that current page shared data is initialized, that is, is getting page shared data, mobile terminal The content of pages of current page, i.e. first page can be updated according to the page shared data of acquisition.
In the embodiment of the present application, optionally, since any page that application program can load may all be answered as this The page loaded for the first time after being started with program, such as mobile terminal load the page that other users share by the application program, So may not initialized at this time to page shared data, therefore, in order to further increase the number carried out between the page According to synchronous reliability, it is ensured that the normal operation of application program, mobile terminal is when opening any page by application program, all Page shared data can be initialized through the above steps.
In addition, in another alternative embodiment of the application, in order to improve the efficiency of page processing, can not also execute pair The step of page shared data is initialized, but changed in lower step according to content of pages, directly to the shared number of the page According to being stored.
Step S4, content alteration of the mobile terminal according to the first page update the page shared data, institute State the application cache that page shared data is stored in the application program of the first page ownership.
Wherein, mobile terminal is according to the content alteration of first page, can be with to the mode that page shared data is updated Referring to the associated description in aforementioned, no longer repeat one by one herein.
From the foregoing it will be appreciated that page shared data may include at least one key and corresponding key assignments, and some page Content alteration may make all or part of page shared data change, so mobile terminal can be according to first page Content alteration, the key assignments at least one key that page shared data includes is updated.
For example, application program is certain buyer's show application, user can be purchased by the user in application program show-and-tell The commodity bought.The application program includes two pages, wherein the page 1 is used to show the concise message of each commodity, such as the commodity Picture, the number of users liked and do not like the commodity etc.;The page 2 is used to show the details of commodity, such as the quotient The function and usage of product and businessman etc., and the page 2 further includes " liking " button for each commodity, user can be pressed by " liking " The indication of goods is to like by button, so that the number of users for liking the commodity be made to increase;Page shared data includes goods number With the number of users for liking the commodity, with page shared data be { a:1, b:2 } for, a:1 indicate commodity number be 1, b:2 Indicate that the number of users for liking the commodity is 2.If the user clicks " liking " button in the commodity that 2 pairs of page numbers are 2, move Dynamic terminal can carry out the number of users that the commodity that number is 2 are liked in page shared data according to the content alteration of the page 2 It updates, updated page shared data can be { a:1, b:3 }.
In the embodiment of the present application, optionally, it avoids and stores the page shared data to caused by being locally stored The problem of access is inconvenient and occupies compared with multi-system resource improves multi-page and carries out the synchronous efficiency of data, to improve the page The efficiency of processing, while the system resource of mobile terminal is also saved, improve the mobile terminal performance, the page shared data It is stored in the application cache of the application program of the first page ownership.
Wherein, when by be locally stored carry out data between multi-page it is synchronous when, by page shared data store to It before this is locally stored, needs to carry out serializing processing to the page shared data, when the page shared data being locally stored After update, needs to carry out cross-page face communication by broadcasting channel interface (i.e. BroadcastChannel API), be broadcast to each page Face, each page obtain updated page shared data from this storage, are total to including the page for obtaining and storing is locally stored from this When enjoying data, and unserializing processing is carried out to the data got, then according to the page shared data of acquisition to the page Content of pages be updated.Due to during access page shared data, carrying out at serializing and unserializing Reason causes the efficiency of access lower, it is difficult to adapt to the more frequent synchronisation requirement of multi-page, while the space being locally stored is logical It is often limited, the problem of may result in loss of data.
In the embodiment of the present application, optionally, mobile whole in order to improve the reliability being updated to page shared data End can call data that interface is written by the first page, update the shared number of the page according to the content of pages of change According to.
For example, it is aforementioned it is middle register data write-in interface as setStore, mobile terminal can by setStore (b: 3 }) b in page shared data { a:1, b:2 } is updated, thus obtain the updated page shared data a:1, b: 3}。
In the embodiment of the present application, optionally, in order to ensure other pages can perceive in time page shared data Through changing, so that the content of pages to the page is updated, it is mobile whole to carry out the real time data synchronization between the page End can call data that interface is written by the first page, send to the page of subscriptions page shared data renewal time Event notice.It certainly, may be currently other if first page is first page loaded after application program launching The page subscribes to the page shared data update event, it is possible to need not send event notice.
In the embodiment of the present application, optionally, in order to ensure first page can be by the page of first page and other pages Face data synchronizes, and is updated with the content to first page, improves and carries out the synchronous reliability of data between the page, moves Dynamic terminal can be called by first page updates subscribing interface, subscriptions page shared data update event.
Step S5, the mobile terminal load second page.
Wherein, mobile terminal records the mode of second page, can be identical as the load mode of first page, herein no longer It repeats one by one.
Certainly, mobile terminal, can also be by step same as before to the shared number of the page after loading second page According to being initialized, or page shared data is updated.
In the embodiment of the present application, optionally, change is had occurred and that in order to perceive page shared data, thus right The content of pages of the page is updated, and synchronous to carry out the data between the page, mobile terminal can pass through the second page Face, which is called, updates subscribing interface, subscribes to the page shared data update event.
Step S6, the acquisition for mobile terminal are directed to the page shared data update event of the second page.
Change is had occurred and that in order to perceive page shared data, so that the content of pages to the page carries out more Newly, it is synchronized with carrying out the data between the page, the available page shared data for second page of mobile terminal updates thing Part.
Wherein, mobile terminal can be come by way of aforementioned middle second page subscriptions page shared data update event The update event of page shared data is obtained, certainly, in practical applications, mobile terminal can also obtain the page otherwise Shared data event, for example, mobile terminal can obtain page shared data, and by second page bread at interval of preset duration The multiple keys and corresponding key assignments that the presence included includes with page shared data, the corresponding key assignments for including with page shared data It is compared, if there is the different key of key assignments, then can determine the page shared data update got for second page Event.
Preset duration can be determined in advance by mobile terminal, be determined for example, receiving the numerical value that user submits.
Mobile terminal can call data acquisition interface by second page, to acquire page shared data.
In the embodiment of the present application, optionally, from the foregoing it will be appreciated that being total to when interface is written by data in first page to the page When enjoying data and being updated, event notice can be sent to the page for having subscribed page shared data update event, therefore, in order to Enough perceive page shared data and have occurred and that change, so that the content of pages to the page is updated, with carry out the page it Between data it is synchronous, mobile terminal can be by the second page, and receive that data write-in interface sends is directed to the page The event of shared data update event notifies.
Step S7, the mobile terminal update in the page of second page according to the updated page shared data Hold.
Wherein, mobile terminal is updated the content of pages of second page according to updated page shared data Mode may refer to the associated description in aforementioned, no longer repeat one by one herein.
In the embodiment of the present application, optionally, from the foregoing it will be appreciated that the page shared data of application program can store and answer With in caching, therefore, in order to be accurately obtained page shared data, that is, the reliability for obtaining page shared data is improved, And then improve and carry out the synchronous reliability of data between multiple pages, after mobile terminal can obtain update from the application cache The page shared data content of pages of the second page is updated according to the updated page shared data.
Mobile terminal can detecte the key that second page and page shared data include jointly, and the key that will test is second The key assignments of the page replaces with key assignments of the key in page shared data.
For example, acquisition for mobile terminal includes { a:1, b:3, c:4 } to page shared data, and the key that second page includes is The key assignments of a in second page is updated to 1 by a and b, therefore, mobile terminal, and the key assignments of b is updated to 3.
In the embodiment of the present application, optionally, it in order to be accurately obtained page shared data, that is, improves and obtains the page The reliability of shared data, and then improve and carry out the synchronous reliability of data between multiple pages, mobile terminal can pass through institute It states second page and calls data acquisition interface, obtain the updated page shared data from the application cache.
For example, the aforementioned middle data acquisition interface registered is getStore, mobile terminal can be obtained by getStore () Getting page shared data is { a:1, b:3, c:4 }.
In the embodiment of the present application, it is possible, firstly, to store the page shared data of the application program, mobile terminal being capable of root According to the content alteration of first page content, which is updated, and according to updated page shared data The content of pages of second page is updated, realizes that the data between multi-page are synchronous, it is ensured that application program can be reliable Ground makes full use of multi-page in the Cross-border congestion management frame of the mobile terminals such as WEEX by multiple pages of user oriented displayed page contents Advantage reduces the higher problem of risk of the development cost and application program caused by being applied by single-page, improves and applies journey The efficiency of sequence.
Secondly, mobile terminal can register the relevant interface for carrying out that data are synchronous between the page when starting application program, Including data write-in interface, data acquisition interface and update subscribing interface, it is ensured that mobile terminal can be by the page from data Write-in interface is updated the page shared data in application cache, perceives other pages to the page based on update subscribing interface The update of face shared data and updated page shared data is obtained to the content of pages of the page from data acquisition interface It is updated, improves and carry out the synchronous reliability of data in the application program between multi-page.
In addition, mobile terminal after loading page, can initialize page shared data, including judgement is current Whether the page shared data initializes, and initializes when determining no initializtion to the page shared data, further It ensures, there are available page shared data, to improve in application cache and carries out the synchronous reliability of data between the page.
It should be understood that the method and step in above-described embodiment is not each essential, Under specific situation, it is convenient to omit one or more of steps, as long as can be realized page processing to carry out between the page The synchronous technical purpose of data.The quantity and its sequence of step, protection of the invention in the embodiment that the present invention does not limit Range is when being subject to the restriction of claims.
The application is more fully understood for the ease of those skilled in the art, below by way of a specific example to the application The registration relevant interface of embodiment and interface based on registration carry out the method that data are synchronous between the page and are illustrated, specifically Include the following:
Firstly, showing a kind of method flow by application program registration interface according to the application one embodiment. In step sl, mobile terminal starts application program;In step s 2, which initializes WEEX container;? In step S3, which is called by native (a kind of computer function, for calling the service in WEEX SDK) JSService;In step s 4, interface registration is carried out by JSService, to become to the exposure of the page of the application program is global (i.e. page shared data) and management interface are measured, is ordered including data write-in interface, data acquisition interface and the update in aforementioned Read interface;In step s 5, interface registration is completed, obtains that setStore (data write-in interface), (data acquisition connects getStore Mouthful) and subscribe (updating subscribing interface);In step 306, mobile terminal carries out page initialization;In the step s 7, it registers Interface terminates, and the page in the application can be by the relevant interface of above-mentioned registration, to the global variable of the application program at this time It is managed.
The synchronous method flow of data is carried out between a kind of page according to the application one embodiment secondly, showing Figure.In step sl, mobile terminal starts application program;In step s 2, the empty global variable of mobile terminal creation, to this Page exposure relevant interface in application program, including setStore, getStore and subscribe;In step s3, the shifting Dynamic terminal loads homepage in the application program;In step s 4, the mobile terminal is by homepage to the overall situation of the application program Variable is initialized, and is updated by setStore to page variable, is subscribed to event by subscribe, is monitored Whether global variable changes;In step s 5, mobile terminal loading page A in the application program, can hold later Global variable is initialized by row step S6 and S7, also directly executes step S8 certainly;In step s 6, which sentences Whether disconnected global variable has initialized, and thens follow the steps S7 if not, if it is thening follow the steps S8;In the step s 7, the shifting Dynamic terminal initializes global variable by page A;In step s 8, which obtains global become by page A Amount monitors whether global variable changes;In step s 9, content alteration of the mobile terminal based on page A, passes through SetStore is updated global variable;In step slo, it moves terminal and update event is distributed by page A, i.e., to having subscribed to The page of update event sends event notice;In step s 11, the pages such as homepage listen to the update event and carry out related place Reason, including the variation according to global variable, is updated content of pages.
Embodiment six
Referring to Fig. 7, a kind of structural block diagram of Page handling device according to the application one embodiment, the page are shown Processing unit includes:
First page provides module 701, for providing first page;
Second page generation module 702 generates the second page for the instruction according to load second page;
Second page loading module 703, for loading the second page in the page framework of the first page.
Optionally, the second page loading module includes:
Second page surface layer loads submodule, described for loading for generating in the page source file of the first page The second page surface layer of second page, and the second page surface layer is set and is located on the first page surface layer of the first page;
First page source file loads submodule, for reloading the corresponding page source file of the first page.
Optionally, the page source file of the first page is preset at least one embedded components, the embedded components pair The display position answered is arranged on the first page surface layer of the first page;
The second page surface layer load submodule is also used to:
The second page surface layer is added in the embedded components of page source file of the first page.
Optionally, the second page loading module includes:
Submodule, the corresponding display parameters of frame for the embedded components to be arranged, so that described are arranged in display parameters The frame of embedded components is not show state.
Optionally, the second page loading module includes:
Content of pages replaces submodule, and the page of the first page is replaced for the content of pages using the second page The content of pages of first page in the source file of face;
Second page source file loads submodule, for reloading the corresponding page source file of the first page.
It optionally, further include target element in the content of the first page;
The second page loading module includes:
Second page loads submodule, adds for the page area in the first page in addition to the target element Carry the second page.
Optionally, the target element includes page navigation component;
The instruction of the load second page includes the page switching instruction based on the page navigation component.
Optionally, the first page offer module includes:
First page acquisition submodule, for obtaining the first page, the first page when starting application program Including page framework;
The third page generates submodule, for generating the third page;
The third page loads submodule, for loading the third page in the page framework of the first page.
In the embodiment of the present application, mobile terminal is capable of providing first page, and in order to avoid in single-page application by institute The content of display in need is stored in the problems in page source file of single-page, and mobile terminal can historically second page The instruction in face generates second page, loads second page in the page framework of first page, thus reduce page volume and Memory overhead, while decreasing and first page is replaced with to the scintillation that second page may cause completely, it improves aobvious Show effect.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
Embodiment seven
Referring to Fig. 8, a kind of structural block diagram of Page handling device according to the application one embodiment, the page are shown Processing unit includes:
Homepage provides module 801, includes subpage frame display area in the homepage for providing homepage;
First subpage frame generation module 802 generates the first subpage frame for the instruction according to the first subpage frame of load;
First subpage frame loading module 803, for loading first subpage frame in the subpage frame display area.
In the embodiment of the present application, mobile terminal is capable of providing homepage, and in order to avoid that will own in single-page application Content to be shown is needed to be stored in the problems in page source file of single-page, mobile terminal can be with historically the first subpage The instruction in face generates the first subpage frame, the first subpage frame is loaded in the subpage frame display area of homepage, to reduce page Face volume and memory overhead, while decreasing and homepage is replaced with to the scintillation that another page may cause completely, it mentions High display effect.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
The embodiment of the present application can be implemented as using any suitable hardware, firmware, software, or and any combination thereof progress The system of desired configuration.Fig. 9 schematically shows the example that can be used for realizing each embodiment described herein Property system (or device) 900.
For one embodiment, Fig. 9 shows exemplary system 900, the system have one or more processors 902, It is coupled to the system control module (chipset) 904 of at least one of (one or more) processor 902, is coupled to and be The system storage 906 for control module 904 of uniting is coupled to the nonvolatile memory (NVM) of system control module 904/deposit Storage equipment 908 is coupled to one or more input-output apparatus 910 of system control module 904, and is coupled to and is The network interface 912 for control module 906 of uniting.
Processor 902 may include one or more single or multiple core processors, processor 902 may include general processor or Any combination of application specific processor (such as graphics processor, application processor, Baseband processor etc.).In some embodiments, System 900 can be handled as the page described in the embodiment of the present application.
In some embodiments, system 900 may include with instruction one or more computer-readable mediums (for example, System storage 906 or NVM/ store equipment 908) and mutually merge with the one or more computer-readable medium and be configured as Execute instruction the one or more processors 902 to realize module thereby executing movement described herein.
For one embodiment, system control module 904 may include any suitable interface controller, with to (one or It is multiple) at least one of processor 902 and/or any suitable equipment or component that communicate with system control module 904 mentions For any suitable interface.
System control module 904 may include Memory Controller module, to provide interface to system storage 906.Storage Device controller module can be hardware module, software module and/or firmware module.
System storage 906 can be used for for example, load of system 900 and storing data and/or instruction.For a reality Example is applied, system storage 906 may include any suitable volatile memory, for example, DRAM appropriate.In some embodiments In, system storage 906 may include four Synchronous Dynamic Random Access Memory of Double Data Rate type (DDR4SDRAM).
For one embodiment, system control module 904 may include one or more i/o controllers, with to NVM/ stores equipment 908 and (one or more) input-output apparatus 910 provides interface.
For example, NVM/ storage equipment 908 can be used for storing data and/or instruction.NVM/ storage equipment 908 may include appointing It anticipates nonvolatile memory appropriate (for example, flash memory) and/or to may include that any suitable (one or more) is non-volatile deposit Equipment is stored up (for example, one or more hard disk drives (HDD), one or more CD (CD) drivers and/or one or more Digital versatile disc (DVD) driver).
NVM/ storage equipment 908 may include a part for the equipment being physically mounted on as system 900 Storage resource or its can by the equipment access without a part as the equipment.For example, NVM/ storage equipment 908 can It is accessed by network via (one or more) input-output apparatus 910.
(one or more) input-output apparatus 910 can be provided for system 900 interface with other any equipment appropriate Communication, input-output apparatus 910 may include communication component, audio component, sensor module etc..Network interface 912 can be System 900 provides interfaces with by one or more network communications, system 900 can according to one or more wireless network standards and/ Or arbitrary standards in agreement and/or agreement are carried out wireless communication with the one or more components of wireless network, such as are accessed Wireless network based on communication standard, such as WiFi, 2G or 3G or their combination carry out wireless communication.
For one embodiment, at least one of (one or more) processor 902 can be with system control module 904 The logic of one or more controllers (for example, Memory Controller module) is packaged together.For one embodiment, (one Or multiple) at least one of processor 902 can be encapsulated in the logic of one or more controllers of system control module 904 Together to form system in package (SiP).For one embodiment, at least one of (one or more) processor 902 can It is integrated on same mold with the logic of one or more controllers of system control module 904.For one embodiment, (one It is a or multiple) at least one of processor 902 can be integrated with the logic of one or more controllers of system control module 904 To form system on chip (SoC) on same mold.
In various embodiments, system 900 can be, but not limited to be: work station, desk-top calculating equipment or mobile computing are set Standby (for example, lap-top computing devices, handheld computing device, tablet computer, net book etc.).In various embodiments, system 900 Can have more or fewer components and/or different frameworks.For example, in some embodiments, system 900 includes one or more A video camera, keyboard, liquid crystal display (LCD) screen (including touch screen displays), nonvolatile memory port, Duo Getian Line, graphic chips, specific integrated circuit (ASIC) and loudspeaker.
Wherein, if display includes touch panel, display screen may be implemented as touch screen displays, be used by oneself with receiving The input signal at family.Touch panel includes one or more touch sensors to sense the hand on touch, slide, and touch panel Gesture.The touch sensor can not only sense the boundary of a touch or slide action, but also detect and the touch or sliding Operate relevant duration and pressure.
The embodiment of the present application also provides a kind of non-volatile readable storage medium, be stored in the storage medium one or Multiple modules (programs) when the one or more module is used in terminal device, can make the terminal device execute The instruction (instructions) of various method steps in the embodiment of the present application.
A kind of device is provided in one example, comprising: one or more processors;With what is stored thereon has instruction One or more machine readable medias, when by one or more of processors execute when so that described device execute as this Apply for the method for mobile terminal execution in embodiment.
Additionally provide one or more machine readable medias in one example, be stored thereon with instruction, when by one or When multiple processors execute, so that device executes the method such as mobile terminal execution in the embodiment of the present application.
The embodiment of the present application discloses a kind of page processing method and device.
Example 1, a kind of page processing method, comprising:
First page is provided;
According to the instruction of load second page, the second page is generated;
The second page is loaded in the page framework of the first page.
Example 2 may include method described in example 1, described that described second is loaded in the page framework of the first page The page includes:
It generates in the page source file of the first page for loading the second page surface layer of the second page, and sets The second page surface layer is set to be located on the first page surface layer of the first page;
Reload the corresponding page source file of the first page.
Example 3 may include method described in example 2, and the page source file of the first page is preset at least one insertion Component, the corresponding display position of the embedded components are arranged on the first page surface layer of the first page;
The setting second page surface layer, which is located on the first page surface layer of the first page, includes:
The second page surface layer is added in the embedded components of page source file of the first page.
Example 4 may include method described in example 3, described that described second is loaded in the page framework of the first page The page further include:
The corresponding display parameters of frame of the embedded components are set, so that the frame of the embedded components is not show shape State.
Example 5 may include method described in example 1, described that described second is loaded in the page framework of the first page The page includes:
The page of first page in the page source file of the first page is replaced using the content of pages of the second page Face content;
Reload the corresponding page source file of the first page.
Example 6 may include method described in example 1, further include target element in the content of the first page;
It is described to load the second page in the page framework of the first page and include:
Page area in the first page in addition to the target element loads the second page.
Example 7 may include method described in example 6, and the target element includes page navigation component;
The instruction of the load second page includes the page switching instruction based on the page navigation component.
Example 8 may include method described in example 1, and the offer first page includes:
When starting application program, the first page is obtained, the first page includes page framework;
Generate the third page;
The third page is loaded in the page framework of the first page.
Example 9, a kind of page processing method, comprising:
Homepage is provided, includes subpage frame display area in the homepage;
According to the instruction of the first subpage frame of load, the first subpage frame is generated;
First subpage frame is loaded in the subpage frame display area.
Example 10, a kind of Page handling device, comprising:
First page provides module, for providing first page;
Second page generation module generates the second page for the instruction according to load second page;
Second page loading module, for loading the second page in the page framework of the first page.
Example 11 may include device described in example 10, and the second page loading module includes:
Second page surface layer loads submodule, described for loading for generating in the page source file of the first page The second page surface layer of second page, and the second page surface layer is set and is located on the first page surface layer of the first page;
First page source file loads submodule, for reloading the corresponding page source file of the first page.
Example 12 may include device described in example 11, and it is embedding that the page source file of the first page is preset at least one Enter component, the corresponding display position of the embedded components is arranged on the first page surface layer of the first page;
The second page surface layer load submodule is also used to:
The second page surface layer is added in the embedded components of page source file of the first page.
Example 13 may include device described in example 12, and the second page loading module includes:
Submodule, the corresponding display parameters of frame for the embedded components to be arranged, so that described are arranged in display parameters The frame of embedded components is not show state.
Example 14 may include device described in example 10, further include target element in the content of the first page;
The second page loading module includes:
Second page loads submodule, adds for the page area in the first page in addition to the target element Carry the second page.
Example 15 may include device described in example 14, and the target element includes page navigation component;
The instruction of the load second page includes the page switching instruction based on the page navigation component.
Example 16, a kind of Page handling device, comprising:
Homepage provides module, includes subpage frame display area in the homepage for providing homepage;
First subpage frame generation module generates the first subpage frame for the instruction according to the first subpage frame of load;
First subpage frame loading module, for loading first subpage frame in the subpage frame display area.
Example 17, a kind of device, comprising: one or more processors;What is stored thereon has the one or more of instruction Machine readable media, when being executed by one or more of processors, so that described device executes such as claim example 1- The one or more method of example 9.
Example 18, one or more machine readable media, are stored thereon with instruction, when being performed by one or more processors When, so that device executes as one or more methods such as claim example 1- example 9.
Although some embodiments are various substitutions, and/or equivalent implementation for the purpose of illustrating and describing Scheme calculates to reach same purpose and implement the realization for exemplifying and describing, and does not depart from the practical range of the application.This Shen It please be intended to cover any modification or variation of the embodiment being discussed herein.It is, therefore, apparent that embodiment described herein only by right It is required that being limited with their equivalent.

Claims (18)

1. a kind of page processing method characterized by comprising
First page is provided;
According to the instruction of load second page, the second page is generated;
The second page is loaded in the page framework of the first page.
2. the method according to claim 1, wherein described load institute in the page framework of the first page Stating second page includes:
It generates in the page source file of the first page for loading the second page surface layer of the second page, and institute is set Second page surface layer is stated to be located on the first page surface layer of the first page;
Reload the corresponding page source file of the first page.
3. according to the method described in claim 2, it is characterized in that, the page source file of the first page is preset at least one A embedded components, the corresponding display position of the embedded components are arranged on the first page surface layer of the first page;
The setting second page surface layer, which is located on the first page surface layer of the first page, includes:
The second page surface layer is added in the embedded components of page source file of the first page.
4. according to the method described in claim 3, it is characterized in that, described load institute in the page framework of the first page State second page further include:
The corresponding display parameters of frame of the embedded components are set, so that the frame of the embedded components is not show state.
5. the method according to claim 1, wherein described load institute in the page framework of the first page Stating second page includes:
It is replaced in the page source file of the first page in the page of first page using the content of pages of the second page Hold;
Reload the corresponding page source file of the first page.
6. the method according to claim 1, wherein further including target element in the content of the first page;
It is described to load the second page in the page framework of the first page and include:
Page area in the first page in addition to the target element loads the second page.
7. according to the method described in claim 6, it is characterized in that, the target element includes page navigation component;
The instruction of the load second page includes the page switching instruction based on the page navigation component.
8. the method according to claim 1, wherein the offer first page includes:
When starting application program, the first page is obtained, the first page includes page framework;
Generate the third page;
The third page is loaded in the page framework of the first page.
9. a kind of page processing method characterized by comprising
Homepage is provided, includes subpage frame display area in the homepage;
According to the instruction of the first subpage frame of load, the first subpage frame is generated;
First subpage frame is loaded in the subpage frame display area.
10. a kind of Page handling device characterized by comprising
First page provides module, for providing first page;
Second page generation module generates the second page for the instruction according to load second page;
Second page loading module, for loading the second page in the page framework of the first page.
11. device according to claim 10, which is characterized in that the second page loading module includes:
Second page surface layer loads submodule, for generating in the page source file of the first page for loading described second The second page surface layer of the page, and the second page surface layer is set and is located on the first page surface layer of the first page;
First page source file loads submodule, for reloading the corresponding page source file of the first page.
12. device according to claim 11, which is characterized in that the page source file of the first page is preset at least One embedded components, the corresponding display position of the embedded components are arranged on the first page surface layer of the first page;
The second page surface layer load submodule is also used to:
The second page surface layer is added in the embedded components of page source file of the first page.
13. device according to claim 12, which is characterized in that the second page loading module includes:
Submodule, the corresponding display parameters of frame for the embedded components to be arranged, so that the insertion are arranged in display parameters The frame of component is not show state.
14. device according to claim 10, which is characterized in that further include target group in the content of the first page Part;
The second page loading module includes:
Second page loads submodule, loads institute for the page area in the first page in addition to the target element State second page.
15. device according to claim 14, which is characterized in that the target element includes page navigation component;
The instruction of the load second page includes the page switching instruction based on the page navigation component.
16. a kind of Page handling device characterized by comprising
Homepage provides module, includes subpage frame display area in the homepage for providing homepage;
First subpage frame generation module generates the first subpage frame for the instruction according to the first subpage frame of load;
First subpage frame loading module, for loading first subpage frame in the subpage frame display area.
17. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor is realized when executing the computer program as claim 1-9 is one or more Method.
18. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The method such as claim 1-9 one or more is realized when being executed by processor.
CN201711192281.5A 2017-11-24 2017-11-24 Page processing method and mobile terminal Pending CN109840114A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711192281.5A CN109840114A (en) 2017-11-24 2017-11-24 Page processing method and mobile terminal
PCT/CN2018/115384 WO2019100985A1 (en) 2017-11-24 2018-11-14 Page processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711192281.5A CN109840114A (en) 2017-11-24 2017-11-24 Page processing method and mobile terminal

Publications (1)

Publication Number Publication Date
CN109840114A true CN109840114A (en) 2019-06-04

Family

ID=66630885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711192281.5A Pending CN109840114A (en) 2017-11-24 2017-11-24 Page processing method and mobile terminal

Country Status (2)

Country Link
CN (1) CN109840114A (en)
WO (1) WO2019100985A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110619096A (en) * 2019-06-12 2019-12-27 北京无限光场科技有限公司 Method and apparatus for synchronizing data
CN110909278A (en) * 2019-11-07 2020-03-24 北京浪潮数据技术有限公司 Page loading method, system, equipment and readable storage medium
CN111581561A (en) * 2020-04-29 2020-08-25 北京达佳互联信息技术有限公司 Page display control method and device, client and storage medium
CN112784201A (en) * 2021-01-29 2021-05-11 游艺星际(北京)科技有限公司 Webpage display method, device, terminal and storage medium
CN113312119A (en) * 2021-06-04 2021-08-27 广州博冠信息科技有限公司 Information synchronization method and device, computer readable storage medium and electronic equipment
CN113378085A (en) * 2021-05-31 2021-09-10 游艺星际(北京)科技有限公司 Page loading method, device, terminal and storage medium
CN113504927A (en) * 2021-07-26 2021-10-15 平安普惠企业管理有限公司 Method, device, equipment and storage medium for updating user information
CN114139072A (en) * 2021-10-29 2022-03-04 北京达佳互联信息技术有限公司 Page data processing method and device, electronic equipment and storage medium
CN114138393A (en) * 2021-11-30 2022-03-04 中国工商银行股份有限公司 Business data entry method and device
CN115237502A (en) * 2022-07-30 2022-10-25 郭富声 Method for loading animation and preventing frequent flicker
CN117172216A (en) * 2023-09-18 2023-12-05 上海鸿翼软件技术股份有限公司 Document processing method, device, medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1643510A (en) * 2002-03-28 2005-07-20 国际商业机器公司 System and method for hierarchical layout specialization
CN103365855A (en) * 2012-03-28 2013-10-23 腾讯科技(深圳)有限公司 Method and server for generating web pages
CN104301379A (en) * 2014-08-28 2015-01-21 北京奇虎科技有限公司 Web page cross-domain communication method and device
CN105491129A (en) * 2015-12-07 2016-04-13 天津车之家科技有限公司 Page loading progress display method and device and mobile terminal
CN105677658A (en) * 2014-11-19 2016-06-15 阿里巴巴集团控股有限公司 Page display method and device
CN105760527A (en) * 2016-03-02 2016-07-13 百度在线网络技术(北京)有限公司 Method and device for displaying third-party page
CN106294379A (en) * 2015-05-18 2017-01-04 阿里巴巴集团控股有限公司 The loading method of a kind of page, device and system
CN106547844A (en) * 2016-10-17 2017-03-29 腾讯科技(深圳)有限公司 A kind for the treatment of method and apparatus of user interface

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1643510A (en) * 2002-03-28 2005-07-20 国际商业机器公司 System and method for hierarchical layout specialization
CN103365855A (en) * 2012-03-28 2013-10-23 腾讯科技(深圳)有限公司 Method and server for generating web pages
CN104301379A (en) * 2014-08-28 2015-01-21 北京奇虎科技有限公司 Web page cross-domain communication method and device
CN105677658A (en) * 2014-11-19 2016-06-15 阿里巴巴集团控股有限公司 Page display method and device
CN106294379A (en) * 2015-05-18 2017-01-04 阿里巴巴集团控股有限公司 The loading method of a kind of page, device and system
CN105491129A (en) * 2015-12-07 2016-04-13 天津车之家科技有限公司 Page loading progress display method and device and mobile terminal
CN105760527A (en) * 2016-03-02 2016-07-13 百度在线网络技术(北京)有限公司 Method and device for displaying third-party page
CN106547844A (en) * 2016-10-17 2017-03-29 腾讯科技(深圳)有限公司 A kind for the treatment of method and apparatus of user interface

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110619096A (en) * 2019-06-12 2019-12-27 北京无限光场科技有限公司 Method and apparatus for synchronizing data
CN110909278A (en) * 2019-11-07 2020-03-24 北京浪潮数据技术有限公司 Page loading method, system, equipment and readable storage medium
CN111581561A (en) * 2020-04-29 2020-08-25 北京达佳互联信息技术有限公司 Page display control method and device, client and storage medium
CN112784201A (en) * 2021-01-29 2021-05-11 游艺星际(北京)科技有限公司 Webpage display method, device, terminal and storage medium
CN112784201B (en) * 2021-01-29 2024-05-14 游艺星际(北京)科技有限公司 Webpage display method, device, terminal and storage medium
CN113378085B (en) * 2021-05-31 2023-11-14 游艺星际(北京)科技有限公司 Page loading method, device, terminal and storage medium
CN113378085A (en) * 2021-05-31 2021-09-10 游艺星际(北京)科技有限公司 Page loading method, device, terminal and storage medium
CN113312119A (en) * 2021-06-04 2021-08-27 广州博冠信息科技有限公司 Information synchronization method and device, computer readable storage medium and electronic equipment
CN113312119B (en) * 2021-06-04 2024-03-15 广州博冠信息科技有限公司 Information synchronization method and device, computer readable storage medium and electronic equipment
CN113504927A (en) * 2021-07-26 2021-10-15 平安普惠企业管理有限公司 Method, device, equipment and storage medium for updating user information
CN114139072A (en) * 2021-10-29 2022-03-04 北京达佳互联信息技术有限公司 Page data processing method and device, electronic equipment and storage medium
CN114138393A (en) * 2021-11-30 2022-03-04 中国工商银行股份有限公司 Business data entry method and device
CN114138393B (en) * 2021-11-30 2024-06-11 中国工商银行股份有限公司 Service data input method and device
CN115237502B (en) * 2022-07-30 2023-08-29 中邮消费金融有限公司 Method for loading animation to prevent frequent flicker
CN115237502A (en) * 2022-07-30 2022-10-25 郭富声 Method for loading animation and preventing frequent flicker
CN117172216A (en) * 2023-09-18 2023-12-05 上海鸿翼软件技术股份有限公司 Document processing method, device, medium and electronic equipment

Also Published As

Publication number Publication date
WO2019100985A1 (en) 2019-05-31

Similar Documents

Publication Publication Date Title
CN109840114A (en) Page processing method and mobile terminal
CN110019464A (en) Page processing method and device
JP6479142B2 (en) Image identification and organization according to layout without user intervention
US20210019946A1 (en) System and method for augmented reality scenes
US10061552B2 (en) Identifying the positioning in a multiple display grid
WO2018126957A1 (en) Method for displaying virtual reality screen and virtual reality device
CN110399064A (en) Switching method and apparatus, storage medium and the electronic device of display interface
CN105027563A (en) Low latency image display on a multi-display device
CN110347472A (en) Expansible application expression, activity level and desktop indicate
CN106598514B (en) Method and system for switching virtual reality mode in terminal equipment
CN112947969B (en) Page off-screen rendering method, device, equipment and readable medium
CN110769300B (en) Method and equipment for presenting horizontal screen video in information stream
US20150193185A1 (en) Data processing method and electronic device
CN103425481A (en) Dynamically assigning shortcuts to menu items and actions
JP2010178331A (en) Dynamic geometry management of virtual frame buffer for appendable logical display
KR20240025543A (en) Interaction methods and apparatus, electronic devices and storage media
CN106233243A (en) Many frameworks manager
CN104471526A (en) Implementing previously rendered frame buffer information in a customized gui display
CN107608730A (en) A kind of application content loading method and device
CN107943442A (en) A kind of method and apparatus for realizing shuangping san
CN109976605B (en) Class board content display method, device and storage medium
CN107707980A (en) Play page layering system, specify extended method, medium and the equipment of player
US20160283739A1 (en) System and method for creating and transitioning to multiple facets of a social media object in a social network
CN103793148B (en) Content management system and method
CN114398018B (en) Picture display method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190604