CN107766106B - The method and apparatus for generating configuration file - Google Patents

The method and apparatus for generating configuration file Download PDF

Info

Publication number
CN107766106B
CN107766106B CN201711267362.7A CN201711267362A CN107766106B CN 107766106 B CN107766106 B CN 107766106B CN 201711267362 A CN201711267362 A CN 201711267362A CN 107766106 B CN107766106 B CN 107766106B
Authority
CN
China
Prior art keywords
information
user
operation information
page
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711267362.7A
Other languages
Chinese (zh)
Other versions
CN107766106A (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201711267362.7A priority Critical patent/CN107766106B/en
Publication of CN107766106A publication Critical patent/CN107766106A/en
Application granted granted Critical
Publication of CN107766106B publication Critical patent/CN107766106B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

The embodiment of the present application discloses the method and apparatus for generating configuration file.One specific embodiment of this method includes: the predetermined registration operation edited in response to receiving instruction to target pages element, show the editing interface of the target pages element, the editing interface includes to be selected, at least one user's operation information, and the behavioural information of the page behavior triggered including user's operation indicated by user's operation information to be selected, at least one user's operation information;Determine the selected target user's operation information of selection operation carried out to the user's operation information at least one user's operation information;Determine the selected goal behavior information of selection operation carried out to the behavioural information in each behavioural information;Based on target user's operation information and the goal behavior information, the configuration file of the target pages element is generated.The embodiment of the present application can improve the efficiency for generating the configuration file of page elements by selection user's operation information and behavioural information.

Description

The method and apparatus for generating configuration file
Technical field
The invention relates to field of computer technology, and in particular to Internet technical field, more particularly to generate and match The method and apparatus for setting file.
Background technique
With the rapid development of network technology, the page including webpage has no longer been simple for text information exhibition The carrier shown.Trigger event (such as clicks some button, then shows a page elements or play one to generate page behavior Section video) it has been widely used in the page.In the prior art usually using manual compiling code realize event triggering with And the generation of behavior.
Summary of the invention
The embodiment of the present application proposes the method and apparatus for generating configuration file.
In a first aspect, the embodiment of the present application provides a kind of method for generating configuration file, comprising: in response to receiving The predetermined registration operation that target pages element is edited to instruction, the editing interface of shows target pages element, editing interface packet To be selected, at least one user's operation information is included, and including user's operation to be selected, at least one user's operation information The behavioural information for the page behavior that user's operation indicated by information is triggered;It determines at least one user's operation information The selected target user's operation information of selection operation that user's operation information carries out;It determines to the behavior in each behavioural information The selected goal behavior information of selection operation that information carries out;It is raw based on target user's operation information and goal behavior information At the configuration file of target pages element.
In some embodiments, it is based on target user's operation information and the goal behavior information, generates the mesh Mark the configuration file of page elements, comprising: determine that target user's operation information and the corresponding of the goal behavior information are closed System, and generate the configuration file including identified corresponding relationship, wherein the corresponding relationship is to characterize the target user The behavioural information for the page behavior that user's operation indicated by operation information is triggered is the goal behavior information.
In some embodiments, at least one user's operation information arranges in the form of a list;Each behavioural information is to arrange The form of table arranges.
In some embodiments, method further include: in response to being grasped in the region detection where page elements to target user The user's operation for making information instruction, makes page behavior indicated by goal behavior information.
In some embodiments, method further include: the initialization information and style information for obtaining page elements will initialize Information and style information are added in configuration file.
Second aspect, the embodiment of the present application provide a kind of for generating the device of configuration file, comprising: display unit, It is configured to the predetermined registration operation edited in response to receiving instruction to target pages element, the volume of shows target pages element Editing interface, editing interface include to be selected, at least one user's operation information, and are grasped including to be selected, at least one user Make the behavioural information for the page behavior that user's operation indicated by the user's operation information in information is triggered;First determines list Member is configured to determine the selected mesh of selection operation for carrying out the user's operation information at least one user's operation information Mark user's operation information;Second determination unit is configured to determine the selection for carrying out the behavioural information in each behavioural information Operate selected goal behavior information;Generation unit is configured to based on target user's operation information and goal behavior information, Generate the configuration file of target pages element.
In some embodiments, generation unit is further configured to: determining target user's operation information and described The corresponding relationship of goal behavior information, and generate the configuration file including identified corresponding relationship, wherein the corresponding relationship Behavioural information to characterize the page behavior that user's operation indicated by target user's operation information is triggered is described Goal behavior information.
In some embodiments, at least one user's operation information arranges in the form of a list;Each behavioural information is to arrange The form of table arranges.
In some embodiments, device further include: detection unit is configured in response in the area where page elements Domain detects the user's operation of target user's operation information instruction, makes page behavior indicated by goal behavior information.
In some embodiments, device further include: acquiring unit is configured to obtain the initialization information of page elements And style information, initialization information and style information are added in configuration file.
The method and apparatus provided by the embodiments of the present application for generating configuration file, firstly, in response to receiving instruction to mesh The predetermined registration operation edited of mark page elements, the editing interface of shows target pages element, editing interface include to be selected, extremely A few user's operation information, and including indicated by user's operation information to be selected, at least one user's operation information The behavioural information of page behavior that is triggered of user's operation.Later, it determines to the user at least one user's operation information The selected target user's operation information of selection operation that operation information carries out.Then, it is determined that the row in each behavioural information The selected goal behavior information of selection operation carried out for information.Finally, being based on target user's operation information and goal behavior Information generates the configuration file of target pages element.The embodiment of the present application can be believed by selection user's operation information and behavior Breath improves the efficiency for generating the configuration file of page elements.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the method for the generation configuration file of the application;
Fig. 3 A is the schematic diagram according to an application scenarios of the method for the generation configuration file of the application;
Fig. 3 B is the schematic diagram of the editing interface in the application scenarios of Fig. 3 A;
Fig. 4 is the flow chart according to another embodiment of the method for the generation configuration file of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the device of the generation configuration file of the application;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the implementation of the device of the method or generation configuration file of the generation configuration file of the application The exemplary system architecture 100 of example.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out Send message etc..Various client applications, such as page editing software, webpage can be installed on terminal device 101,102,103 Browser application, shopping class application, searching class application, instant messaging tools, mailbox client, social platform software etc..
Terminal device 101,102,103 can be the various electronic equipments with display screen and page elements editor, packet Include but be not limited to smart phone, tablet computer, E-book reader, pocket computer on knee and desktop computer etc..Eventually End equipment 101,102,103 can by the selected target user's operation information of selection operation and goal behavior information processing, Generate the configuration file of target pages element.
Server 105 can be to provide the server of various services, can be communicated with terminal device 101,102,103 Connection.
It should be noted that the embodiment of the present application provided by generate configuration file method generally by terminal device 101, 102, it 103 executes, correspondingly, the device for generating configuration file is generally positioned in terminal device 101,102,103.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process of one embodiment of the method for the generation configuration file according to the application is shown 200.The method of the generation configuration file, comprising the following steps:
Step 201, predetermined registration operation target pages element edited in response to receiving instruction, shows target pages The editing interface of element.
In the present embodiment, electronic equipment (such as the terminal shown in FIG. 1 of the method operation of configuration file thereon is generated Equipment) can be received by wired connection mode or radio connection instruction target pages element is edited it is pre- If operation, and respond: show the editing interface of above-mentioned target pages element.Editing interface include it is to be selected, at least one User's operation information, and including user indicated by user's operation information to be selected, at least one user's operation information Operate the behavioural information of triggered page behavior.Predetermined registration operation can be any one pre-set operation, for example click Or double-click some region etc. specified in interface.The predetermined registration operation can pass through above-mentioned electronic equipment by the producer of the page To execute.The page can be webpage, the page (such as page of word document) being also possible in some application.Page elements are Form the element of the page, each page elements with it is certain it is regularly arranged, combining just constitutes the page.Target pages element For the page elements artificially selected or machine is selected according to logic of propositions.
User's operation information for the information for indicating operation that user carries out above-mentioned target pages element, be to Family operates the information for being indicated and describing.Here user is the user using page elements.For example user's operation can be Clicked, carry out long-pressing etc., user's operation information can be " click ", be also possible to " long-pressing ".Page behavior is electronics Equipment responds user's operation behavior done in the page, is triggered by user's operation.Behavioural information be to page behavior into Row indicates and the information of description.For example, page behavior can be the page behavior for the picture in " photograph album ", for example hold Row jumps to lower one page, executes and translate into one, do not show or show etc..It is also possible to the page line for " counter " For, for example shown in the page and add 1, display subtracts 5 or display is reset etc..Correspondingly, behavioural information, which can be, " jumps to next Page ", " translating into one ", " hiding " or " display " etc..It is also possible to "+1 ", " -5 " or " clearing " etc..
Herein, at least one user's operation information can be shown in editing interface all, simultaneously.It can also only show One of those, and hide others.The display mode of each behavioural information is same as above.
It should be noted that electronic equipment here not only can be terminal device, it is also possible to other electricity such as server Sub- equipment.
Step 202, it determines selected by the selection operation carried out to the user's operation information at least one user's operation information The target user's operation information selected.
In the present embodiment, above-mentioned electronic equipment, which determines, believes the user's operation at least one above-mentioned user's operation information The selected user's operation information of selection operation carried out is ceased, and is operated selected user's operation information as target user Information.Specifically, the producer of the page will do it the selection operation to user's operation information, extremely in edit page A user's operation information is selected in a few user's operation information.After selection, above-mentioned electronic equipment can then determine mesh Mark user's operation information.Goal user's operation information is the user's operation information selected.
Specifically, above-mentioned electronic equipment can detect in the selection region of the user's operation information of above-mentioned editing interface It to the selection operation to a user's operation information at least one user's operation information, then responds: by above-mentioned selection It operates a selected user's operation information and is determined as target user's operation information.
Step 203, the selected goal behavior of selection operation carried out to the behavioural information in each behavioural information is determined Information.
In the present embodiment, above-mentioned electronic equipment determines the selection operation carried out to the behavioural information in each behavioural information Selected behavioural information, and using selected behavioural information as goal behavior information.Goal behavior information is the row selected For information.Specifically, the producer of the page will do it the selection operation to behavioural information, each in edit page A behavioural information is selected in behavioural information.After selection, above-mentioned electronic equipment can then determine goal behavior information.Here Each behavioural information be each behavioural information corresponding to each user's operation information at least one user's operation information.
Specifically, above-mentioned electronic equipment can detect pair in the selection region of the behavioural information of above-mentioned editing interface The selection operation of a behavioural information in each behavioural information, then respond: by above-mentioned selection operation selected one Behavioural information is determined as goal behavior information.
Step 204, it is based on target user's operation information and goal behavior information, generates the configuration text of target pages element Part.
In the present embodiment, above-mentioned electronic equipment is based on identified target user's operation information and identified target line For information, the configuration file of above-mentioned target pages element is generated.It may include realizing that target user operates letter in configuration file The code of the indicated user's operation of breath can also include the code for realizing page behavior indicated by goal behavior information.This It outside, can also include for realizing indicated by the triggering goal behavior information of the user's operation as indicated by target user's operation information Page behavior logical data, logical data here is also possible to one section of code.
In practice, each page elements setting user's operation where target pages element in the page can be believed in advance The mapping table of the configuration file of breath, behavioural information and page elements.During determining configuration file, target is first determined The mapping table of page elements, can be in the mapping table using target user's operation information and goal behavior information Find the configuration file of target pages element.It include the code write in advance in configuration file.In addition it is also possible in advance It is packaged for the code for realizing user's operation indicated by different user's operation informations, and rows different to realization in advance Code for page behavior indicated by information is packaged.Determine target user's operation information and goal behavior information it Afterwards, the code for realizing above-mentioned user's operation is found, and finds the code for realizing above-mentioned page behavior.It ultimately produces including finding The configuration file of code.
With continued reference to Fig. 3 A, Fig. 3 A is shown according to one of the application scenarios of the method for the generation configuration file of the present embodiment It is intended to.In the application scenarios of Fig. 3, electronic equipment 301 in response to receive instruction the button a in the page is edited it is pre- If operation, the editing interface 302 of the Show Button a, editing interface is as shown in Figure 3B, and editing interface 302 includes to be selected, 3 use Family operation information, and touched including user's operation indicated by user's operation informations to be selected, in 3 user's operation informations The behavioural information of the page behavior of hair;Determine the selection operation institute carried out to the user's operation information in 3 user's operation informations The user's operation information 303 of selection: it clicks;It determines selected by the selection operation carried out to the behavioural information in each behavioural information Behavioural information 304: translate into one;Based on target user's operation information and goal behavior information, the configuration text of button a is generated Part 305.
The method provided by the above embodiment of the application improves generation by selection user's operation information and behavioural information The efficiency of the configuration file of page elements.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of the method for generating configuration file.The life At the process 400 of the method for configuration file, comprising the following steps:
Step 401, predetermined registration operation target pages element edited in response to receiving instruction, shows target pages The editing interface of element.
In the present embodiment, electronic equipment (such as the terminal shown in FIG. 1 of the method operation of configuration file thereon is generated Equipment) can be received by wired connection mode or radio connection instruction target pages element is edited it is pre- If operation, and respond: show the editing interface of above-mentioned target pages element.Editing interface include it is to be selected, at least one User's operation information, and including user indicated by user's operation information to be selected, at least one user's operation information Operate the behavioural information of triggered page behavior.Predetermined registration operation can be any one pre-set operation, for example click Or double-click some region etc. specified in interface.The predetermined registration operation can be executed by the producer of the page.The page can be with It is webpage, the page being also possible in the application such as word.Page elements are the element for forming the page, and each page elements are with certain It is regularly arranged, combining just constitutes the page.Target pages element is that artificial selected or machine is selected according to logic of propositions Fixed page elements.
In some optional implementations of the present embodiment, user's operation information at least one user's operation information Quantity is at least two, at least one user's operation information arranges in the form of a list;Behavioural information in each behavioural information Quantity is at least two, and each behavioural information arranges in the form of a list.
In the present embodiment, editing interface can only show that a user's operation at least one user's operation information is believed Breath, and hide others.After being operated to some icon (such as inverted triangle) in user's operation information region, It can show a drop-down list, list may include at least two user's operation informations.Equally, editing interface can only be shown One in each behavioural information, and hide others.
Step 402, it determines selected by the selection operation carried out to the user's operation information at least one user's operation information The target user's operation information selected.
In the present embodiment, above-mentioned electronic equipment, which determines, believes the user's operation at least one above-mentioned user's operation information The selected user's operation information of selection operation carried out is ceased, and is operated selected user's operation information as target user Information.Specifically, the producer of the page will do it the selection operation to user's operation information, extremely in edit page A user's operation information is selected in a few user's operation information.After selection, above-mentioned electronic equipment can then determine mesh Mark user's operation information.Goal user's operation information is the user's operation information selected.
Specifically, above-mentioned electronic equipment can detect in the selection region of the user's operation information of above-mentioned editing interface It to the selection operation to a user's operation information at least one user's operation information, then responds: by above-mentioned selection It operates a selected user's operation information and is determined as target user's operation information.
Step 403, the selected goal behavior of selection operation carried out to the behavioural information in each behavioural information is determined Information.
In the present embodiment, above-mentioned electronic equipment determines the selection operation carried out to the behavioural information in each behavioural information Selected behavioural information, and using selected behavioural information as goal behavior information.Goal behavior information is the row selected For information.Specifically, the producer of the page will do it the selection operation to behavioural information, each in edit page A behavioural information is selected in behavioural information.After selection, above-mentioned electronic equipment can then determine goal behavior information.Here Each behavioural information be each behavioural information corresponding to each user's operation information at least one user's operation information.
Specifically, above-mentioned electronic equipment can detect pair in the selection region of the behavioural information of above-mentioned editing interface The selection operation of a behavioural information in each behavioural information, then respond: by above-mentioned selection operation selected one Behavioural information is determined as goal behavior information.
Step 404, the corresponding relationship of target user's operation information and goal behavior information is determined, and generating includes determining Corresponding relationship configuration file.
In the present embodiment, above-mentioned electronic equipment determines above-mentioned target user's operation information and above-mentioned goal behavior information Corresponding relationship generates the configuration file including the corresponding relationship later.Wherein, configuration file include target user's operation information and The corresponding relationship of goal behavior information, corresponding relationship are triggered to characterize user's operation indicated by target user's operation information Page behavior behavioural information be goal behavior information.In addition, can also include realizing target user behaviour in configuration file Make the code of page behavior indicated by user's operation indicated by information and goal behavior information.
Step 405, the initialization information and style information for obtaining page elements add initialization information and style information Into configuration file.
In the present embodiment, above-mentioned electronic equipment obtains the initial of above-mentioned page elements from local or other electronic equipments Change information and style information, and acquired initialization information and style information are added to the configuration file that step 404 generates In.The initialization information of page elements is to carry out information required for Initialize installation to page elements, shows as the shape of code Formula.The style information of page elements is the information of the pattern presented in the page in relation to page elements, can also equally be showed For the form of code.
Step 406, it is grasped in response to the user indicated in the region detection where page elements to target user's operation information Make, makes page behavior indicated by goal behavior information.
In the present embodiment, above-mentioned electronic equipment detects that target user operates in the region where above-mentioned page elements The user's operation of information instruction, then respond: making page behavior indicated by above-mentioned goal behavior information.On being configured with After stating configuration file, user can be operated the above-mentioned page elements in the page.If the operation that user carries out is mesh The user's operation of user's operation information instruction is marked, then above-mentioned electronic equipment can make goal behavior letter according to above-mentioned corresponding relationship The indicated page behavior of breath.For example, user carries out clicking operation to page elements, in the display interface of above-mentioned electronic equipment Photograph album translates into a picture.
The present embodiment can be generated more by the corresponding relationship of storage target user's operation information and goal behavior information Accurate configuration file.Simultaneously by the spread pattern of list, user more abundant can be provided for the generation of configuration file Operation information and behavioural information are for selection.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides one kind to match for generating One embodiment of the device of file is set, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically may be used To be applied in various electronic equipments.
As shown in figure 5, the device 500 for generating configuration file of the present embodiment includes: that display unit 501, first is true Order member 502, the second determination unit 503 and generation unit 504.Wherein, display unit 501 are configured in response to receiving Indicate the predetermined registration operation edited to target pages element, the editing interface of shows target pages element, editing interface includes To be selected, at least one user's operation information, and including user's operation letter to be selected, at least one user's operation information The behavioural information for the page behavior that the indicated user's operation of breath is triggered;First determination unit 502 is configured to determine to extremely The selected target user's operation information of selection operation that user's operation information in a few user's operation information carries out;Second Determination unit 503 is configured to determine the selected target of selection operation for carrying out the behavioural information in each behavioural information Behavioural information;Generation unit 504 is configured to generate target pages based on target user's operation information and goal behavior information The configuration file of element.
In this example it is shown that unit 501 can receive finger by wired connection mode or radio connection Show the predetermined registration operation edited to target pages element, and respond: showing the editing interface of above-mentioned target pages element. Editing interface includes to be selected, at least one user's operation information, and including in be selected, at least one user's operation information User's operation information indicated by the behavioural information of page behavior that is triggered of user's operation.Predetermined registration operation can be to be set in advance Any one operation set, for example click or double-click some region etc. in specified interface.The predetermined registration operation can be by the page Producer execute.The page can be webpage, the page (such as page of word document) being also possible in some application. Page elements are the element for forming the page, each page elements with it is certain it is regularly arranged, combining just constitutes the page.Mesh Marking page elements is the page elements that artificial selected or machine is selected according to logic of propositions.
First determination unit 502 determines the choosing carried out to the user's operation information at least one above-mentioned user's operation information The selected user's operation information of operation is selected, and using selected user's operation information as target user's operation information.Specifically Ground, the producer of the page will do it the selection operation to user's operation information in edit page, at least one user A user's operation information is selected in operation information.After selection, the first determination unit 502 can then determine that target user grasps Make information.Goal user's operation information is the user's operation information selected.
Second determination unit 503 determines that the selection operation selected row carried out to the behavioural information in each behavioural information is Information, and using selected behavioural information as goal behavior information.Specifically, the producer of the page is in edit page, It will do it the selection operation to behavioural information, to select a behavioural information in each behavioural information.After selection, second Determination unit 503 can then determine goal behavior information.Goal behavioural information is the behavioural information selected.
Generation unit 504 is based on identified target user's operation information and identified goal behavior information, in generation State the configuration file of target pages element.It may include realizing user indicated by target user's operation information in configuration file The code of operation can also include and realize the code of page behavior indicated by goal behavior information.Further, it is also possible to wrap Include the corresponding relationship of target user's operation information and goal behavior information.
In some optional implementations of the present embodiment, generation unit is further configured to: determining the target The corresponding relationship of user's operation information and the goal behavior information, and generate the configuration text including identified corresponding relationship Part, wherein the page that the corresponding relationship is triggered to characterize user's operation indicated by target user's operation information The behavioural information of behavior is the goal behavior information.
In some optional implementations of the present embodiment, at least one user's operation information is arranged in the form of a list Column;Each behavioural information arranges in the form of a list.
In some optional implementations of the present embodiment, the device further include: detection unit, be configured in response to In the user's operation that the region detection where page elements is indicated to target user's operation information, it is signified to make goal behavior information The page behavior shown.
In some optional implementations of the present embodiment, the device further include: acquiring unit is configured to obtain page The initialization information and style information of surface element, initialization information and style information are added in configuration file.
Below with reference to Fig. 6, it illustrates the computer systems 600 for the electronic equipment for being suitable for being used to realize the embodiment of the present application Structural schematic diagram.Electronic equipment shown in Fig. 6 is only an example, function to the embodiment of the present application and should not use model Shroud carrys out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media 611 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processes Above-mentioned function.It should be noted that the computer-readable medium of the application can be computer-readable signal media or calculating Machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but it is unlimited In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates The more specific example of machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, portable of one or more conducting wires Formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or The above-mentioned any appropriate combination of person.In this application, computer readable storage medium can be it is any include or storage program Tangible medium, which can be commanded execution system, device or device use or in connection.And in this Shen Please in, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable Any computer-readable medium other than storage medium, the computer-readable medium can send, propagate or transmit for by Instruction execution system, device or device use or program in connection.The journey for including on computer-readable medium Sequence code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include display unit, the first determination unit, the second determination unit and generation unit.Wherein, the title of these units is in certain situation Under do not constitute restriction to the unit itself, for example, display unit is also described as the " volume of shows target pages element The unit of editing interface ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should Device: the predetermined registration operation that target pages element is edited in response to receiving instruction, the editor of shows target pages element Interface, editing interface include to be selected, at least one user's operation information, and including to be selected, at least one user's operation The behavioural information for the page behavior that user's operation indicated by user's operation information in information is triggered;It determines at least one The selected target user's operation information of selection operation that user's operation information in user's operation information carries out;It determines to each The selected goal behavior information of selection operation that behavioural information in behavioural information carries out;Based on target user's operation information and Goal behavior information generates the configuration file of target pages element.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (8)

1. a kind of method for generating configuration file, comprising:
The predetermined registration operation edited in response to receiving instruction to target pages element, shows the volume of the target pages element Editing interface, the editing interface include to be selected, at least one user's operation information, and including to be selected, described at least one The behavioural information for the page behavior that user's operation indicated by user's operation information in a user's operation information is triggered;
Determine the selected target of selection operation carried out to the user's operation information at least one described user's operation information User's operation information;
Determine the selected goal behavior information of selection operation carried out to the behavioural information in each behavioural information;
Based on target user's operation information and the goal behavior information, the configuration text of the target pages element is generated Part;
Wherein, described to be based on target user's operation information and the goal behavior information, generate the target pages element Configuration file, comprising:
In advance to realizing that the code of user's operation indicated by different user's operation information is packaged, and in advance to realizing not The code of page behavior indicated by same behavioural information is packaged;It searches and realizes indicated by target user's operation information User's operation code, and search the code for realizing page behavior indicated by the goal behavior information, generating includes looking for The configuration file of the code arrived;
The method also includes:
The initialization information and style information for obtaining the page elements add the initialization information and the style information Into the configuration file.
2. the method according to claim 1 for generating configuration file, wherein at least one described user's operation information It arranges in the form of a list;Each behavioural information arranges in the form of a list.
3. the method according to claim 1 for generating configuration file, wherein the method also includes:
In response to the user's operation indicated in the region detection where the page elements to target user's operation information, do Page behavior indicated by the goal behavior information out.
4. a kind of for generating the device of configuration file, comprising:
Display unit is configured to the predetermined registration operation edited in response to receiving instruction to target pages element, shows institute The editing interface of target pages element is stated, the editing interface includes to be selected, at least one user's operation information, and including The page line that user's operation indicated by user's operation information at least one to be selected, described user's operation information is triggered For behavioural information;
First determination unit is configured to determine to the user's operation information progress at least one described user's operation information The selected target user's operation information of selection operation;
Second determination unit is configured to determine that the selection operation for carrying out the behavioural information in each behavioural information is selected Goal behavior information;
Generation unit is configured to generate the target based on target user's operation information and the goal behavior information The configuration file of page elements;
Wherein, the generation unit is further configured to:
In advance to realizing that the code of user's operation indicated by different user's operation information is packaged, and in advance to realizing not The code of page behavior indicated by same behavioural information is packaged;It searches and realizes indicated by target user's operation information User's operation code, and search the code for realizing page behavior indicated by the goal behavior information, generating includes looking for The configuration file of the code arrived;
Described device further include:
Adding unit is configured to obtain the initialization information and style information of the page elements, by the initialization information It is added in the configuration file with the style information.
5. according to claim 4 for generating the device of configuration file, wherein at least one described user's operation information It arranges in the form of a list;Each behavioural information arranges in the form of a list.
6. according to claim 4 for generating the device of configuration file, wherein described device further include:
Detection unit is configured in response in the region detection where the page elements to target user's operation information The user's operation of instruction makes page behavior indicated by the goal behavior information.
7. a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1-3.
8. a kind of computer readable storage medium, is stored thereon with computer program, wherein real when the program is executed by processor Now such as method as claimed in any one of claims 1-3.
CN201711267362.7A 2017-12-05 2017-12-05 The method and apparatus for generating configuration file Active CN107766106B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711267362.7A CN107766106B (en) 2017-12-05 2017-12-05 The method and apparatus for generating configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711267362.7A CN107766106B (en) 2017-12-05 2017-12-05 The method and apparatus for generating configuration file

Publications (2)

Publication Number Publication Date
CN107766106A CN107766106A (en) 2018-03-06
CN107766106B true CN107766106B (en) 2019-07-09

Family

ID=61277383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711267362.7A Active CN107766106B (en) 2017-12-05 2017-12-05 The method and apparatus for generating configuration file

Country Status (1)

Country Link
CN (1) CN107766106B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367517B (en) * 2018-12-26 2023-05-09 北京易数科技有限公司 Information generation method and device
CN110109727A (en) * 2019-04-30 2019-08-09 上海掌门科技有限公司 The configuration method and device of application
CN111124541B (en) * 2019-12-25 2023-09-08 上海米哈游网络科技股份有限公司 Configuration file generation method, device, equipment and medium
CN113781608A (en) * 2021-01-29 2021-12-10 北京沃东天骏信息技术有限公司 Animation editing method and device
CN113486102A (en) * 2021-07-05 2021-10-08 成都运达科技股份有限公司 Station yard schematic diagram configuration method and configuration system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593207A (en) * 2009-07-06 2009-12-02 孟智平 The method and system of a kind of structure and generation webpage
CN103365633A (en) * 2012-03-27 2013-10-23 腾讯科技(深圳)有限公司 Brower game editing method and device
CN106844635A (en) * 2017-01-19 2017-06-13 腾讯科技(深圳)有限公司 The edit methods and device of the element in webpage

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070067714A1 (en) * 2005-09-16 2007-03-22 Shui-Shun Lin Modularized web page editing system and method thereof
CN101118493A (en) * 2007-09-17 2008-02-06 张威 Process for manufacturing dynamic website in web page browsers
CN102479224A (en) * 2010-11-23 2012-05-30 腾讯科技(深圳)有限公司 Application webpage editing method and application webpage editing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593207A (en) * 2009-07-06 2009-12-02 孟智平 The method and system of a kind of structure and generation webpage
CN103365633A (en) * 2012-03-27 2013-10-23 腾讯科技(深圳)有限公司 Brower game editing method and device
CN106844635A (en) * 2017-01-19 2017-06-13 腾讯科技(深圳)有限公司 The edit methods and device of the element in webpage

Also Published As

Publication number Publication date
CN107766106A (en) 2018-03-06

Similar Documents

Publication Publication Date Title
CN107766106B (en) The method and apparatus for generating configuration file
KR102006396B1 (en) Identifying matching applications based on browsing activity
CN104115143B (en) Multiple tabss stack user interface
CN109460513A (en) Method and apparatus for generating clicking rate prediction model
CN103777967B (en) Page returning method, page generation method and device
CN104427395A (en) Electronic device and method for using captured image in electronic device
CN109803008B (en) Method and apparatus for displaying information
CN104395882A (en) Creation and context-aware presentation of customized emoticon item sets
CN107506495A (en) Information-pushing method and device
CN109446442B (en) Method and apparatus for processing information
CN108932147A (en) Method and apparatus for switching boarding application
CN109815416A (en) Method for pushing, the device of related information, electronic equipment and storage medium
CN110298716A (en) Information-pushing method and device
CN109495552A (en) Method and apparatus for updating clicking rate prediction model
CN106662986A (en) Optimized browser rendering process
CN109582873A (en) Method and apparatus for pushed information
CN109688428A (en) Video comments generation method and device
CN107203372A (en) Control shows method and device
CN109862100A (en) Method and apparatus for pushed information
CN109002282A (en) A kind of method and apparatus for realizing animation effect in web page exploitation
CN108959642A (en) Method and apparatus for information to be written
CN102880716B (en) The active being identified the inter-related task of entity is paid
CN109408748A (en) Method and apparatus for handling information
CN109992177A (en) User interaction approach, system, electronic equipment and the computer media of electronic equipment
CN109408647B (en) Method and apparatus for processing information

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