CN109753612A - Control method, device, storage medium and the electronic equipment that questionnaire is shown - Google Patents
Control method, device, storage medium and the electronic equipment that questionnaire is shown Download PDFInfo
- Publication number
- CN109753612A CN109753612A CN201811489975.XA CN201811489975A CN109753612A CN 109753612 A CN109753612 A CN 109753612A CN 201811489975 A CN201811489975 A CN 201811489975A CN 109753612 A CN109753612 A CN 109753612A
- Authority
- CN
- China
- Prior art keywords
- topic
- option
- binding relationship
- display strategy
- binding
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
This disclosure relates to a kind of control method that questionnaire is shown, device, storage medium and electronic equipment, it is related to information technology field, this method comprises: obtaining the corresponding first choice instruction of the first topic, the first option that first choice instruction is used to indicate in the first topic is selected, the any topic currently shown in first entitled questionnaire, first option is any option of the first topic, according to the logical attribute of first choice instruction and the first topic, determining the second topic with the binding of the first option, with the first display strategy of the second topic, logical attribute includes the corresponding binding relationship of each option of the first topic, the corresponding binding relationship of any option includes the target topic with the binding of any option, and when any option is selected target topic display strategy, according to the first display strategy, control H corresponding to the second topic The Rendering operations of TML element.It can be improved the response speed and stability that questionnaire is shown.
Description
Technical field
This disclosure relates to information technology field, and in particular, to a kind of control method that questionnaire is shown, device, storage are situated between
Matter and electronic equipment.
Background technique
Questionnaire is a kind of common tool for data collection, is more and more used for quantitative study, it has also become
One of major way of The Study of Sociology.With the fast development of the information technologies such as internet, cloud computing and Internet of Things, and ask
The design of volume, fill in, collection process can realize that network questionnaire becomes questionnaire in practice by network
Main forms.As the utilization rate of network questionnaire is higher and higher, the design of network questionnaire is also all the more complicated, for use
Family group is also more comprehensive, therefore would generally jump logic comprising multiple in network questionnaire, and designer wishes different crowd's energy
Different topics can be jumped to that is, for option different in one of topic by enough answering different problems.In the prior art,
It needs to write a large amount of code of monitoring to monitor each option in topic, and needs to inquire DOM (English: Document repeatedly
Object Model, Chinese: DOM Document Object Model) element, process is cumbersome, causes network questionnaire during display, responds
Speed is slow, and is easy to appear shake.
Summary of the invention
Purpose of this disclosure is to provide a kind of control method that questionnaire is shown, device, storage medium and electronic equipment, to
Solve that response speed that questionnaire existing in the prior art is shown is slow, is easy to appear the problems such as shake.
To achieve the goals above, the disclosure provides a kind of control method that questionnaire is shown, which comprises
The corresponding first choice instruction of the first topic is obtained, the first choice instruction is used to indicate in first topic
The first option selected, any topic currently shown in the first entitled questionnaire, first option is described
Any option of first topic;
It is bound according to the logical attribute of first choice instruction and first topic, determining and first option
First display strategy of the second topic and second topic, the logical attribute include each option of first topic
The corresponding binding relationship, the corresponding binding relationship of any option include inscribing with the target of any option binding
Mesh, and when any option is selected the target topic display strategy;
According to first display strategy, the Rendering operations to the corresponding HTML element of second topic are controlled.
Optionally, described according to first display strategy, control the corresponding HTML element of second topic, comprising:
When first display strategy is display, according to the corresponding HTML element of second topic to second topic
Mesh is rendered, to show second topic;
When first display strategy is to hide, the corresponding HTML element of second topic is hidden.
It optionally, include the option of any option in the corresponding binding relationship of any option in the logical attribute
Identification number;The logical attribute according to first choice instruction and first topic, determination are tied up with first option
First display strategy of fixed the second topic and second topic, comprising:
It is instructed according to the first choice, obtains Option No. the first of first option;
The first binding relationship is determined in the logical attribute of first topic according to the Option No. first, it is described
First binding relationship is the binding relationship in the logical attribute including the Option No. first;
According to first binding relationship, the first display plan of second topic and second topic is determined
Slightly.
Optionally, it is controlled according to first display strategy to the corresponding HTML element of second topic described
After Rendering operations, the method also includes:
The third topic in logical attribute including the second binding relationship is determined whether there is, second binding relationship is packet
Include the binding relationship of second topic;
When there are the third topic, corresponding second selection instruction of the third topic, second selection are obtained
Instruction is used to indicate in the third topic, and the second option of the second binding relationship instruction is selected;
Second display strategy of second topic indicated by second binding relationship and the first display plan
When slightly identical, the corresponding HTML element of second topic is kept;
Second display strategy of second topic indicated by second binding relationship and the first display plan
When slightly not identical, according to second display strategy, the Rendering operations to the corresponding HTML element of second topic are controlled.
Optionally, the logical attribute of the 4th topic is stored in the corresponding HTML element of the 4th topic, described
Any topic in the 4th entitled questionnaire.
According to the second aspect of an embodiment of the present disclosure, a kind of control device that questionnaire is shown is provided, described device includes:
First obtains module, and for obtaining the corresponding first choice instruction of the first topic, the first choice instruction is used for
Indicate that the first option in first topic is selected, any topic currently shown in the first entitled questionnaire,
First option is any option of first topic;
First determining module, for according to the first choice instruction and first topic logical attribute, determine with
Second topic of the first option binding and the first display strategy of second topic, the logical attribute includes described
The corresponding binding relationship of each option of first topic, the corresponding binding relationship of any option include with it is described any
Option binding target topic, and when any option is selected the target topic display strategy;
Control module, for controlling to the corresponding HTML element of second topic according to first display strategy
Rendering operations.
Optionally, the control module includes:
First control submodule is used for when first display strategy is display, corresponding according to second topic
HTML element renders second topic, to show second topic;
Second control submodule, for it is corresponding to hide second topic when first display strategy is to hide
HTML element.
It optionally, include the option of any option in the corresponding binding relationship of any option in the logical attribute
Identification number;
First determining module includes:
Acquisition submodule obtains Option No. the first of first option for instructing according to the first choice;
First determines submodule, for true in the logical attribute of first topic according to the Option No. first
Fixed first binding relationship, first binding relationship are that the binding in the logical attribute including the Option No. first is closed
System;
Second determines submodule, for determining second topic and second topic according to first binding relationship
First display strategy described in purpose.
Optionally, described device further include:
Second determining module, for, according to first display strategy, being controlled corresponding to second topic described
After the Rendering operations of HTML element, it is determined whether described there are the third topic in logical attribute including the second binding relationship
Second binding relationship is the binding relationship for including second topic;
Second obtains module, for when there are the third topic, obtaining corresponding second selection of the third topic
Instruction, second selection instruction are used to indicate in the third topic, the second option of the second binding relationship instruction
It is selected;
The control module is also used to work as the second display plan of second topic indicated by second binding relationship
When slightly identical with first display strategy, the corresponding HTML element of second topic is kept;
The control module is also used to work as the second display plan of second topic indicated by second binding relationship
When slightly and first display strategy is not identical, according to second display strategy, control corresponding to second topic
The Rendering operations of HTML element.
Optionally, the logical attribute of the 4th topic is stored in the corresponding HTML element of the 4th topic, described
Any topic in the 4th entitled questionnaire.
According to the third aspect of an embodiment of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with
The step of machine program, the control method that the questionnaire that realization first aspect provides when which is executed by processor is shown.
According to a fourth aspect of embodiments of the present disclosure, a kind of electronic equipment is provided, comprising:
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize the questionnaire of first aspect offer
The step of control method of display.
Through the above technical solutions, the disclosure obtains corresponding first be used to indicate in the first topic of the first topic first
The first choice that option has been selected instructs, any topic currently shown in the first entitled questionnaire, further according to first choice
The logical attribute of instruction and the first topic, to determine the second topic and the second topic corresponding first with the binding of the first option
Display strategy, wherein logical attribute include in the first topic the corresponding binding relationship of each option, each binding relationship include
With the target topic of option binding, and when the option is selected, the display strategy of target topic, finally, aobvious according to first
Show strategy, controls the Rendering operations to the corresponding HTML element of the second topic.A large amount of monitoring code and inquiry text can be reduced
The operation of shelves element improves response speed and stability that questionnaire is shown.
Other feature and advantage of the disclosure will the following detailed description will be given in the detailed implementation section.
Detailed description of the invention
Attached drawing is and to constitute part of specification for providing further understanding of the disclosure, with following tool
Body embodiment is used to explain the disclosure together, but does not constitute the limitation to the disclosure.In the accompanying drawings:
Fig. 1 is the flow chart for the control method that a kind of questionnaire shown according to an exemplary embodiment is shown;
Fig. 2 is the flow chart for the control method that another questionnaire shown according to an exemplary embodiment is shown;
Fig. 3 is the flow chart for the control method that another questionnaire shown according to an exemplary embodiment is shown;
Fig. 4 is the flow chart for the control method that another questionnaire shown according to an exemplary embodiment is shown;
Fig. 5 is the block diagram for the control device that a kind of questionnaire shown according to an exemplary embodiment is shown;
Fig. 6 is the block diagram for the control device that another questionnaire shown according to an exemplary embodiment is shown;
Fig. 7 is the block diagram for the control device that another questionnaire shown according to an exemplary embodiment is shown;
Fig. 8 is the block diagram for the control device that another questionnaire shown according to an exemplary embodiment is shown;
Fig. 9 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Before control method, device, storage medium and the electronic equipment that the questionnaire for introducing disclosure offer is shown, first
Application scenarios involved in embodiment each in the disclosure are introduced, which is display circle that user passes through terminal
Face obtains questionnaire, and can carry out specified operation in the display interface and currently show on display interface in questionnaire to choose
Any option of any topic.Wherein, terminal can be smart phone, tablet computer, smart television, smartwatch, PDA (English
Text: PersonalDigital Assistant, Chinese: personal digital assistant), portable computer etc. have the shifting of display interface
Dynamic terminal, is also possible to the fixed terminals such as desktop computer.
Fig. 1 is the flow chart for the control method that a kind of questionnaire shown according to an exemplary embodiment is shown, such as Fig. 1 institute
Show, this method comprises:
Step 101, the corresponding first choice instruction of the first topic is obtained, first choice instruction is used to indicate in the first topic
The first option selected, any topic currently shown in the first entitled questionnaire, the first option be the first topic appoint
One option.
For example, user is filled in questionnaires by terminal, wherein questionnaire may include multiple topics, each topic
It may include multiple options.On the display interface of terminal, the topic quantity currently shown can be whole topics in questionnaire,
It can also be with the part topic in questionnaire.The first choice instruction that user issues is obtained, first choice instruction can indicate the first topic
The first option in mesh is selected, such as user can the area shown by the first option of corresponding first topic of display interface
In domain, specified operation (such as: click, double-click, long-pressing etc. operation) is carried out to issue first choice instruction, wherein the first topic
Mesh is any topic currently shown in questionnaire, and the first option is any option of the first topic.It should be noted that obtaining
Before any selection instruction that user issues, initial topic can be first shown in the display interface, wherein initial entitled questionnaire
Topic to be shown is needed when any selection instruction has not been obtained, it can be understood as the state of initial topic is often to show state, no
Any option in any topic is selected by user, initial topic, which is all displayed on the display interface always, (each to be filled in this to ask
The user of volume requires the topic filled in), the quantity of initial topic can be one, be also possible to multiple.
Step 102, according to the logical attribute of first choice instruction and the first topic, determining second with the binding of the first option
First display strategy of topic and the second topic, logical attribute include the corresponding binding relationship of each option of the first topic, are appointed
The corresponding binding relationship of one option includes the target topic with the binding of any option, and target is inscribed when any option is selected
Purpose display strategy.
It is exemplary, since questionnaire is during design, in order to make problem that more there is specific aim, it will usually include multiple
Logic is jumped, so that different crowds (crowds of selection different options) can answer different problems, that is, is directed to one of topic
Middle different option, can jump to different topics.Therefore it can will jump logic and be assigned in the form of logical attribute and ask
Each topic (attribute is extended to each topic in questionnaire) in volume.Wherein, logical attribute includes in the first topic
Each option is corresponding to tie up relationship, and the corresponding binding relationship of any option includes the target topic with the binding of any option, and
The display strategy of target topic when any option is selected, display strategy may include: display and hide (such as binding close
Different display strategies can be respectively indicated in system with " 0 " and " 1 ").After step 101 gets first choice instruction, root
According to the first indicated option of first choice instruction, searched and the matched binding of the first option in the logical attribute of the first topic
Relationship, so that it is determined that with the second topic of the first option binding and the first display strategy of the second topic.Such as: it is wrapped in questionnaire
Topic 1 (including option A and B), topic 2 and topic 3 are included, jumping logic may include: the topic when the option A of topic 1 is selected
Mesh 2 shows that topic 3 is hidden, and when the option B of topic 1 is selected, topic 2 is hidden, and topic 3 is shown.So topic 1 is corresponding
Logical attribute may include four binding relationships: binding relationship a includes: that option A and topic 2 are bound, topic when option A is selected
2 display strategy is display, and binding relationship b includes: that option A and topic 3 are bound, the display strategy of topic 3 when option A is selected
Be it is hiding, binding relationship c includes: that option B and topic 2 are bound, and the display strategy of topic 2 be hiding when option B is selected, and is bound
Relationship d includes: that option B and topic 3 are bound, and the display strategy of topic 3 is display when option B is selected.
Step 103, according to the first display strategy, the Rendering operations to the corresponding HTML element of the second topic are controlled.
It is exemplary, according to the first display strategy determined in step 102, control HTML corresponding to the second topic (it is English:
Hyper Text Markup Language, Chinese: HyperText Markup Language) and element (such as: paragraph marks, document markup
Deng) Rendering operations, to achieve the purpose that control the second topic show or hide in the display interface.
In conclusion the disclosure obtain first corresponding the first option being used to indicate in the first topic of the first topic by
The first choice of selection instructs, any topic currently shown in the first entitled questionnaire, further according to first choice instruction and the
The logical attribute of one topic, to determine the second topic and corresponding first display strategy of the second topic with the binding of the first option,
Wherein, logical attribute includes the corresponding binding relationship of each option in the first topic, and each binding relationship includes and option
The target topic of binding, and when the option is selected, the display strategy of target topic, finally, according to the first display strategy, control
Make the Rendering operations to the corresponding HTML element of the second topic.The a large amount of behaviour for monitoring code and inquiring document elements can be reduced
Make, improves response speed and stability that questionnaire is shown.
Fig. 2 is the flow chart for the control method that another questionnaire shown according to an exemplary embodiment is shown, such as Fig. 2 institute
Show, step 103 may include following two implementation:
Step 1031, when the first display strategy is display, according to the corresponding HTML element of the second topic to the second topic
It is rendered, to show the second topic.
Step 1032, when the first display strategy is to hide, the corresponding HTML element of the second topic is hidden.
For example, the display strategy indicated in binding relationship can be divided into display and hide two kinds, when the first display plan
When slightly showing, the second topic is rendered according to the corresponding HTML element of the second topic, to show in the display interface
Two topics.When the first display strategy is to hide, the corresponding HTML element of the second topic is hidden.For example, in topic 1 include two
A option: "Yes" and "No" include two binding relationships in the logical attribute of topic 1: option "Yes" and topic 2 are bound, choosing
The first display strategy of topic 2 is display when item "Yes" is selected;Option "No" and topic 2 are bound, when option "No" is selected
First display strategy of topic 2 is hiding.So, when user selects option "Yes", according to the corresponding HTML element pair of topic 2
Topic 2 is rendered, to show topic 2.When user selects option "No", the corresponding HTML element of topic 2 is hidden.User exists
When selecting the option of topic 1, it can go back on one's word, i.e., user has selected option "Yes", executes step 101 to step 103, topic 2 is aobvious
Showing in the display interface, user after consideration, needs to reselect option "No" later, then during reselecting,
Got the corresponding new first choice instruction of topic 1 (option "No" i.e. in first choice instruction instruction topic 1 by
Selection), step 101 is executed again to step 103, and topic 2 is hidden.
Fig. 3 is the flow chart for the control method that another questionnaire shown according to an exemplary embodiment is shown, such as Fig. 3 institute
Show, includes the Option number of any option in the corresponding binding relationship of any option in logical attribute.Step 102 can lead to
Following steps are crossed to realize:
Step 1021, it is instructed according to first choice, obtains Option No. the first of the first option.
Step 1022, the first binding relationship is determined in the logical attribute of the first topic according to Option No. the first, the
One binding relationship is the binding relationship in logical attribute including Option No. the first.
Step 1023, according to the first binding relationship, the first display strategy of the second topic and the second topic is determined.
It for example, all include that option belonging to the binding relationship is corresponding in each binding relationship in logical attribute
Option number.Wherein, Option number is capable of each option of each topic in unique identification questionnaire (i.e. in questionnaire
The corresponding Option number of each option of each topic is different), such as can use Hash (English: Hash) algorithm
Generate Option number.So after obtaining first choice instruction, first according to the first option of first choice instruction instruction, really
The fixed corresponding Option No. first of first option, is searched in the logical attribute of the first topic further according to Option No. the first
The first binding relationship comprising Option No. the first determines the second topic and the second topic finally according to the first binding relationship
The first display strategy.
Fig. 4 is the flow chart for the control method that another questionnaire shown according to an exemplary embodiment is shown, such as Fig. 4 institute
Show, after step 103, this method further include:
Step 104, it is determined whether there are the third topic in logical attribute including the second binding relationship, the second binding relationships
It is the binding relationship for including the second topic.
Step 105, when there are third topic, corresponding second selection instruction of third topic, the second selection instruction are obtained
It is used to indicate in third topic, the second option of the second binding relationship instruction is selected.
It is exemplary, after step 103 is controlled to the Rendering operations of the second topic, search whether that there are also except first in questionnaire
It include the second binding relationship in the logical attribute of other topics except topic, it (can be with using these topics as third topic
It is one or more), wherein the second binding relationship is the binding relationship for including the second topic.It, can when there are third topic
To send a state notifying to third topic, with the first display strategy for notifying the second topic of third topic current.Later, it obtains
Corresponding second selection instruction of third topic that family issues is taken, the second selection instruction can indicate the second choosing in third topic
Item is selected, such as family can correspond in region shown by the second option of third topic in display interface, be specified
Operation (such as: click, double-click, long-pressing etc. operation) to issue the second selection instruction, wherein the second option is that the second binding is closed
Mean the option shown.
Step 106, the second display strategy and the first display strategy phase of the second topic indicated by the second binding relationship
Meanwhile keeping the corresponding HTML element of the second topic.
Step 107, the second display strategy of the second topic indicated by the second binding relationship and the first display strategy be not
When identical, according to the second display strategy, the Rendering operations to the corresponding HTML element of the second topic are controlled.
It is exemplary, the second display strategy of the second topic indicated in the second binding relationship and third topic are received
State notifying in the first display strategy for indicating compare, if the first display strategy and the second display strategy are identical, that
It indicates that the state (show or hide) of the second topic does not need to be changed, that is, keeps the corresponding HTML element of the second topic, it can
To reduce the rendering to the corresponding HTML element of the second topic, the response speed and stability that questionnaire is shown are further increased.Such as
The first display strategy of fruit and the second display strategy be not identical, then indicating that the state of the second topic needs to change, then according to
Two display strategies control the Rendering operations to the corresponding HTML element of the second topic.
It for example, include topic 1 (including option A and B), topic 2 (including option C and D), topic 3 and topic in questionnaire
Mesh 4, the corresponding logical attribute of topic 1 includes: binding relationship a: option A and topic 3 are bound, and topic 3 is aobvious when option A is selected
Show strategy for display, binding relationship b: option B binds with topic 4, and the display strategy of topic 4 is display when option B is selected.Topic
The corresponding logical attribute of mesh 2 includes: binding relationship c: option C and topic 3 are bound, the display strategy of topic 3 when option C is selected
It is bound for display, binding relationship d: option D with topic 4, the display strategy of topic 4 is hiding when option D is selected.When user selects
When having selected the option A in topic 1, determine that the display strategy (i.e. corresponding first display strategy) of topic 3 is aobvious according to binding relationship a
Show, later when option C in user's reselection topic 2, the display strategy (i.e. corresponding second of topic 3 is determined according to binding relationship c
Display strategy) it is display, the first display strategy is identical as the second display strategy at this time, then keeping the corresponding html element of topic 3
Element, without re-starting rendering.If user has selected the option B in topic 1, the display strategy of topic 4 is determined according to binding relationship b
(i.e. corresponding first display strategy) is display, later when option D in user's reselection topic 2, is determined and is inscribed according to binding relationship d
The display strategy (i.e. corresponding second display strategy) of mesh 4 be it is hiding, the first display strategy and the second display strategy be not identical at this time,
The Rendering operations to the corresponding HTML element of topic 4 are so controlled according to the second display strategy, that is, hide the corresponding HTML of topic 4
Element.
It should be noted that the logical attribute of the 4th topic can be used as the 4th topic corresponding one in above-described embodiment
A HTML element (such as logical attribute can be Variable Logic form), i.e. the logical attribute of the 4th topic is stored in
In the corresponding HTML element of 4th topic, the memory space for occupying the corresponding background data base of questionnaire is not needed in this way, wherein the
Any topic in four entitled questionnaires.
In conclusion the disclosure obtain first corresponding the first option being used to indicate in the first topic of the first topic by
The first choice of selection instructs, any topic currently shown in the first entitled questionnaire, further according to first choice instruction and the
The logical attribute of one topic, to determine the second topic and corresponding first display strategy of the second topic with the binding of the first option,
Wherein, logical attribute includes the corresponding binding relationship of each option in the first topic, and each binding relationship includes and option
The target topic of binding, and when the option is selected, the display strategy of target topic, finally, according to the first display strategy, control
Make the Rendering operations to the corresponding HTML element of the second topic.The a large amount of behaviour for monitoring code and inquiring document elements can be reduced
Make, improves response speed and stability that questionnaire is shown.
Fig. 5 is the block diagram for the control device that a kind of questionnaire shown according to an exemplary embodiment is shown, as shown in figure 5,
The device 200 includes:
First obtains module 201, and for obtaining the corresponding first choice instruction of the first topic, first choice is instructed for referring to
Show that any topic that the first option in the first topic is selected, is currently shown in the first entitled questionnaire, the first option are
Any option of first topic.
First determining module 202 determines and the first choosing for the logical attribute according to first choice instruction and the first topic
Second topic of item binding and the first display strategy of the second topic, logical attribute include that each option of the first topic is corresponding
Binding relationship, the corresponding binding relationship of any option includes the target topic with the binding of any option, and works as any option
The display strategy of target topic when being selected.
Control module 203 is grasped for according to the first display strategy, controlling the rendering to the corresponding HTML element of the second topic
Make.
Fig. 6 is the block diagram for the control device that another questionnaire shown according to an exemplary embodiment is shown, such as Fig. 6 institute
Show, control module 203 includes:
First control submodule 2031 is used for when the first display strategy is display, according to the corresponding HTML of the second topic
Element renders the second topic, to show the second topic.
Second control submodule 2032, for hiding the corresponding HTML of the second topic when the first display strategy is to hide
Element.
Fig. 7 is the block diagram for the control device that another questionnaire shown according to an exemplary embodiment is shown, such as Fig. 7 institute
Show, includes the Option number of any option in the corresponding binding relationship of any option in logical attribute.First determining module
202 include:
Acquisition submodule 2021 obtains Option No. the first of the first option for instructing according to first choice.
First determines submodule 2022, for determining the in the logical attribute of the first topic according to Option No. the first
One binding relationship, the first binding relationship are the binding relationship in logical attribute including Option No. the first.
Second determines submodule 2023, for determining the first of the second topic and the second topic according to the first binding relationship
Display strategy.
Fig. 8 is the block diagram for the control device that another questionnaire shown according to an exemplary embodiment is shown, such as Fig. 8 institute
Show, the device 200 further include:
Second determining module 204, for controlling to the corresponding HTML element of the second topic according to the first display strategy
After Rendering operations, it is determined whether there are the third topic in logical attribute including the second binding relationship, the second binding relationship is
Binding relationship including the second topic.
Second obtains module 205, for when there are third topic, obtaining corresponding second selection instruction of third topic,
Second selection instruction is used to indicate in third topic, and the second option of the second binding relationship instruction is selected.
Control module 203 is also used to work as the second display strategy and first of the second topic indicated by the second binding relationship
When display strategy is identical, the corresponding HTML element of the second topic is kept.
Control module 203 is also used to work as the second display strategy and first of the second topic indicated by the second binding relationship
When display strategy is not identical, according to the second display strategy, the Rendering operations to the corresponding HTML element of the second topic are controlled.
Optionally, the logical attribute of the 4th topic is stored in the corresponding HTML element of the 4th topic, and the 4th entitled asks
Any topic in volume.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
In conclusion the disclosure obtain first corresponding the first option being used to indicate in the first topic of the first topic by
The first choice of selection instructs, any topic currently shown in the first entitled questionnaire, further according to first choice instruction and the
The logical attribute of one topic, to determine the second topic and corresponding first display strategy of the second topic with the binding of the first option,
Wherein, logical attribute includes the corresponding binding relationship of each option in the first topic, and each binding relationship includes and option
The target topic of binding, and when the option is selected, the display strategy of target topic, finally, according to the first display strategy, control
Make the Rendering operations to the corresponding HTML element of the second topic.The a large amount of behaviour for monitoring code and inquiring document elements can be reduced
Make, improves response speed and stability that questionnaire is shown.
Fig. 9 is the block diagram of a kind of electronic equipment 300 shown according to an exemplary embodiment.As shown in figure 9, the electronics is set
Standby 300 may include: processor 301, memory 302.The electronic equipment 300 can also include multimedia component 303, input/
Export one or more of (I/O) interface 304 and communication component 305.
Wherein, processor 301 is used to control the integrated operation of the electronic equipment 300, is shown with to complete above-mentioned questionnaire
All or part of the steps in control method.Memory 302 is for storing various types of data to support in the electronic equipment
300 operation, these data for example may include any application or method for operating on the electronic equipment 300
Instruction and the relevant data of application program, such as contact data, the message of transmitting-receiving, picture, audio, video etc..This is deposited
Reservoir 302 can realize by any kind of volatibility or non-volatile memory device or their combination, for example, it is static with
Machine accesses memory (Static Random Access Memory, abbreviation SRAM), electrically erasable programmable read-only memory
(Electrically Erasable Programmable Read-Only Memory, abbreviation EEPROM), erasable programmable
Read-only memory (Erasable Programmable Read-Only Memory, abbreviation EPROM), programmable read only memory
(Programmable Read-Only Memory, abbreviation PROM), and read-only memory (Read-Only Memory, referred to as
ROM), magnetic memory, flash memory, disk or CD.Multimedia component 303 may include screen and audio component.Wherein
Screen for example can be touch screen, and audio component is used for output and/or input audio signal.For example, audio component may include
One microphone, microphone is for receiving external audio signal.The received audio signal can be further stored in storage
Device 302 is sent by communication component 305.Audio component further includes at least one loudspeaker, is used for output audio signal.I/O
Interface 304 provides interface between processor 301 and other interface modules, other above-mentioned interface modules can be keyboard, mouse,
Button etc..These buttons can be virtual push button or entity button.Communication component 305 is for the electronic equipment 300 and other
Wired or wireless communication is carried out between equipment.Wireless communication, such as Wi-Fi, bluetooth, near-field communication (Near Field
Communication, abbreviation NFC), 2G, 3G or 4G or they one or more of combination, therefore corresponding communication
Component 305 may include: Wi-Fi module, bluetooth module, NFC module.
In one exemplary embodiment, electronic equipment 300 can be by one or more application specific integrated circuit
(Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital
Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device,
Abbreviation DSPD), programmable logic device (Programmable Logic Device, abbreviation PLD), field programmable gate array
(Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics member
Part realization, the control method shown for executing above-mentioned questionnaire.
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should
The step of control method that above-mentioned questionnaire is shown is realized when program instruction is executed by processor.For example, this computer-readable is deposited
Storage media can be the above-mentioned memory 302 including program instruction, and above procedure instruction can be by the processor of electronic equipment 300
301 execute to complete the control method that above-mentioned questionnaire is shown.
In conclusion the disclosure obtain first corresponding the first option being used to indicate in the first topic of the first topic by
The first choice of selection instructs, any topic currently shown in the first entitled questionnaire, further according to first choice instruction and the
The logical attribute of one topic, to determine the second topic and corresponding first display strategy of the second topic with the binding of the first option,
Wherein, logical attribute includes the corresponding binding relationship of each option in the first topic, and each binding relationship includes and option
The target topic of binding, and when the option is selected, the display strategy of target topic, finally, according to the first display strategy, control
Make the Rendering operations to the corresponding HTML element of the second topic.The a large amount of behaviour for monitoring code and inquiring document elements can be reduced
Make, improves response speed and stability that questionnaire is shown.
The preferred embodiment of the disclosure is described in detail in conjunction with attached drawing above, still, the disclosure is not limited to above-mentioned reality
The detail in mode is applied, in the range of the technology design of the disclosure, those skilled in the art are considering specification and practice
After the disclosure, it is readily apparent that other embodiments of the disclosure, belongs to the protection scope of the disclosure.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case where shield, it can be combined in any appropriate way.Simultaneously between a variety of different embodiments of the disclosure
Any combination can also be carried out, as long as it, without prejudice to the thought of the disclosure, equally should be considered as disclosure disclosure of that.
The disclosure is not limited to the precision architecture being described above out, and the scope of the present disclosure is only limited by the attached claims
System.
Claims (10)
1. a kind of control method that questionnaire is shown, which is characterized in that the described method includes:
Obtain the corresponding first choice instruction of the first topic, the first choice instruction is used to indicate the in first topic
One option is selected, any topic currently shown in the first entitled questionnaire, and first option is described first
Any option of topic;
According to the logical attribute of first choice instruction and first topic, determining second with first option binding
First display strategy of topic and second topic, the logical attribute include that each option of first topic is corresponding
The binding relationship, the corresponding binding relationship of any option includes the target topic with any option binding, with
And when any option is selected the target topic display strategy;
According to first display strategy, the Rendering operations to the corresponding HTML element of second topic are controlled.
2. the method according to claim 1, wherein described according to first display strategy, described the is controlled
The corresponding HTML element of two topics, comprising:
When first display strategy be display when, according to the corresponding HTML element of second topic to second topic into
Row rendering, to show second topic;
When first display strategy is to hide, the corresponding HTML element of second topic is hidden.
3. the method according to claim 1, wherein the corresponding binding of any option in the logical attribute is closed
It include the Option number of any option in system;The logic according to first choice instruction and first topic
Attribute, the first display strategy of determining the second topic bound with first option and second topic, comprising:
It is instructed according to the first choice, obtains Option No. the first of first option;
According to the Option No. first in the logical attribute of first topic determine the first binding relationship, described first
Binding relationship is the binding relationship in the logical attribute including the Option No. first;
According to first binding relationship, first display strategy of second topic and second topic is determined.
4. the method according to claim 1, wherein being controlled according to first display strategy to institute described
After the Rendering operations for stating the corresponding HTML element of the second topic, the method also includes:
Determine whether there is in logical attribute include the second binding relationship third topic, second binding relationship be include institute
State the binding relationship of the second topic;
When there are the third topic, corresponding second selection instruction of the third topic, second selection instruction are obtained
It is used to indicate in the third topic, the second option of the second binding relationship instruction is selected;
Second display strategy of second topic indicated by second binding relationship and the first display strategy phase
Meanwhile keeping the corresponding HTML element of second topic;
The second display strategy and first display strategy of second topic indicated by second binding relationship are not
When identical, according to second display strategy, the Rendering operations to the corresponding HTML element of second topic are controlled.
5. method according to any of claims 1-4, which is characterized in that the logical attribute of the 4th topic stores
Any topic in the corresponding HTML element of the 4th topic, in the 4th entitled questionnaire.
6. a kind of control device that questionnaire is shown, which is characterized in that described device includes:
First obtains module, and for obtaining the corresponding first choice instruction of the first topic, the first choice instruction is used to indicate
The first option in first topic is selected, any topic currently shown in the first entitled questionnaire, described
First option is any option of first topic;
First determining module, for the logical attribute according to first choice instruction and first topic, it is determining with it is described
Second topic of the first option binding and the first display strategy of second topic, the logical attribute includes described first
The corresponding binding relationship of each option of topic, the corresponding binding relationship of any option include and any option
The target topic of binding, and when any option is selected the target topic display strategy;
Control module, for controlling the rendering to the corresponding HTML element of second topic according to first display strategy
Operation.
7. device according to claim 6, which is characterized in that the corresponding binding of any option in the logical attribute is closed
It include the Option number of any option in system;
First determining module includes:
Acquisition submodule obtains Option No. the first of first option for instructing according to the first choice;
First determines submodule, for determining the in the logical attribute of first topic according to the Option No. first
One binding relationship, first binding relationship are the binding relationship in the logical attribute including the Option No. first;
Second determines submodule, for according to first binding relationship, determining second topic and second topic
First display strategy.
8. device according to claim 6, which is characterized in that described device further include:
Second determining module, for, according to first display strategy, controlling HTML corresponding to second topic described
After the Rendering operations of element, it is determined whether there are in logical attribute include the second binding relationship third topic, described second
Binding relationship is the binding relationship for including second topic;
Second obtains module, for when there are the third topic, obtaining corresponding second selection instruction of the third topic,
Second selection instruction is used to indicate in the third topic, and the second option of the second binding relationship instruction has been chosen
It selects;
The control module, be also used to second topic indicated by second binding relationship the second display strategy and
When first display strategy is identical, the corresponding HTML element of second topic is kept;
The control module, be also used to second topic indicated by second binding relationship the second display strategy and
When first display strategy is not identical, according to second display strategy, control to the corresponding html element of second topic
The Rendering operations of element.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The step of any one of claim 1-5 the method is realized when row.
10. a kind of electronic equipment characterized by comprising
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize described in any one of claim 1-5
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811489975.XA CN109753612B (en) | 2018-12-06 | 2018-12-06 | Questionnaire display control method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811489975.XA CN109753612B (en) | 2018-12-06 | 2018-12-06 | Questionnaire display control method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109753612A true CN109753612A (en) | 2019-05-14 |
CN109753612B CN109753612B (en) | 2021-05-04 |
Family
ID=66402649
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811489975.XA Active CN109753612B (en) | 2018-12-06 | 2018-12-06 | Questionnaire display control method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109753612B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111785336A (en) * | 2020-07-01 | 2020-10-16 | 山东维艾亚生物科技有限公司 | Detection information processing method and device based on user assistance, and medium |
CN111831815A (en) * | 2020-06-19 | 2020-10-27 | 东软集团股份有限公司 | Questionnaire display control method and device, storage medium and electronic equipment |
CN111859869A (en) * | 2020-07-13 | 2020-10-30 | 米哈游科技(上海)有限公司 | Questionnaire editing method and device, electronic equipment and storage medium |
CN111831815B (en) * | 2020-06-19 | 2024-04-30 | 东软集团股份有限公司 | Control method and device for questionnaire display, storage medium and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012174659A1 (en) * | 2011-06-20 | 2012-12-27 | Novx Systems Canada Inc. | System and method for dynamic and customized questionnaire generation |
CN104699973A (en) * | 2015-03-19 | 2015-06-10 | 腾讯科技(深圳)有限公司 | Method and device for controlling logic of questionnaires |
CN105068980A (en) * | 2015-08-07 | 2015-11-18 | 北京思特奇信息技术股份有限公司 | Graphical display method and system for jump relationship among topics |
CN105824887A (en) * | 2016-03-11 | 2016-08-03 | 深圳市规划国土发展研究中心 | Mobile electronic investigation system and method based on intelligent questionnaire generative design |
CN105824918A (en) * | 2016-03-16 | 2016-08-03 | 平安科技(深圳)有限公司 | Method for generating questionnaire and terminal |
-
2018
- 2018-12-06 CN CN201811489975.XA patent/CN109753612B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012174659A1 (en) * | 2011-06-20 | 2012-12-27 | Novx Systems Canada Inc. | System and method for dynamic and customized questionnaire generation |
CN104699973A (en) * | 2015-03-19 | 2015-06-10 | 腾讯科技(深圳)有限公司 | Method and device for controlling logic of questionnaires |
CN105068980A (en) * | 2015-08-07 | 2015-11-18 | 北京思特奇信息技术股份有限公司 | Graphical display method and system for jump relationship among topics |
CN105824887A (en) * | 2016-03-11 | 2016-08-03 | 深圳市规划国土发展研究中心 | Mobile electronic investigation system and method based on intelligent questionnaire generative design |
CN105824918A (en) * | 2016-03-16 | 2016-08-03 | 平安科技(深圳)有限公司 | Method for generating questionnaire and terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111831815A (en) * | 2020-06-19 | 2020-10-27 | 东软集团股份有限公司 | Questionnaire display control method and device, storage medium and electronic equipment |
CN111831815B (en) * | 2020-06-19 | 2024-04-30 | 东软集团股份有限公司 | Control method and device for questionnaire display, storage medium and electronic equipment |
CN111785336A (en) * | 2020-07-01 | 2020-10-16 | 山东维艾亚生物科技有限公司 | Detection information processing method and device based on user assistance, and medium |
CN111859869A (en) * | 2020-07-13 | 2020-10-30 | 米哈游科技(上海)有限公司 | Questionnaire editing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109753612B (en) | 2021-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20110022957A1 (en) | Web browsing method and web browsing device | |
CN113157156A (en) | Data processing method for displaying interface content | |
US9141406B2 (en) | Method and system to provide a user interface with respect to a plurality of applications | |
US20120260218A1 (en) | Graphical user interface with customized navigation | |
US20130241829A1 (en) | User interface method of touch screen terminal and apparatus therefor | |
CN110717030A (en) | Method and equipment for presenting detail pages of electronic books | |
CN102411472A (en) | Mobile communication device and method thereof for rapidly calling out a plurality of icons and running programs corresponding to icons | |
EP3214827B1 (en) | Application session recording and replaying | |
CN110069734A (en) | A kind of page assembly shows method and apparatus | |
CN109753612A (en) | Control method, device, storage medium and the electronic equipment that questionnaire is shown | |
CN103761253A (en) | Display system and display method for cartoon | |
US20140272898A1 (en) | System and method of providing compound answers to survey questions | |
CN106503062B (en) | A kind of social dynamically dissemination method and device, user terminal | |
CN103488424A (en) | Method and device for displaying information | |
CN108537651A (en) | Bookkeeping methods, mobile terminal and computer readable storage medium | |
CN114020394A (en) | Image display method and device and electronic equipment | |
CN112434494A (en) | Text editing method, device, terminal and storage medium | |
CN104898928A (en) | Graphic and text information display method and terminal | |
CN116069432A (en) | Split screen display method and device, electronic equipment and readable storage medium | |
CN106155672A (en) | A kind of clocking method and terminal | |
CN114997126A (en) | Electronic form display method and device, electronic equipment and storage medium | |
CN114397989A (en) | Parameter value setting method and device, electronic equipment and storage medium | |
CN114564134A (en) | Application icon display method and device | |
US20120113030A1 (en) | Apparatus and method for controlling terminal | |
US8959454B2 (en) | Table management |
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 |