CN107450912A - Layout method, device and the terminal of the page - Google Patents

Layout method, device and the terminal of the page Download PDF

Info

Publication number
CN107450912A
CN107450912A CN201710552954.7A CN201710552954A CN107450912A CN 107450912 A CN107450912 A CN 107450912A CN 201710552954 A CN201710552954 A CN 201710552954A CN 107450912 A CN107450912 A CN 107450912A
Authority
CN
China
Prior art keywords
page
layout
data
target data
layout pattern
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.)
Granted
Application number
CN201710552954.7A
Other languages
Chinese (zh)
Other versions
CN107450912B (en
Inventor
吴华
董永清
董红光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710552954.7A priority Critical patent/CN107450912B/en
Publication of CN107450912A publication Critical patent/CN107450912A/en
Application granted granted Critical
Publication of CN107450912B publication Critical patent/CN107450912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • 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/451Execution arrangements for user interfaces

Abstract

The disclosure provides a kind of layout method of the page, device and terminal, and an embodiment of methods described includes:Obtain the page layout model pre-established;Former page data is handled to obtain intermediate data using the page layout model;The intermediate data is resolved to goal approach layer, to obtain target data;Page layout is carried out based on the target data.The embodiment is as a result of the page layout model pre-established so that before and after compiling, layout type will not change former page data, so as to solve the problems, such as that the layout that the page is shown is inconsistent with original layout, improve the display effect of the page.

Description

Layout method, device and the terminal of the page
Technical field
This disclosure relates to computer software technical field, the more particularly to a kind of layout method of the page, device and terminal.
Background technology
When application program is run on the terminal device, it may be necessary to draw the page, and exported by user interface to user The page of drafting, drawing the page needs to be laid out the page.For at present, former page data is directly usually compiled into mesh On mark method layer, and page layout is carried out according to the target data being compiled on goal approach layer.But before and after compiling, certain A little layout type may change, and the problem of so as to cause layout and inconsistent original layout that the page show, have impact on The display effect of the page.
The content of the invention
In order to solve the above-mentioned technical problem, the disclosure provides a kind of layout method of the page, device and terminal.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of layout method of the page, including:
Obtain the page layout model pre-established;
Former page data is handled to obtain intermediate data using the page layout model;
The intermediate data is resolved to goal approach layer, to obtain target data;
Page layout is carried out based on the target data.
Optionally, it is described that page layout is carried out based on the target data, including:
Obtain the layout pattern storehouse to prestore;
The layout pattern information of matching is searched from the layout pattern storehouse based on the target data;
Page layout is carried out based on the layout pattern information.
Optionally, the layout pattern storehouse includes style information corresponding to customized layout pattern.
Optionally, the layout pattern storehouse includes following one or more:
Style information;
Module information;
The data of parsing compiling top layer pattern.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of placement device of the page, including:
Acquisition module, it is configured as obtaining the page layout model pre-established;
Processing module, it is configured as that former page data is handled to obtain mediant using the page layout model According to;
Parsing module, it is configured as the intermediate data being resolved to goal approach layer, to obtain target data;
Layout modules, it is configured as carrying out page layout based on the target data.
Optionally, the layout modules include:
Acquisition submodule, it is configured as obtaining the layout pattern storehouse to prestore;
Submodule is searched, is configured as searching the layout sample of matching from the layout pattern storehouse based on the target data Formula information;
Submodule is laid out, is configured as carrying out page layout based on the layout pattern information.
Optionally, the layout pattern storehouse includes style information corresponding to customized layout pattern.
Optionally, the layout pattern storehouse includes following one or more:
Style information;
Module information;
The data of parsing compiling top layer pattern.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of terminal, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Obtain the page layout model pre-established;
Former page data is handled to obtain intermediate data using the page layout model;
The intermediate data is resolved to goal approach layer, to obtain target data;
Page layout is carried out based on the target data.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, it is described computer-readable At least one instruction is stored with storage medium, the instruction is loaded by processor and performed to realize such as first aspect or first Performed operation in the layout method of the page described in any possible implementation of aspect.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The layout method for the page that embodiment of the disclosure provides, by obtaining the page layout model pre-established, adopt Former page data is handled to obtain intermediate data with the page layout model, the intermediate data is resolved to goal approach Layer, so as to obtain target data, and page layout is carried out based on the target data.As a result of the page layout pre-established Model so that before and after compiling, layout type will not change former page data, so as to solve layout that the page shows with The problem of original layout is inconsistent, improve the display effect of the page.
The layout method for the page that embodiment of the disclosure provides, by obtaining the page layout model pre-established, adopt Former page data is handled to obtain intermediate data with page layout model, intermediate data is resolved to goal approach layer, with Target data is obtained, obtains the layout pattern storehouse to prestore, searches the layout sample of matching from layout pattern storehouse based on target data Formula information, and page layout is carried out based on layout pattern information.As a result of the page layout model pre-established and in advance The layout pattern storehouse deposited so that before and after compiling, layout type will not change page data, so as to further solve page The problem of layout that face is shown and inconsistent original layout, it is favorably improved the display effect of the page.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of the layout method of the page of the disclosure according to an exemplary embodiment;
Fig. 2 is the flow chart of the layout method of another page of the disclosure according to an exemplary embodiment;
Fig. 3 is a kind of block diagram of the placement device of the page of the disclosure according to an exemplary embodiment;
Fig. 4 is the block diagram of the placement device of another page of the disclosure according to an exemplary embodiment;
Fig. 5 is an a kind of structural representation of the placement device of the page of the disclosure according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
It is only merely for the purpose of description specific embodiment in the term that the disclosure uses, and is not intended to be limiting the disclosure. " one kind " of singulative used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wrapped Containing the associated list items purpose of one or more, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, do not departing from In the case of disclosure scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining ".
The technical scheme in the disclosure is more fully understood for the ease of those skilled in the art, first, the disclosure is answered It is briefly described, is described as follows with background:In order to increase the convenience of developer's development and application program, and increase application The flexibility of program, portability etc..At present under many operating system platforms, support using the page under non-self platform Describing mode carries out the exploitation of the application program page.For example, developer can be based on A page-describing mode development and application program pages Face (or even mixed developing mode using A page-describing mode+B page-describing modes), obtains former page data, this applies journey When sequence is run under destination OS platform, B pages supported under the operating system platform is resolved to by intermediate tool Face describing mode, so as to carry out the drafting of the page and render.
For example, in current android system, application program can typically be exported by the primary native pages Information, and due to some business and the needs of flexibility, it is also necessary to export the information of web page.Therefore, put down in Android Under platform, the page of many application programs is developed using hybrid technologies, still, the wash with watercolours of web page under Android platform Contaminate no native pages renders smoothness, can influence the page display effect of application program, thus is needed before being rendered Web page data are converted to based on the native pages under Android.However, web page is turned to the native pages During change, perfect compatibility can not be accomplished, it is possible to it is undesirable to have some page changing effects.
Method for drafting, device and the terminal for the page that the disclosure provides are applied to above-mentioned application background, and in solution State problem and one instrument or software running platform be provided, complete based on A page-describing modes develop obtained former page data to Conversion under different operating system platform, the disclosure is described in detail below in conjunction with specific embodiments.
As shown in figure 1, Fig. 1 is a kind of flow chart of the layout method of page according to an exemplary embodiment, should Method can apply in terminal device.Executive agent can be mounted to the above-mentioned software running platform or work of terminal device Tool.In the present embodiment, in order to make it easy to understand, combining with display screen and the terminal device of third party application can be installed Illustrate.It will be understood by those skilled in the art that the terminal device can include but is not limited to the movement of such as smart mobile phone Terminal device, intelligent wearable equipment, tablet personal computer, personal digital assistant, E-book reader etc..This method includes following Step:
In a step 101, the page layout model pre-established is obtained.
In the present embodiment, PDL and exploitation language of the application program under different platform can be in advance based on Speech, create page layout model.The page layout model is between PDL and development language under different platform Transition specification so that under different platform, PDL and development language can be changed mutually application program, and And page layout can't change.Specifically, the page layout can be created based on the test result of page layout Model.
In a step 102, former page data is handled to obtain intermediate data using above-mentioned page layout model.
Wherein, in this step 102, the former page data is developed corresponding to mentioned above based on A page-describing modes Obtained page data.
In step 103, the intermediate data is resolved to goal approach layer, to obtain target data.
Wherein, in this step 103, the target data is supported corresponding to destination OS platform mentioned above is lower The page data based on B page-describing modes.
In the present embodiment, former page data can be handled using above-mentioned page layout model, in obtaining Between data.And the intermediate data is resolved to goal approach layer, to obtain target data.Wherein, former page data can include But web page data are not limited to, one-to-one mapping relations be present with former page data and target data respectively in intermediate data, Therefore, former page data and target data also have one-to-one relation.Wherein, goal approach layer can be based on operation system The method layer of system, if for example, operating system is Android system, goal approach layer can be Native method layer.It is appreciated that Goal approach layer can be any rational method layer for operating system, and the disclosure to not limiting in this respect.
At step 104, page layout is carried out based on the target data.
In the present embodiment, the target data can be based on and carries out page layout, specifically, obtain the cloth to prestore first Office's style library, then, the layout pattern information of matching can be searched based on the target data, and be based on from the layout pattern storehouse The layout pattern information carries out page layout.
In the present embodiment, layout pattern storehouse can be pre-set, then, layout pattern storehouse is stored.Wherein, should Style information corresponding to customized layout pattern can be included in layout pattern storehouse.Specifically, the layout pattern storehouse can be with Including following one or more:Style information;Module information;The data of parsing compiling top layer pattern.
Wherein, style information can include but is not limited to:Alignment thereof information, font information and text message etc.. Module information can include but is not limited to:Interface inner assembly information (for example, div module informations, text component information);Selection type Component (for example, picker module informations, swiper module informations);Interface type component (for example, prompt module informations, Dialog module informations).Parsing compiling top layer pattern data can include but is not limited to:Tag name is (for example, class information, id Information etc.) direct set membership;Tag name mixed relationship etc..
The layout method for the page that above-described embodiment of the disclosure provides, by obtaining the page layout mould pre-established Type, is handled to obtain intermediate data using the page layout model to former page data, and the intermediate data is resolved into target Method layer, so as to obtain target data, and page layout is carried out based on the target data.As a result of the page pre-established Placement model so that before and after compiling, layout type will not change former page data, so as to solve the cloth that the page is shown The problem of office and inconsistent original layout, improve the display effect of the page.
As shown in Fig. 2 the flow chart of the layout method of another pages of the Fig. 2 according to an exemplary embodiment, should The process that page layout is carried out based on target data is described in detail in embodiment, and this method can apply in terminal device.Hold Row main body can be the above-mentioned above-mentioned software running platform or instrument for being installed on terminal device, and this method can include following step Suddenly:
In step 201, the page layout model pre-established is obtained.
In step 202, former page data is handled to obtain intermediate data using page layout model.
In step 203, intermediate data is resolved to goal approach layer, to obtain target data.
In step 204, the layout pattern storehouse to prestore is obtained.
In step 205, the layout pattern information of matching is searched from layout pattern storehouse based on target data.
In step 206, page layout is carried out based on layout pattern information.
It should be noted that for the step identical with Fig. 1 embodiments, no longer gone to live in the household of one's in-laws on getting married in above-mentioned Fig. 2 embodiments State, related content can be found in Fig. 1 embodiments.
The layout method for the page that above-described embodiment of the disclosure provides, by obtaining the page layout mould pre-established Type, former page data is handled to obtain intermediate data using page layout model, intermediate data is resolved to goal approach Layer, to obtain target data, is obtained the layout pattern storehouse to prestore, is searched the cloth of matching from layout pattern storehouse based on target data Office's style information, and page layout is carried out based on layout pattern information.As a result of the page layout model pre-established with And the layout pattern storehouse to prestore so that before and after compiling, layout type will not change former page data, so as to further solve The problem of layout that the page of having determined is shown and inconsistent original layout, it is favorably improved the display effect of the page.
It should be noted that although describing the operation of method of disclosure with particular order in the accompanying drawings, still, this is not required that Or imply and must perform these operations according to the particular order, or the operation having to carry out shown in whole could realize the phase The result of prestige.On the contrary, the step of describing in flow chart can change execution sequence.Additionally or alternatively, it is convenient to omit some Step, multiple steps are merged into a step and performed, and/or a step is decomposed into execution of multiple steps.
Corresponding with the layout method embodiment of the foregoing page, the disclosure additionally provides the placement device of the page and its answered The embodiment of terminal.
As shown in figure 3, Fig. 3 is a kind of placement device block diagram of the page of the disclosure according to an exemplary embodiment, The device includes:Acquisition module 301, processing module 302, parsing module 303 and layout modules 304.
Wherein, acquisition module 301, it is configured as obtaining the page layout model pre-established.
Processing module 302, it is configured as that former page data is handled to obtain centre using above-mentioned page layout model Data.
Parsing module 303, it is configured as above-mentioned intermediate data being resolved to goal approach layer, to obtain target data.
Layout modules 304, it is configured as carrying out page layout based on the target data.
As shown in figure 4, Fig. 4 is the placement device frame of another page of the disclosure according to an exemplary embodiment Figure, on the basis of foregoing embodiment illustrated in fig. 3, layout modules 304 can include the embodiment:Acquisition submodule 401, search Submodule 402 and layout submodule 403.
Wherein, acquisition submodule 401, it is configured as obtaining the layout pattern storehouse to prestore.
Submodule 402 is searched, is configured as searching the layout pattern letter of matching from layout pattern storehouse based on target data Breath.
Submodule 403 is laid out, is configured as carrying out page layout based on the layout pattern information.
In some optional embodiments, the layout pattern storehouse includes pattern corresponding to customized layout pattern and believed Breath.
In other optional embodiments, the layout pattern storehouse includes following one or more:
Style information;
Module information;
The data of parsing compiling top layer pattern.
It should be appreciated that said apparatus can be set in advance in terminal device, can also be loaded by modes such as downloads Into terminal device.Corresponding module in said apparatus can be cooperated with the module in terminal device to realize the cloth of the page Office's scheme.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component The unit of explanation can be or may not be physically separate, can be as the part that unit is shown or can also It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality Need to select some or all of module therein to realize the purpose of disclosure scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
Accordingly, the disclosure also provides a kind of terminal, and the terminal includes processor;For storing, processor is executable to be referred to The memory of order;Wherein, the processor is configured as:
Obtain the page layout model pre-established;
Former page data is handled to obtain intermediate data using the page layout model;
The intermediate data is resolved to goal approach layer, to obtain target data;
Page layout is carried out based on the target data.
Fig. 5 is an a kind of structural representation of the placement device 9900 of page according to an exemplary embodiment.Example Such as, device 9900 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, and flat board is set It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
Reference picture 5, device 9900 can include following one or more assemblies:Processing component 9902, memory 9904, electricity Source component 9906, multimedia groupware 9908, audio-frequency assembly 9910, the interface 9912 of input/output (I/O), sensor cluster 9914, and communication component 9916.
The integrated operation of the usual control device 9900 of processing component 9902, such as communicated with display, call, data, The operation that camera operation and record operation are associated.Treatment element 9902 can include one or more processors 9920 to perform Instruction, to complete all or part of step of above-mentioned method.In addition, processing component 9902 can include one or more moulds Block, the interaction being easy between processing component 9902 and other assemblies.For example, processing component 9902 can include multi-media module, To facilitate the interaction between multimedia groupware 9908 and processing component 9902.
Memory 9904 is configured as storing various types of data to support the operation in device 9900.These data Example includes being used for the instruction of any application program or method operated on device 9900, contact data, telephone book data, Message, picture, video etc..Memory 9904 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 9906 provides electric power for the various assemblies of device 9900.Power supply module 9906 can include power management System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 9900.
Multimedia groupware 9908 is included in the screen of one output interface of offer between described device 9900 and user. In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch and passed Sensor is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or slip be dynamic The border of work, but also detect the duration and pressure related to the touch or slide.In certain embodiments, it is more Media component 9908 includes a front camera and/or rear camera.When device 9900 is in operator scheme, mould is such as shot When formula or video mode, front camera and/or rear camera can receive outside multi-medium data.Each preposition shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 9910 is configured as output and/or input audio signal.For example, audio-frequency assembly 9910 includes a wheat Gram wind (MIC), when device 9900 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone quilt It is configured to receive external audio signal.The audio signal received can be further stored in memory 9904 or via communication Component 9916 is sent.In certain embodiments, audio-frequency assembly 9910 also includes a loudspeaker, for exports audio signal.
I/O interfaces 9912 provide interface, above-mentioned peripheral interface module between processing component 9902 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.
Sensor cluster 9914 includes one or more sensors, and the state for providing various aspects for device 9900 is commented Estimate.For example, sensor cluster 9914 can detect opening/closed mode of device 9900, the relative positioning of component, such as institute The display and keypad that component is device 9900 are stated, sensor cluster 9914 can be with detection means 9900 or device 9,900 1 The position of individual component changes, the existence or non-existence that user contacts with device 9900, the orientation of device 9900 or acceleration/deceleration and dress Put 9900 temperature change.Sensor cluster 9914 can include proximity transducer, be configured in no any physics The presence of object nearby is detected during contact.Sensor cluster 9914 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In certain embodiments, the sensor cluster 9914 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor, microwave remote sensor or temperature sensor.
Communication component 9916 is configured to facilitate the communication of wired or wireless way between device 9900 and other equipment.Dress The wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof can be accessed by putting 9900.It is exemplary at one In embodiment, communication component 9916 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 9916 also includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 9900 can be by one or more application specific integrated circuits (ASIC), numeral Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 9904 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 9920 of device 9900.Example Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
In the exemplary embodiment, at least one instruction, the instruction are stored with above computer readable storage medium storing program for executing It can be loaded by processor and perform operation performed in the layout method of the page provided in above-described embodiment.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (10)

1. a kind of layout method of the page, it is characterised in that methods described includes:
Obtain the page layout model pre-established;
Former page data is handled to obtain intermediate data using the page layout model;
The intermediate data is resolved to goal approach layer, to obtain target data;
Page layout is carried out based on the target data.
2. according to the method for claim 1, it is characterised in that described that page layout, bag are carried out based on the target data Include:
Obtain the layout pattern storehouse to prestore;
The layout pattern information of matching is searched from the layout pattern storehouse based on the target data;
Page layout is carried out based on the layout pattern information.
3. according to the method for claim 2, it is characterised in that the layout pattern storehouse includes customized layout pattern Corresponding style information.
4. according to the method for claim 3, it is characterised in that the layout pattern storehouse includes following one or more:
Style information;
Module information;
The data of parsing compiling top layer pattern.
5. a kind of placement device of the page, it is characterised in that described device includes:
Acquisition module, it is configured as obtaining the page layout model pre-established;
Processing module, it is configured as that former page data is handled to obtain intermediate data using the page layout model;
Parsing module, it is configured as the intermediate data being resolved to goal approach layer, to obtain target data;
Layout modules, it is configured as carrying out page layout based on the target data.
6. device according to claim 5, it is characterised in that the layout modules include:
Acquisition submodule, it is configured as obtaining the layout pattern storehouse to prestore;
Submodule is searched, is configured as searching the layout pattern letter of matching from the layout pattern storehouse based on the target data Breath;
Submodule is laid out, is configured as carrying out page layout based on the layout pattern information.
7. device according to claim 6, it is characterised in that the layout pattern storehouse includes customized layout pattern Corresponding style information.
8. device according to claim 7, it is characterised in that the layout pattern storehouse includes following one or more:
Style information;
Module information;
The data of parsing compiling top layer pattern.
A kind of 9. terminal, it is characterised in that including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Obtain the page layout model pre-established;
Former page data is handled to obtain intermediate data using the page layout model;
The intermediate data is resolved to goal approach layer, to obtain target data;
Page layout is carried out based on the target data.
10. a kind of computer-readable recording medium, it is characterised in that at least one is stored with the computer-readable recording medium Bar is instructed, and the instruction is loaded as processor and performed to realize the page as described in claim 1 to any one of claim 5 Layout method in performed operation.
CN201710552954.7A 2017-07-07 2017-07-07 Page layout method, device and terminal Active CN107450912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710552954.7A CN107450912B (en) 2017-07-07 2017-07-07 Page layout method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710552954.7A CN107450912B (en) 2017-07-07 2017-07-07 Page layout method, device and terminal

Publications (2)

Publication Number Publication Date
CN107450912A true CN107450912A (en) 2017-12-08
CN107450912B CN107450912B (en) 2021-01-29

Family

ID=60488375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710552954.7A Active CN107450912B (en) 2017-07-07 2017-07-07 Page layout method, device and terminal

Country Status (1)

Country Link
CN (1) CN107450912B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885746A (en) * 2019-01-17 2019-06-14 平安城市建设科技(深圳)有限公司 Page Dynamic Distribution method, apparatus, equipment and storage medium
CN110321124A (en) * 2019-06-20 2019-10-11 北京奇艺世纪科技有限公司 A kind of text layout's optimization method, device and electronic equipment
CN111258575A (en) * 2018-11-30 2020-06-09 阿里健康信息技术有限公司 Page layout processing method and device
CN111752667A (en) * 2020-07-01 2020-10-09 湖南快乐阳光互动娱乐传媒有限公司 Page generation method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090158243A1 (en) * 2006-10-22 2009-06-18 Bolarinwa Akin B System and Method for Specification and Implementation of MVC (Model-View-Controller) based web applications.
CN102073502A (en) * 2011-01-11 2011-05-25 百度在线网络技术(北京)有限公司 Method for rendering page frame by WEB primary layout and device thereof
CN104572042A (en) * 2013-10-15 2015-04-29 航天信息股份有限公司 Cross-platform middleware device of mobile terminal equipment and implementation method of cross-platform middleware device of mobile terminal equipment
CN104731588A (en) * 2015-03-12 2015-06-24 用友网络科技股份有限公司 Page layout file generation method and device
CN104951311A (en) * 2015-07-03 2015-09-30 北京京东尚科信息技术有限公司 Page making method and device
CN105528389A (en) * 2015-11-09 2016-04-27 上海二三四五网络科技有限公司 A logic control method and device based on mobile phone browser core
CN106293645A (en) * 2015-05-13 2017-01-04 Tcl集团股份有限公司 A kind of method and system improving Web application interface rendering efficiency
CN106815316A (en) * 2016-12-23 2017-06-09 北京奇虎科技有限公司 Method, device and mobile terminal that content of pages is shared
CN106873952A (en) * 2015-12-14 2017-06-20 航天信息股份有限公司 The data handling system and method and application apparatus of mobile terminal webpage development

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090158243A1 (en) * 2006-10-22 2009-06-18 Bolarinwa Akin B System and Method for Specification and Implementation of MVC (Model-View-Controller) based web applications.
CN102073502A (en) * 2011-01-11 2011-05-25 百度在线网络技术(北京)有限公司 Method for rendering page frame by WEB primary layout and device thereof
CN104572042A (en) * 2013-10-15 2015-04-29 航天信息股份有限公司 Cross-platform middleware device of mobile terminal equipment and implementation method of cross-platform middleware device of mobile terminal equipment
CN104731588A (en) * 2015-03-12 2015-06-24 用友网络科技股份有限公司 Page layout file generation method and device
CN106293645A (en) * 2015-05-13 2017-01-04 Tcl集团股份有限公司 A kind of method and system improving Web application interface rendering efficiency
CN104951311A (en) * 2015-07-03 2015-09-30 北京京东尚科信息技术有限公司 Page making method and device
CN105528389A (en) * 2015-11-09 2016-04-27 上海二三四五网络科技有限公司 A logic control method and device based on mobile phone browser core
CN106873952A (en) * 2015-12-14 2017-06-20 航天信息股份有限公司 The data handling system and method and application apparatus of mobile terminal webpage development
CN106815316A (en) * 2016-12-23 2017-06-09 北京奇虎科技有限公司 Method, device and mobile terminal that content of pages is shared

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258575A (en) * 2018-11-30 2020-06-09 阿里健康信息技术有限公司 Page layout processing method and device
CN111258575B (en) * 2018-11-30 2023-09-15 阿里健康信息技术有限公司 Page layout processing method and device
CN109885746A (en) * 2019-01-17 2019-06-14 平安城市建设科技(深圳)有限公司 Page Dynamic Distribution method, apparatus, equipment and storage medium
CN110321124A (en) * 2019-06-20 2019-10-11 北京奇艺世纪科技有限公司 A kind of text layout's optimization method, device and electronic equipment
CN110321124B (en) * 2019-06-20 2023-01-20 北京奇艺世纪科技有限公司 Text layout optimization method and device and electronic equipment
CN111752667A (en) * 2020-07-01 2020-10-09 湖南快乐阳光互动娱乐传媒有限公司 Page generation method and device

Also Published As

Publication number Publication date
CN107450912B (en) 2021-01-29

Similar Documents

Publication Publication Date Title
WO2021008334A1 (en) Data binding method, apparatus, and device of mini program, and storage medium
CN106569800A (en) Front end interface generation method and apparatus
CN104536935B (en) Calculate display methods, calculate edit methods and device
CN107450912A (en) Layout method, device and the terminal of the page
CN107423106A (en) The method and apparatus for supporting more frame grammars
CN106202223A (en) Content collection method, device and for collecting the device of content in application program
CN104461348A (en) Method and device for selecting information
CN107391218A (en) Compilation Method and device, electronic equipment and computer-readable recording medium
CN104267881B (en) The operating method and device of toolbar
CN104020924A (en) Label establishing method and device and terminal
CN106789551A (en) Conversation message methods of exhibiting and device
CN106775202A (en) A kind of method and device of information transfer
CN107241495A (en) The split screen treating method and apparatus of terminal device
CN107783711A (en) Application program is controlled to perform the method and device of operation
CN112416485A (en) Information guiding method, device, terminal and storage medium
CN106919334A (en) Application program access method and device
CN104216973A (en) Data search method and data search device
CN107239351A (en) Method of attaching and device
CN104063424B (en) Web page picture shows method and demonstration device
CN106528255A (en) Class loading method and device
CN107193441A (en) Desktop suspension member method for previewing and device
CN106708967A (en) Page display method and device
CN107463372A (en) The method for updating pages and device of a kind of data-driven
CN107402756A (en) For drawing the method, apparatus and terminal of the page
CN106775708A (en) The page layout switch control method and device of mobile terminal

Legal Events

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