CN110489120A - Page development method component-based and server - Google Patents

Page development method component-based and server Download PDF

Info

Publication number
CN110489120A
CN110489120A CN201910593969.7A CN201910593969A CN110489120A CN 110489120 A CN110489120 A CN 110489120A CN 201910593969 A CN201910593969 A CN 201910593969A CN 110489120 A CN110489120 A CN 110489120A
Authority
CN
China
Prior art keywords
component
information
target element
inquiry
dimension
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
CN201910593969.7A
Other languages
Chinese (zh)
Inventor
周一平
陈琳
蒋新龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Securities Co Ltd
Original Assignee
Ping An Securities Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Securities Co Ltd filed Critical Ping An Securities Co Ltd
Priority to CN201910593969.7A priority Critical patent/CN110489120A/en
Publication of CN110489120A publication Critical patent/CN110489120A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The present invention is suitable for computer application technology, provide a kind of page development method, terminal device and computer readable storage medium component-based, it include: the component query information sent by obtaining user terminal, the component query information is quantified according to preset participle model, obtains inquiry quantitative information;According to the inquiry quantitative information, at least one target element corresponding with the inquiry quantitative information is searched in preset Component Gallery;The target element is sent to the user terminal, so that the user terminal is based on target element progress page hair and opens to obtain target pages, target element quick Fabrication target pages are determined by the component query information sent according to user terminal, improve the scalability of page assembly and the efficiency of page development.

Description

Page development method component-based and server
Technical field
The invention belongs to computer application technology more particularly to a kind of page development methods component-based, service Device and computer readable storage medium.
Background technique
Informationization technology is applied rapidly along with the development of internet, and information system Internet-based is current Miscellaneous global wide area network (World Wide Web, Web) application is most widely taken the form of, with network programming skill Art specification reaches its maturity, and is widely applied in Web application and development.The mainstream of software market is based on network programming from now on The opening component and application Framework of technical specification.In current software development process, the application of software reuse technology The development cycle that software can be shortened improves the reliability of software, reduces the development cost of software.
It needs to clarify analysis, code development, test environmental testing, publication by demand by creating the page in the prior art The links such as production environment and examination.There are longer processes for this mode, will lead to human cost height, link up at high cost, consumption Time-consuming length is difficult to accomplish fast responding market, therefore the prior art is in Webpage in the demanding financial industry of timeliness There is a problem of that development efficiency is lower during creation.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of page development method, server and computers component-based Readable storage medium storing program for executing, to solve the problems, such as the prior art, that there are development efficiency is lower during Webpage creation.
The first aspect of the embodiment of the present invention provides a kind of page development method component-based, comprising:
Obtain the component query information that user terminal is sent;
The component query information is quantified according to preset participle model, obtains inquiry quantitative information;
According to the inquiry quantitative information, searched in preset Component Gallery corresponding at least with the inquiry quantitative information One target element;
The target element is sent to the user terminal;The target element is based on the mesh for the user terminal Mark component carries out page hair and opens to obtain target pages.
The second aspect of the embodiment of the present invention provides a kind of server, including memory, processor and is stored in institute The computer program that can be run in memory and on the processor is stated, the processor executes real when the computer program Existing following steps:
Obtain the component query information that user terminal is sent;
The component query information is quantified according to preset participle model, obtains inquiry quantitative information;
According to the inquiry quantitative information, searched in preset Component Gallery corresponding at least with the inquiry quantitative information One target element;
The target element is sent to the user terminal;The target element is based on the mesh for the user terminal Mark component carries out page hair and opens to obtain target pages.
The third aspect of the embodiment of the present invention provides a kind of server, comprising:
Acquiring unit, for obtaining the component query information of user terminal transmission;
Quantifying unit obtains queries for quantifying according to preset participle model to the component query information Change information;
Query unit, for searching in preset Component Gallery and quantifying with the inquiry according to the inquiry quantitative information At least one corresponding target element of information;
Transmission unit, for sending the target element to the user terminal;The target element is used for the user Terminal is based on target element progress page hair and opens to obtain target pages.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer storage medium It is stored with computer program, the computer program includes program instruction, and described program instruction makes institute when being executed by a processor State the method that processor executes above-mentioned first aspect.
Existing beneficial effect is the embodiment of the present invention compared with prior art:
The component query information that the embodiment of the present invention is sent by obtaining user terminal, according to preset participle model to institute It states component query information to be quantified, obtains inquiry quantitative information;According to the inquiry quantitative information, in preset Component Gallery Search at least one target element corresponding with the inquiry quantitative information;The target element is sent to the user terminal, So that the user terminal is based on target element progress page hair and opens to obtain target pages, by being sent according to user terminal Component query information determine target element quick Fabrication target pages, the scalability and the page for improving page assembly are opened The efficiency of hair.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the flow chart for the page development method component-based that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of page development method component-based provided by Embodiment 2 of the present invention;
Fig. 3 is the schematic diagram for the server that the embodiment of the present invention three provides;
Fig. 4 is the schematic diagram for the server that the embodiment of the present invention four provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
It is the flow chart for the page development method component-based that the embodiment of the present invention one provides referring to Fig. 1, Fig. 1.This reality The executing subject for applying page development method component-based in example is terminal.Terminal includes but is not limited to smart phone, plate electricity The mobile terminals such as brain, wearable device can also be desktop computer etc..Page development method component-based as shown in the figure can With the following steps are included:
S101: the component query information that user terminal is sent is obtained.
In software project development, project manager will often pursue software project low investment and as much as possible from return. Especially in enterprise, the ultimate aim of enterprise is profit, so most software products will be pursued and maximize profit, In the situation known to project profit budget, also meaning that software product will maximize reduces cost.In general, software produces There are two approach for product cost optimization: reducing lower deployment cost and raising development efficiency is skilful.In product item exploitation, more efficient work Operation mode more can bring bigger income, the Efficient Development mould for developing a set of person of letting on and being easy to operate, and be easily managed Formula is necessary for a biggish project development team of magnitude.Module Development Method is aiming at mobile terminal A kind of Effective Developing Experience of web application exploitation and design.In Large-Scale Projects exploitation, modularization is a kind of total Know, on the one hand it improves development efficiency, on the other hand reduces maintenance cost.Reasonable Module Development Method can be reduced code change More cost, if we can rationally dispose component, when encountering project demands change or new projects, developer only needs to modify Various components configuration can realize new demand, can thus greatly improve development efficiency, improve code recycling Rate.
Component technology is to enrich to develop on Object-oriented Technique basis, and component is one in software systems With functional part, it can with other components it is integrated go to form a bigger part either completely answer for one Use program.Meanwhile component is also a replaceable unit, may be constructed the software component of the plug and play of software systems.Therefore, It is easier to develop using the software systems of component technology and there is greater flexibility.Component be almost it is independent, interchangeable, Meet the module of certain function, component is packaging, distribution and one component of unit transmitted can should also allow for and it He realizes interactive operation by component, and a key property of component is exactly that it is a black box, visitor of the internal structure for component It is sightless for family.The user of component only feels component by function provided by determining interface or service Interest could be attached with component.Component is that data are complete or encapsulation boundary integrity is that emphasis component is one and can mention It is the independence of finger assembly for independent, interchangeable behavior unit.Component is that supplier's service of service is to work as component Do the entity for being capable of providing related service.
In the present solution, determining user's need by description components library with the component query information sent according to user terminal The target element wanted, wherein component query information may include that number, title, component classification, function description and the retrieval of part are closed Keyword etc..
Optionally, when constructing Component Gallery, according to the existing module information of system, we should be according to scheduled volume Number rule, provides the number of component, as the unique of the whole life cycles such as later Components Development, maintenance, reuse and operation Mark, this strategy will be brought convenience to program development and maintenance etc..
For each of Component Gallery component, indicate that information may include the interface letter of the summary info of component, component Breath, inter-module relationship and application method of component etc..For in the exploitation of Web application, we be can be considered each component All regard an entity as, then the representation method for corresponding to component has then corresponded to the specific manifestation form of the entity, and from upper From the point of view of the essential characteristic encapsulation of component text, integrality and service, component is designed as entity, with Java towards right What elephant was characterized in matching, the component constructed using such design method, the exploitation that can be more suitable for Web application is needed It asks.
S102: quantifying the component query information according to preset participle model, obtains inquiry quantitative information.
It is preset with participle model in the present embodiment, for being quantified by participle model to component query information, obtains Inquire quantitative information.Wherein, participle model can be is trained according to historical component query information, to history number When being trained according to the corpus of composition, the training set data by labor standard is first obtained, i.e., is obtained from preset corpus Take lteral data.It is labelled with the position of participle in these training set datas, determines participle position corresponding to kinds of characters, Middle participle position includes starting position, end position and the middle position of participle.Secondly, being carried out to the training set data got Pretreatment and feature extraction.By filtering out non-targeted character: giving a Chinese character, first determine whether it belongs to mark Point symbol, number, Chinese figure or letter;If being not belonging to any kind therein, the character is counted in training corpus The position of middle positioned word when occur, determines the participle in each component query information by the position of word.
Participle operation is carried out to the component query information got by participle model, while removing punctuation mark, is retained Word lists obtain the participle in component query information after obtaining word lists.After obtaining participle, we determined that It can determine the value of each participle, the quantization of Lai Shixian query information.Illustratively, since each module information may include group The summary info of part, the interface message of component, the application method of inter-module relationship and component, the participle that we will acquire with Module information is corresponded, determine corresponding with component query information summary info, interface message, inter-module relationship and The value of the application method of the component.Also, the information included by the component query information due to getting in many cases is not Completely, it has no idea to get all module informations, in this case, we in component query information only it needs to be determined that wrapped The corresponding quantized value of the information contained, as inquiry quantitative information.
Illustratively, when the component query information got are as follows: input module associated with the query, to this, we divide Word, it is available: inquiry correlation, the information such as input module, corresponded to and the summary info of component, component interface message, Inter-module relationship and the application method of component are quantified, and can be obtained, the corresponding component quantization of the component query information Information may include: inter-module relationship be it is related to query function, the application method of component is to input.Server inquires component Information is quantified after obtaining inquiry quantitative information, can be inquired in Component Gallery according to inquiry quantitative information corresponding , qualified component.
S103: it according to the inquiry quantitative information, is searched in preset Component Gallery corresponding with the inquiry quantitative information At least one target element.
After determining component quantitative information, target group corresponding with inquiry quantitative information is searched in preset Component Gallery Part.It should be noted that the quantity of the target element in the present embodiment can be one, for for this target element into Row page development;It is also possible to multiple, for multiple target elements to be configured and integrated, forming one has complete function The page.
Specifically, the component in Component Gallery in the present embodiment all includes by labelled component, by every in Component Gallery A module sets one or more labelled components identifies each component, in order to can be by inquiry quantitative information from component Inquiry obtains corresponding target element in library.It should be noted that the component of inquiry quantitative information and component in the present embodiment Label corresponds, to determine the corresponding corresponding target of labelled component and labelled component by inquiring quantitative information Component.
S104: the target element is sent to the user terminal;The target element is based on for the user terminal The target element carries out page hair and opens to obtain target pages.
After determining the target element, we send target element to user terminal.To receive mesh in user terminal After marking component, page development is carried out according to target element and obtains target pages.It should be noted that if the quantity of target element It is one, then terminal, according to the exploitation demand of target pages, which can be set after getting the target element It sets at corresponding page location.If the data volume of target element has at least two, terminal is getting these target elements Later, according to the exploitation demand of target pages and the exploitation information of all target elements, all target elements are subjected to group It closes, exploitation obtains target pages.
Above scheme, the component query information sent by obtaining user terminal, according to preset participle model to described Component query information is quantified, and inquiry quantitative information is obtained;According to the inquiry quantitative information, looked into preset Component Gallery Look at least one target element corresponding with the inquiry quantitative information;The target element is sent to the user terminal, with Make the user terminal be based on target element progress page hair to open to obtain target pages, passes through what is sent according to user terminal Component query information determines target element quick Fabrication target pages, improves the scalability and page development of page assembly Efficiency.
Referring to fig. 2, Fig. 2 is the flow chart of page development method component-based provided by Embodiment 2 of the present invention.This reality The executing subject for applying page development method component-based in example is terminal.Terminal includes but is not limited to smart phone, plate electricity The mobile terminals such as brain, wearable device can also be desktop computer etc..Page development method component-based as shown in the figure can With the following steps are included:
S201: the component query information that user terminal is sent is obtained.
The implementation of S101 is identical in S201 embodiment corresponding with Fig. 1 in the present embodiment, specifically refers to The associated description of S101 in the corresponding embodiment of Fig. 1, details are not described herein.
S202: quantifying the component query information according to preset participle model, obtains inquiry quantitative information.
The implementation of S102 is identical in S202 embodiment corresponding with Fig. 1 in the present embodiment, specifically refers to The associated description of S102 in the corresponding embodiment of Fig. 1, details are not described herein.
S203: historical component and its module information are obtained, and each institute is determined according to the module information of the historical component State at least one corresponding component entry of historical component.
In exploitation Web in application, developer often repeats to write similar code, the public affairs of these codes are at this moment extracted Part, the blank of component are just born altogether.Custom component should have very strong versatility, to reduce the strong of software development Degree, improves the efficiency of software development.In design component, the versatility of component is considered as far as possible, makes different application as much as possible Program is able to use, and for the application program for using component, component is black box, that is, utilizes the application of component.In this reality It applies in example, is by target element corresponding to the determining and component query information in Component Gallery, it would therefore be desirable to first set One Component Gallery is used to storage and management component.Before creating the Component Gallery, we first obtain historical component and its component letter Breath, and at least one corresponding component entry of each historical component is determined according to the module information of historical component.
Specifically, in the present embodiment, historical component is used before can be, without used component, can be with It is the component of this application system, is also possible to the component of other application system, herein without limitation.The module information of historical component It may include number, title, component classification, function description and the search key etc. of component.At initial stage design phase, according to being Unite existing module information, we should provide the number of component according to scheduled coding rule, as later Components Development, The unique identification of the whole life cycles such as maintenance, reuse and operation, this strategy will give the side of bringing such as program development and maintenance Just.Search key in the above essential information, which refers to, carries out abstract and standardization for the function description of component, obtains function Energy keyword set, for quickly searching required component when component reuse and maintenance.Component classification be exactly by component according to Adaptation range is divided into standard component, general purpose module and personal module.Standard component refers to the standard feature according to certain field and takes out As obtained component, do not change with concrete application.General purpose module refers in certain field as user interface, completes to hand over user The component of mutual function, therefore their realization must reflect specific data descriptor format.Personal module is the spy of concrete application The abstract and encapsulation of distinguished service energy and special data format, the specific demand corresponding to special dimension.
S204: according to preset component dimension and the component entry, at least one belonging to the historical component is determined Component dimension.
After the corresponding component entry of each historical component has been determined, we are according to preset component dimension and component word Item determines component dimension belonging to the historical component.
In the present embodiment, it is preset with component dimension, component dimension can be used to indicate component type, the function of each component Energy or use environment, herein without limitation.It illustratively, can be by history when determining component dimension according to component type Component is divided into single type component and compound component, wherein and single type component is used to indicate the component of only one single-element, Compound component is for indicating when the quantity of existing component reaches certain scale, the achievable many of the combination of multiple components Function.Creating a compound component is exactly the example of existing component to be added in the attribute of compound component class.Except this Except, it is divided according to function dimension, can be input class component, click class component, diagram class component etc. by component clustering.According to It is then the environment that can be used according to specific component to determine that use environment dimension, which divides, herein without limitation.
In the present embodiment, at least two component dimensions are preset with.It wherein may include static dimension group and dynamic dimension group, tool Body, static dimension group may include: description dimension, deployment dimension, case dimension;Dynamic dimension group may include: demand dimension, dimension Protect dimension, using dimension, measure dimension etc., herein without limitation.It is specific: description dimension={ title;Function;Main application Field;Interface function;Interface parameters, interface protocol, interface priori conditions, interface posteriority condition;Interface invariant }, description dimension The overall title for introducing component of degree, function, the nomenclature referring to defined in Component Gallery, detailed description main application field, The function of each input interface or output interface, parameter, agreement, priori conditions, posteriority condition and invariant.Term is facet Value, by Component Gallery system maintenance, generally covers all possibility of facet, such as in application field, we can determine term For the tax, finance, insurance etc..Component be it is interconnected by interface, interface is the collection for the concrete operations that can be visited by the customer It closes, each operation has defined semanteme.The agreement of interface is the realization foundation between interconnecting assembly.Priori conditions, posteriority condition It is usually the contract for being used as interface with invariant, to guarantee process condition, time conditions and steric requirements etc. used in component. Dispose dimension={ operating system;Software hardware environment;Workpiece }, it is used after component compiling, that is to say, that user is more Pay close attention to how it disposes and assemble.Deployment dimension provides the operating system, hardware environment that component is applicable in, workpiece and its matches It sets, illustrates its context environmental, required configuration data.As optional, deployment dimension can also provide deployment tool or customization The methods of class is carried out assisting user and is assembled.
Case dimension={ environment;Configuring condition;Associated component;Test result;Related evaluation }, case dimension is by developing Person provide under several context environmentals or in territory, the case that component is used, including environment, configuring condition, Associated component, test result and related evaluation etc..This will provide one well referring to guide for user, them is instructed to learn Use the component.Test dimension={ test case;Test counterfoil }, component is assembled to it by the user for testing component in dimension After in application system, component level test, subsystem testing and integration testing etc. will be carried out.The purpose of test dimension is in order to using Person provides test case and test counterfoil workpiece, to facilitate their independent tests and larger range of test to component.Demand Dimension={ interface description;Deployed environment;Constraint;Functional requirements;Non-functional requirement }, when not having in Component Gallery in demand dimension When having suitable component, requestor will file an application, and describe the feature of New Parent.The component not being implemented for one, may It has multiple requestors and proposes requirement details from different perspectives.When New Parent is implemented, this is one-dimensional will record it is all with the group The relevant requestor of part and its requirement details.When component is implemented or is updated, Component Gallery will also notify all requests automatically Person, to form dynamical feedback.
Safeguard dimension={ exploitation unit;Maintenance content;Version }, component can be by some or certain several exploitation unit creations simultaneously Maintenance.These exploitation units and creation, the variation of the history of maintenance and version updating will be recorded in maintenance dimension.Using dimension Degree={ use unit;Application system;Connexon;Associated component;Evaluation }, using the applicating history of record component in dimension.Make It should be registered in Component Gallery with the application software system of component.In the exploitation of one application system, it is understood that there may be multiple exploitations are small Group, each development group may use multiple components, they can be put into Component Gallery as this component by user A part, to be referred to for other users.After use, development group reply concrete application in component availability, Efficiency, reliability make evaluation, and present one's view to component, thus the evolution of pushing component.For said function and interface Component, there may be the components of multiple and different versions or different exploitation units in Component Gallery.It can basis when searching component Different priority automatic cluster, so as to take similar alternative.
It should be noted that be above a part in this programme component dimension and the component dimension in include group Part information can quickly search component later by artificially determining component dimension belonging to historical component.
S205: according to the component dimension, the historical component being stored into the corresponding Component Gallery of the component dimension, Obtain dimension Component Gallery;It include the corresponding target element of the inquiry quantitative information in the dimension Component Gallery.
After the component dimension of each component has been determined, we are according to the determination of the component entry of each component and the entry Corresponding component dimension, and the corresponding component of component side slat is stored into the Component Gallery of the component dimension, for by not Component Gallery with dimension is managed all historical components, directly searches and adjusts in page development later to facilitate With.
Further, often having many components in practical applications includes at least two component entries, and different groups Part entry may correspond to different component dimensions again, and therefore, a component may meet the condition of multiple component dimensions, this feelings Under condition, such component can be stored in the corresponding Component Gallery of multiple dimensions by we simultaneously, to guarantee each dimension Component Gallery in the integrality of component and comprehensive.
Optionally, it can be accumulated using the visual page, a Component Gallery is provided, the group needed is selected from Component Gallery Part, simple fill message save publication, and the creation of the page is just completed without writing code, is launched.The common page provides template, wound The page is built only to need to reduce the time for constructing the similar page to the component fine tuning in template.Further, page assembly library may be used also To support extension, in addition to standard component library, component can also be voluntarily created, self-developing control is linked into third party's Component Gallery After management, can as standard component option and installment.For the page that Component Gallery can not meet, customized development is done in support.
S206: it according to the inquiry quantitative information, is searched in preset Component Gallery corresponding with the inquiry quantitative information At least one target element.
After the corresponding Component Gallery of each dimension has been determined, we are according to inquiry quantitative information in corresponding Component Gallery Search target element corresponding with inquiry quantitative information.
Further, step S206 can specifically include step S2061~S2062:
S2061: according to the inquiry quantitative information and the preset component dimension library, the inquiry quantitative information is determined Corresponding component dimension library.
We, can be according to inquiry quantization letter after the corresponding component dimension of the different dimensions in Component Gallery library has been determined Breath and preset component dimension library, determine the inquiry quantitative information corresponding component dimension library.
Specifically, being obtained after inquiry quantitative information can be and be quantified component query information in the present embodiment One or more entry information, these entry informations be used for indicate user terminal needed for component condition.And this implementation It include the corresponding component of different dimensions in component dimension library in example, these dimensions are also used for indicating and managing different types of Component, we match the inquiry quantitative information of user terminal with the dimensional information in component dimension library, determine inquiry quantization Information corresponding component dimension library.
S2062: at least one target element corresponding with the component query information is searched in component dimension library.
After inquiry quantitative information corresponding component dimension library has been determined, we search in component dimension library and component The corresponding target element of query information.It should be noted that we are looked into component dimension library by component quantitative information When looking for, the target element found can be one or more, herein without limitation to the quantity of target element.
Further, if the quantity of target element is more, we can carry out the screening of a step, be more in line with use to determine The target element of family demand.Optionally, screening mode can be the generation time for obtaining each target element or use recently Time, according to generating the time or use the time to determine newest component as target element, after being screened recently The range of target element can be reduced, the success rate that component uses is improved.
S207: the target element is sent to the user terminal;The target element is based on for the user terminal The target element carries out page hair and opens to obtain target pages.
After the target case corresponding with inquiry quantitative information has been determined, target element is sent to user's end by us End obtains target pages to be based on target element progress page development in user terminal.
Further, step S207 can specifically include S2071~S2074:
S2071: the exploitation demand that the user terminal is sent is obtained;The exploitation demand includes the page of the target pages Face function and suitable environment.
After the component query information according to user determines target element, we can only determine simple according to target element Page function, and the scene that uses of user demand or target pages cannot be embodied completely, in this case, we are by obtaining The exploitation demand for taking user terminal to send, determines the rendering condition of target element.In the present embodiment, exploitation demand may include The page function and suitable environment of target pages, for user terminal according to page function and suitable environment to having got Target element is configured.
It should be noted that the exploitation demand in the present embodiment is display styles in order to determine target element or it is suitable Use environment, rendered to the target element having determined that by obtaining exploitation demand.
S2072: according to the page function and suitable environment in the exploitation demand, determine that the component of the target element is matched Confidence breath.
After getting page function and suitable environment, the group of target element is determined according to page function and suitable environment Part configuration information.Module configuration information in the present embodiment may include the display format of component, component size, between component Incidence relation etc., herein without limitation.Illustratively, when fitting we determined that the page function in exploitation demand is input function With environment be finance financing when, it is determined that the module configuration information of target element be suitable for the input work under financial financing environment Can, the style of target element or usage mode to be adjusted in user terminal to be suitable for financial financing environment.
S2073: the module configuration information is serialized to obtain interface description information;The interface description information is used It is rendered in the target pages that the user terminal develops the target element.
After determining the configuration information of target element, module configuration information is serialized to obtain interface description letter Breath, to be rendered according to interface description information to the target pages that target element is developed.In user terminal in access, Server is melted into an interface description information and is given to user terminal according to the module configuration information of the page, sequence.User terminal root The function pages are rendered according to page-describing information, module configuration information, the page after being rendered.
Specifically, the status information of object is converted to the process for the form that can store or transmit by serializing.In sequence During change, its current state is written to interim or persistent storage area by object.After, can by from memory block read or The state of unserializing object re-creates the object.Serializing allows other codes to check or modify, those are not serialized Just the object instance data that can not be accessed.In practical applications, all fields in the configuration information of target element all can be by sequence Columnization, it means that data can be represented as the serialized data of example.In such manner, it is possible to explain that the code of the format is possible to energy Enough determine the value of these data, and the accessibility independent of the member.For it is any may include important safety number According to object, if possible, it should make the object not serializability.If it is necessary for serializability, please attempt to generate special Field is determined to save the significant data of not serializability.If cannot achieve this point, it should be noted that the data can be disclosed to Any code for possessing serializing permission, and ensure that any malicious code is not allowed to obtain the permission.
S2074: the interface description information and the target element are sent to the user terminal.
After being serialized, we send interface description information and target element to user terminal.At user's end After termination receives target element, page development is carried out according to target element and obtains target pages.It should be noted that if target The quantity of component is one, then terminal is after getting the target element, can should according to the exploitation demand of target pages Target element is arranged at corresponding page location.If the data volume of target element has at least two, terminal is getting this After a little target elements, according to the exploitation demand of target pages and the exploitation information of all target elements, by all targets Component is combined, and exploitation obtains target pages.
Further, a traffic statistics control is accessed in the present embodiment, in each historical component with statistical history group Part uses flow, to use flow by traffic statistics control acquisition historical component, finally according to flow is used, to user Behavior is analyzed, and the use preference of user is obtained.It should be noted that being downloaded using flow for indicating in the present embodiment Flow value consumed by the content that historical component includes.
Above scheme, the component query information sent by obtaining user terminal;According to preset participle model to described Component query information is quantified, and inquiry quantitative information is obtained;Historical component and its module information are obtained, and according to the history The module information of component determines at least one corresponding component entry of each historical component;According to preset component dimension and The component entry determines at least one component dimension belonging to the historical component;According to the component dimension, gone through described History component is stored into the corresponding Component Gallery of the component dimension, obtains dimension Component Gallery;It include institute in the dimension Component Gallery State the corresponding target element of inquiry quantitative information.According to the inquiry quantitative information, searched in preset Component Gallery with it is described Inquire at least one corresponding target element of quantitative information;The target element is sent to the user terminal;The target group Part is based on target element progress page hair for the user terminal and opens to obtain target pages.By from preset Component Gallery It is middle to obtain component to be processed, and according to exploitation demand, it treats processing component and is configured, the component Configuration letter after being configured Breath, is finally sent to client for the module configuration information, so that client carries out the component according to module configuration information Rendering, improves the scalability of page assembly and the efficiency of page development.
It is a kind of schematic diagram for server that the embodiment of the present invention three provides referring to Fig. 3, Fig. 3.Each list that server includes Member is for executing each step in the corresponding embodiment of FIG. 1 to FIG. 2.Referring specifically in the corresponding embodiment of FIG. 1 to FIG. 2 Associated description.For ease of description, only the parts related to this embodiment are shown.The server 300 of the present embodiment includes:
Acquiring unit 301, for obtaining the component query information of user terminal transmission;
Quantifying unit 302 is inquired for being quantified according to preset participle model to the component query information Quantitative information;
Query unit 303, for being searched and the queries in preset Component Gallery according to the inquiry quantitative information Change at least one corresponding target element of information;
Transmission unit 304, for sending the target element to the user terminal;The target element is used for the use Family terminal is based on target element progress page hair and opens to obtain target pages.
Further, the transmission unit 304 may include:
Demand acquiring unit, the exploitation demand sent for obtaining the user terminal;The exploitation demand includes described The page function and suitable environment of target pages;
Determination unit is configured, for determining the target according to the page function and suitable environment in the exploitation demand The module configuration information of component;
Serialization unit obtains interface description information for being serialized to the module configuration information;The interface Target pages of the description information for the user terminal to develop the target element render;
Information transmitting unit, for sending the interface description information and the target element to the user terminal.
Further, the server can also include:
Information acquisition unit is believed for obtaining historical component and its module information, and according to the component of the historical component Breath determines at least one corresponding component entry of each historical component;
Dimension determination unit, for determining the historical component institute according to preset component dimension and the component entry At least one the component dimension belonged to;
Component storage unit, for according to the component dimension, the historical component to be stored to the component dimension pair In the Component Gallery answered, dimension Component Gallery is obtained;It include the corresponding target group of the inquiry quantitative information in the dimension Component Gallery Part.
Further, the query unit 303 may include:
Dimension library unit, for being looked into described in determination according to the inquiry quantitative information and the preset component dimension library Ask quantitative information corresponding component dimension library;
Target searching unit, for searching corresponding with the component query information at least one in component dimension library A target element.
Further, the server can also include:
Flow control element, for accessing a traffic statistics control in each historical component;The flow system Meter control is used to count the flow that uses of the historical component, described to use flow for indicating that downloading the historical component includes Content consumed by flow value.
Traffic statistics unit, for obtaining the use flow of the historical component by the traffic statistics control.
Customer analysis unit analyzes user behavior, obtains the use of user partially for using flow according to described It is good.
Above scheme, the component query information sent by obtaining user terminal, according to preset participle model to described Component query information is quantified, and inquiry quantitative information is obtained;According to the inquiry quantitative information, looked into preset Component Gallery Look at least one target element corresponding with the inquiry quantitative information;The target element is sent to the user terminal, with Make the user terminal be based on target element progress page hair to open to obtain target pages, passes through what is sent according to user terminal Component query information determines target element quick Fabrication target pages, improves the scalability and page development of page assembly Efficiency.
Fig. 4 is the schematic diagram for the server that the embodiment of the present invention four provides.As shown in figure 4, the server 4 of the embodiment wraps It includes: processor 40, memory 41 and being stored in the computer that can be run in the memory 41 and on the processor 40 Program 42.The processor 40 realizes above-mentioned each page development component-based method when executing the computer program 42 Step in embodiment, such as step 101 shown in FIG. 1 is to 104.Alternatively, the processor 40 executes the computer program The function of each module/unit in above-mentioned each Installation practice, such as the function of unit 301 to 304 shown in Fig. 3 are realized when 42.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 42 in the server 4 is described.
The server 4 can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment. The server may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4 is only It is the example of server 4, does not constitute the restriction to server 4, may include than illustrating more or fewer components or group Close certain components or different components, for example, the server can also include input-output equipment, network access equipment, Bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (application Program lication Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 41 can be the internal storage unit of the server 4, such as the hard disk or memory of server 4. The memory 41 is also possible to the External memory equipment of the server 4, such as the plug-in type being equipped on the server 4 is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card, FC) etc..Further, the memory 41 can also both include the internal storage unit of the server 4 It also include External memory equipment.The memory 41 is for storing needed for the computer program and the server other Program and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of page development method component-based characterized by comprising
Obtain the component query information that user terminal is sent;
The component query information is quantified according to preset participle model, obtains inquiry quantitative information;
According to the inquiry quantitative information, searched in preset Component Gallery it is corresponding with the inquiry quantitative information at least one Target element;
The target element is sent to the user terminal;The target element is based on the target group for the user terminal Part carries out page hair and opens to obtain target pages.
2. page development method component-based as described in claim 1, which is characterized in that described to send the target element To the user terminal, comprising:
Obtain the exploitation demand that the user terminal is sent;The exploitation demand includes the page function of the target pages and fits Use environment;
According to the page function and suitable environment in the exploitation demand, the module configuration information of the target element is determined;
The module configuration information is serialized to obtain interface description information;The interface description information is used for the user The target pages that terminal develops the target element render;
The interface description information and the target element are sent to the user terminal.
3. page development method component-based as described in claim 1, which is characterized in that described to be quantified according to the inquiry Information, in preset Component Gallery before lookup at least one target element corresponding with the inquiry quantitative information, further includes:
Historical component and its module information are obtained, and each historical component is determined according to the module information of the historical component At least one corresponding component entry;
According to preset component dimension and the component entry, at least one component dimension belonging to the historical component is determined;
According to the component dimension, the historical component is stored into the corresponding Component Gallery of the component dimension, dimension is obtained Component Gallery;It include the corresponding target element of the inquiry quantitative information in the dimension Component Gallery.
4. page development method component-based as claimed in claim 3, which is characterized in that described to be quantified according to the inquiry Information searches at least one target element corresponding with the inquiry quantitative information in preset Component Gallery, comprising:
According to the inquiry quantitative information and the preset component dimension library, the corresponding component of the inquiry quantitative information is determined Dimension library;
At least one target element corresponding with the component query information is searched in component dimension library.
5. page development method component-based as claimed in claim 3, which is characterized in that the method also includes:
A traffic statistics control is accessed in each historical component;The traffic statistics control is for counting the history The use flow of component, it is described to be used to indicate using flow to download flow value consumed by the content that the historical component includes;
The use flow of the historical component is obtained by the traffic statistics control;
Flow is used according to described, user behavior is analyzed, the use preference of user is obtained.
6. a kind of server, which is characterized in that including memory and processor, being stored in the memory can be at the place The computer program run on reason device, which is characterized in that when the processor executes the computer program, realize following step It is rapid:
Obtain the component query information that user terminal is sent;
The component query information is quantified according to preset participle model, obtains inquiry quantitative information;
According to the inquiry quantitative information, searched in preset Component Gallery it is corresponding with the inquiry quantitative information at least one Target element;
The target element is sent to the user terminal;The target element is based on the target group for the user terminal Part carries out page hair and opens to obtain target pages.
7. server as claimed in claim 6, which is characterized in that the transmission target element to the user terminal, Include:
Obtain the exploitation demand that the user terminal is sent;The exploitation demand includes the page function of the target pages and fits Use environment;
According to the page function and suitable environment in the exploitation demand, the module configuration information of the target element is determined;
The module configuration information is serialized to obtain interface description information;The interface description information is used for the user The target pages that terminal develops the target element render;
The interface description information and the target element are sent to the user terminal.
8. server as claimed in claim 6, which is characterized in that it is described according to the inquiry quantitative information, at preset group In part library before lookup at least one target element corresponding with the inquiry quantitative information, further includes:
Historical component and its module information are obtained, and each historical component is determined according to the module information of the historical component At least one corresponding component entry;
According to preset component dimension and the component entry, at least one component dimension belonging to the historical component is determined;
According to the component dimension, the historical component is stored into the corresponding Component Gallery of the component dimension, dimension is obtained Component Gallery;It include the corresponding target element of the inquiry quantitative information in the dimension Component Gallery.
9. a kind of server characterized by comprising
Acquiring unit, for obtaining the component query information of user terminal transmission;
Quantifying unit obtains inquiry quantization letter for quantifying according to preset participle model to the component query information Breath;
Query unit, for being searched and the inquiry quantitative information in preset Component Gallery according to the inquiry quantitative information At least one corresponding target element;
Transmission unit, for sending the target element to the user terminal;The target element is used for the user terminal Page hair is carried out based on the target element to open to obtain target pages.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201910593969.7A 2019-07-03 2019-07-03 Page development method component-based and server Pending CN110489120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910593969.7A CN110489120A (en) 2019-07-03 2019-07-03 Page development method component-based and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910593969.7A CN110489120A (en) 2019-07-03 2019-07-03 Page development method component-based and server

Publications (1)

Publication Number Publication Date
CN110489120A true CN110489120A (en) 2019-11-22

Family

ID=68546044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910593969.7A Pending CN110489120A (en) 2019-07-03 2019-07-03 Page development method component-based and server

Country Status (1)

Country Link
CN (1) CN110489120A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928545A (en) * 2019-12-04 2020-03-27 北京小米移动软件有限公司 Component distribution method, single-page application development method, device and storage medium
CN111159108A (en) * 2019-12-18 2020-05-15 北京达佳互联信息技术有限公司 Component management method and device, electronic equipment and storage medium
CN111339125A (en) * 2020-02-24 2020-06-26 山东浪潮商用系统有限公司 Data query method and device
CN111913752A (en) * 2020-06-19 2020-11-10 浙江联控技术有限公司 Function initialization method and device for vehicle skylight and storage medium
CN112114804A (en) * 2020-08-26 2020-12-22 长沙市到家悠享网络科技有限公司 Application program generation method, device and system
CN113590213A (en) * 2021-06-24 2021-11-02 深圳开源互联网安全技术有限公司 Component maintenance method, electronic device, and storage medium
CN114911535A (en) * 2022-04-22 2022-08-16 青岛海尔科技有限公司 Application program component configuration method, storage medium and electronic device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5553282A (en) * 1994-12-09 1996-09-03 Taligent, Inc. Software project history database and method of operation
US7451403B1 (en) * 2002-12-20 2008-11-11 Rage Frameworks, Inc. System and method for developing user interfaces purely by modeling as meta data in software application
US20170193042A1 (en) * 2015-12-30 2017-07-06 Facebook, Inc. Optimistic data fetching and rendering
CN108153520A (en) * 2018-03-20 2018-06-12 上海屹通信息科技发展有限公司 Software development methodology and device
CN108846087A (en) * 2018-06-12 2018-11-20 恒生电子股份有限公司 A kind of page rendering method, apparatus, terminal and server
CN109361707A (en) * 2018-12-13 2019-02-19 北京知道创宇信息技术有限公司 A kind of batch query method, apparatus, server and storage medium
CN109359188A (en) * 2018-09-30 2019-02-19 北京数聚鑫云信息技术有限公司 A kind of component method of combination and system
CN109460276A (en) * 2018-10-25 2019-03-12 北京字节跳动网络技术有限公司 The page and page configuration document generating method, device, terminal device and medium
CN109508191A (en) * 2018-11-22 2019-03-22 北京腾云天下科技有限公司 A kind of code generating method and system
CN109901838A (en) * 2019-01-17 2019-06-18 平安证券股份有限公司 Front end development approach, device, equipment and storage medium based on modularization

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5553282A (en) * 1994-12-09 1996-09-03 Taligent, Inc. Software project history database and method of operation
US7451403B1 (en) * 2002-12-20 2008-11-11 Rage Frameworks, Inc. System and method for developing user interfaces purely by modeling as meta data in software application
US20170193042A1 (en) * 2015-12-30 2017-07-06 Facebook, Inc. Optimistic data fetching and rendering
CN108153520A (en) * 2018-03-20 2018-06-12 上海屹通信息科技发展有限公司 Software development methodology and device
CN108846087A (en) * 2018-06-12 2018-11-20 恒生电子股份有限公司 A kind of page rendering method, apparatus, terminal and server
CN109359188A (en) * 2018-09-30 2019-02-19 北京数聚鑫云信息技术有限公司 A kind of component method of combination and system
CN109460276A (en) * 2018-10-25 2019-03-12 北京字节跳动网络技术有限公司 The page and page configuration document generating method, device, terminal device and medium
CN109508191A (en) * 2018-11-22 2019-03-22 北京腾云天下科技有限公司 A kind of code generating method and system
CN109361707A (en) * 2018-12-13 2019-02-19 北京知道创宇信息技术有限公司 A kind of batch query method, apparatus, server and storage medium
CN109901838A (en) * 2019-01-17 2019-06-18 平安证券股份有限公司 Front end development approach, device, equipment and storage medium based on modularization

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928545A (en) * 2019-12-04 2020-03-27 北京小米移动软件有限公司 Component distribution method, single-page application development method, device and storage medium
CN110928545B (en) * 2019-12-04 2024-03-12 北京小米移动软件有限公司 Component distribution method, development method and device of single-page application and storage medium
CN111159108A (en) * 2019-12-18 2020-05-15 北京达佳互联信息技术有限公司 Component management method and device, electronic equipment and storage medium
CN111339125A (en) * 2020-02-24 2020-06-26 山东浪潮商用系统有限公司 Data query method and device
CN111339125B (en) * 2020-02-24 2023-07-25 浪潮软件科技有限公司 Data query method and device
CN111913752A (en) * 2020-06-19 2020-11-10 浙江联控技术有限公司 Function initialization method and device for vehicle skylight and storage medium
CN112114804A (en) * 2020-08-26 2020-12-22 长沙市到家悠享网络科技有限公司 Application program generation method, device and system
CN113590213A (en) * 2021-06-24 2021-11-02 深圳开源互联网安全技术有限公司 Component maintenance method, electronic device, and storage medium
CN113590213B (en) * 2021-06-24 2023-04-25 深圳开源互联网安全技术有限公司 Component maintenance method, electronic device and storage medium
CN114911535A (en) * 2022-04-22 2022-08-16 青岛海尔科技有限公司 Application program component configuration method, storage medium and electronic device
CN114911535B (en) * 2022-04-22 2023-12-19 青岛海尔科技有限公司 Application program component configuration method, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN110489120A (en) Page development method component-based and server
Bilal et al. Big Data in the construction industry: A review of present status, opportunities, and future trends
Nelli Python data analytics with Pandas, NumPy, and Matplotlib
US8340995B2 (en) Method and system of using artifacts to identify elements of a component business model
US20110112986A1 (en) Generative Investment Method and System
CN109948710B (en) Micro-service identification method based on API similarity
CN101315601A (en) System and method for managing resources
US11893341B2 (en) Domain-specific language interpreter and interactive visual interface for rapid screening
AU2017265144B2 (en) Information retrieval
CN101093512A (en) Data filtering method and data filtering system
CN104541297A (en) Extensibility for sales predictor (SPE)
US20210081454A1 (en) Unsupervised automatic taxonomy graph construction using search queries
Hella et al. A structured evaluation to assess the reusability of models of user profiles
CN109299032B (en) Data analysing method, electronic equipment and computer storage medium
Bakaev et al. Web intelligence linked open data for website design reuse
CN112417133A (en) Training method and device of ranking model
CN111984659A (en) Data updating method and device, computer equipment and storage medium
CN111638926A (en) Method for realizing artificial intelligence in Django framework
Uvidia Fassler et al. Moving towards a methodology employing knowledge discovery in databases to assist in decision making regarding academic placement and student admissions for universities
CN115705471A (en) Computer-based system for creating knowledge models of computational semantics and abstractions in interactive and automatic modes using neuron-like representations
CN115186188A (en) Product recommendation method, device and equipment based on behavior analysis and storage medium
Perko et al. Evaluating probability of default: Intelligent agents in managing a multi-model system
CN113961811A (en) Conversational recommendation method, device, equipment and medium based on event map
Liu Apache spark machine learning blueprints
Eldridge Best Practices for Designing Efficient Tableau Workbooks

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