Electronic form drop-down box option presentation ordering method and device

文档序号:1429049 发布日期:2020-03-17 浏览:21次 中文

阅读说明:本技术 一种电子表单下拉框选项呈现排序方法及装置 (Electronic form drop-down box option presentation ordering method and device ) 是由 刘育廷 于 2019-11-29 设计创作,主要内容包括:本发明公开了一种电子表单下拉框选项呈现排序方法,包括以下步骤:系统获取下拉框选项排序资料库单元的选项排序,根据所述选项排序初始化下拉框;系统获取下拉框每个选项被单个使用者选取包括次数在内的参数内容、全部使用者选取包括次数在内的参数内容;系统根据获取的选项参数内容与最近两次被选取到的时间差当作权重,计算选项分数。还公开了一种电子表单下拉框选项呈现排序装置,本发明可以根据资料数据,动态的让下拉框自动选取使用者最有可能选择的选项。或是将使用者较常使用的选项排在下拉框选项比较前面的部份,节省使用者选择选项的时间。(The invention discloses a method for presenting and sequencing options of a drop-down box of an electronic form, which comprises the following steps: the system acquires the option sequence of a drop-down frame option sequence database unit and initializes the drop-down frame according to the option sequence; the system acquires each option of the drop-down frame, wherein the parameter content including the times is selected by a single user, and the parameter content including the times is selected by all users; and the system calculates the option score according to the acquired option parameter content and the time difference between the two selected options as weights. The invention can dynamically and automatically select the most possible option selected by the user from the drop-down box according to the data. Or the more frequently used options of the user are ranked in the front part of the drop-down box option comparison, so that the time for the user to select the options is saved.)

1. A method for presenting and sequencing options of a drop-down box of an electronic form is characterized by comprising the following steps:

the system acquires the option sequence of a drop-down frame option sequence database unit and initializes the drop-down frame according to the option sequence;

the system acquires each option of the drop-down frame, wherein the parameter content including the times is selected by a single user, and the parameter content including the times is selected by all users;

and the system calculates the option score according to the acquired option parameter content and the time difference between the two selected options as weights.

2. The method as claimed in claim 1, wherein said system obtains the option ranking of the drop-down box option ranking database unit, and initializes the drop-down box according to the option ranking, specifically comprising:

if a certain option is never selected by the current user, the preference of the crowdsourcing option in the crowdsourcing preference option database unit is pre-input to finish the sorting of the drop-down box options;

and taking the option with the highest ranking as a preset input option when the drop-down box is loaded, and determining the display order of the remaining options according to the ranking size.

3. The method as claimed in claim 1, wherein the system calculates the option score according to the time difference between the acquired option parameter content and the last two selected options as a weight, and specifically comprises:

acquiring the cumulative times of the single user selecting the option and the cumulative times of all the users selecting the option in the whole system;

acquiring the time difference of the option selected in the last two times, and determining a score weight according to the time difference, wherein the score weight is used for multiplying the cumulative times of the options;

and calculating personal option preference scores and crowd option preference scores, calculating the option scores by combining the score weights, and sorting the options according to the option scores.

4. The method as claimed in claim 3, wherein the step of calculating the preference scores of the individual options and the crowd options, calculating the option scores by combining the score weights, and sorting the options according to the option scores comprises: the drop-down box per option score is calculated using the following equation:

Score=UserACC*Fu(Tudiff)+PeopleACC*Fp(Tpdiff)

score is the option ranking Score;

UserACC is the cumulative number of times that the user personally selects the option;

peoplesac selects the cumulative number of times of the option for all users;

tudiff is the time difference between the last two times that the user has personally entered the option;

the Tpdiff is the time difference between the last two times of inputting the option by all the users;

fu (tudiff) is a personal option preference function, the personal option preference function inputs the time difference of two choices of the user in the last time, and the personal option preference function outputs the weight according to the range of the time difference of the two choices in the last time;

fp (tpdiff) is a crowd option preference function, which inputs the time difference between two choices of the most recent user and takes the range of the two time differences as the weighted output.

5. An electronic form drop-down box option presentation ordering device is characterized by comprising:

the personal preference option database unit is used for recording the parameter contents including the times of selecting the drop-down box options by a single user;

the crowd preference option database unit is used for recording parameter contents including the times of selecting the drop-down box options by all users of the whole system;

the weight calculation module unit calculates option scores according to the acquired drop-down frame option parameter contents of the personal preference option database unit and the crowd preference option database unit to obtain option sequencing;

the drop-down frame option ordering database unit acquires and stores the drop-down frame option ordering of the weight calculation module unit;

the pull-down frame module unit loads the sorting content in the pull-down frame option sorting database unit and adjusts the pull-down frame preset loading value according to the sorting size.

6. The apparatus as claimed in claim 5, wherein the weight calculation module unit comprises:

the option cumulative frequency calculation module is used for acquiring the cumulative frequency of the single user selecting the option and the cumulative frequency of all the users selecting the option in the whole system;

the score weight module is used for acquiring the time difference of the option selected for the last two times and determining a score weight according to the time difference, wherein the score weight is used for multiplying the cumulative times of the options;

and the option score calculating module is used for calculating the preference scores of the personal options and the preference scores of the crowdsourcing options, calculating the option score by combining the score weight, and sequencing the options according to the option scores.

7. The electronic form drop-down box option presentation ordering apparatus of claim 6, wherein said option score calculation module calculates each option score of the drop-down box using the following equation:

Score=UserACC*Fu(Tudiff)+PeopleACC*Fp(Tpdiff)

score is the option ranking Score;

UserACC is the cumulative number of times that the user personally selects the option;

peoplesac selects the cumulative number of times of the option for all users;

tudiff is the time difference between the last two times that the user has personally entered the option;

the Tpdiff is the time difference between the last two times of inputting the option by all the users;

fu (tudiff) is a personal option preference function, the personal option preference function inputs the time difference of two choices of the user in the last time, and the personal option preference function outputs the weight according to the range of the time difference of the two choices in the last time;

fp (tpdiff) is a crowd option preference function, which inputs the time difference between two choices of the most recent user and takes the range of the two time differences as the weighted output.

8. The apparatus of claim 5, wherein the drop-down box module unit comprises:

the initialization module is used for pre-inputting a certain option which is never selected by the current user according to the crowdsourcing option preference of the crowdsourcing preference option database unit to finish the sequencing of the drop-down box options;

and the dynamic sorting module is used for taking the option with the highest sorting as a preset input option when the drop-down box is loaded, and the remaining options determine the display order according to the sorting size.

Technical Field

The invention relates to the technical field of computers, in particular to a method and a device for presenting and sequencing options of a drop-down box of an electronic form.

Background

Modern electronic forms are often used with drop-down menu (pull-down menu) boxes designed to allow a user to select multiple options. The excessive drop-down options, in addition to increasing the time for the user to enter data. The user can feel inconvenient in operation, if the pull-down frame can help the user to select the option which the user wants to input in advance when the pull-down frame is started, the time input by the user can be greatly saved, and the time for the user to input a plurality of pull-down frames can be shortened as long as the user checks the option which is selected in advance by the pull-down frame once and inputs the option which is not in line with the expected option. Currently, when too many drop-down boxes are used for an electronic form, the operation time of the user for the drop-down boxes and the options thereof increases with the number of the drop-down boxes and the options therein.

Disclosure of Invention

In order to solve the technical problem that the time for operating the drop-down frames by a user is greatly increased along with the number of the drop-down frames and the options of the drop-down frames, the invention aims to provide a method and a device for presenting and sequencing options of the drop-down frames of an electronic form.

In order to achieve the purpose, the invention adopts the following technical scheme:

the invention provides a method for presenting and sequencing options of a drop-down box of an electronic form, which comprises the following steps:

the system acquires the option sequence of a drop-down frame option sequence database unit and initializes the drop-down frame according to the option sequence;

the system acquires each option of the drop-down frame, wherein the parameter content including the times is selected by a single user, and the parameter content including the times is selected by all users;

and the system calculates the option score according to the acquired option parameter content and the time difference between the two selected options as weights.

With reference to the first aspect, in a first possible implementation manner of the first aspect, the acquiring, by the system, an option ranking of a drop-down box option ranking library unit, and initializing a drop-down box according to the option ranking specifically includes:

if a certain option is never selected by the current user, the preference of the crowdsourcing option in the crowdsourcing preference option database unit is pre-input to finish the sorting of the drop-down box options;

and taking the option with the highest ranking as a preset input option when the drop-down box is loaded, and determining the display order of the remaining options according to the ranking size.

With reference to the first aspect, in a second possible implementation manner of the first aspect, the calculating, by the system, an option score according to a time difference between the acquired option parameter content and two latest selections as a weight specifically includes:

acquiring the cumulative times of the single user selecting the option and the cumulative times of all the users selecting the option in the whole system;

acquiring the time difference of the option selected in the last two times, and determining a score weight according to the time difference, wherein the score weight is used for multiplying the cumulative times of the options;

and calculating personal option preference scores and crowd option preference scores, calculating the option scores by combining the score weights, and sorting the options according to the option scores.

With reference to the first aspect, in a third possible implementation manner of the first aspect, the calculating a personal option preference score and a crowd option preference score, calculating the option score by combining score weights, and ranking options according to the option scores specifically includes: the drop-down box per option score is calculated using the following equation:

Score=UserACC*Fu(Tudiff)+PeopleACC*Fp(Tpdiff)

score is the option ranking Score;

UserACC is the cumulative number of times that the user personally selects the option;

peoplesac selects the cumulative number of times of the option for all users;

tudiff is the time difference between the last two times that the user has personally entered the option;

the Tpdiff is the time difference between the last two times of inputting the option by all the users;

fu (tudiff) is a personal option preference function, the personal option preference function inputs the time difference of two choices of the user in the last time, and the personal option preference function outputs the weight according to the range of the time difference of the two choices in the last time;

fp (tpdiff) is a crowd option preference function, which inputs the time difference between two choices of the most recent user and takes the range of the two time differences as the weighted output.

The second aspect of the present invention provides an apparatus for presenting and sorting options of a drop-down box of an electronic form, including:

the personal preference option database unit is used for recording the parameter contents including the times of selecting the drop-down box options by a single user;

the crowd preference option database unit is used for recording parameter contents including the times of selecting the drop-down box options by all users of the whole system;

the weight calculation module unit calculates option scores according to the acquired drop-down frame option parameter contents of the personal preference option database unit and the crowd preference option database unit to obtain option sequencing;

the drop-down frame option ordering database unit acquires and stores the drop-down frame option ordering of the weight calculation module unit;

the pull-down frame module unit loads the sorting content in the pull-down frame option sorting database unit and adjusts the pull-down frame preset loading value according to the sorting size.

With reference to the second aspect, in a first possible implementation manner of the second aspect, the weight calculation module unit includes:

the option cumulative frequency calculation module is used for acquiring the cumulative frequency of the single user selecting the option and the cumulative frequency of all the users selecting the option in the whole system;

the score weight module is used for acquiring the time difference of the option selected for the last two times and determining a score weight according to the time difference, wherein the score weight is used for multiplying the cumulative times of the options;

and the option score calculating module is used for calculating the preference scores of the personal options and the preference scores of the crowdsourcing options, calculating the option score by combining the score weight, and sequencing the options according to the option scores.

With reference to the second aspect, in a second possible implementation manner of the second aspect, the option score calculating module calculates each option score of the drop-down box by using the following formula:

Score=UserACC*Fu(Tudiff)+PeopleACC*Fp(Tpdiff)

score is the option ranking Score;

UserACC is the cumulative number of times that the user personally selects the option;

peoplesac selects the cumulative number of times of the option for all users;

tudiff is the time difference between the last two times that the user has personally entered the option;

the Tpdiff is the time difference between the last two times of inputting the option by all the users;

fu (tudiff) is a personal option preference function, the personal option preference function inputs the time difference of two choices of the user in the last time, and the personal option preference function outputs the weight according to the range of the time difference of the two choices in the last time;

fp (tpdiff) is a crowd option preference function, which inputs the time difference between two choices of the most recent user and takes the range of the two time differences as the weighted output.

With reference to the second aspect, in a third possible implementation manner of the second aspect, the drop-down frame module unit includes:

the initialization module is used for pre-inputting a certain option which is never selected by the current user according to the crowdsourcing option preference of the crowdsourcing preference option database unit to finish the sequencing of the drop-down box options;

and the dynamic sorting module is used for taking the option with the highest sorting as a preset input option when the drop-down box is loaded, and the remaining options determine the display order according to the sorting size.

The electronic form drop-down box option presentation sorting device of the second aspect of the present invention can implement the methods of the first aspect and the implementation manners of the first aspect, and achieve the same effect.

Drawings

FIG. 1 is a flow chart of an embodiment of the method of the present invention;

FIG. 2 is a flowchart illustrating step S1 of an embodiment of the method of the present invention;

FIG. 3 is a flowchart illustrating step S3 of an embodiment of the method of the present invention;

FIG. 4 is a schematic view of an embodiment of the apparatus of the present invention;

FIG. 5 is a schematic diagram of a weight calculation module unit according to an embodiment of the present invention;

FIG. 6 is a schematic diagram of a pull-down frame module unit according to an embodiment of the present invention; .

Detailed Description

In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.

As shown in fig. 1, a method for sorting the option presentation of the drop-down box of the electronic form includes the following steps:

s1, the system acquires the option sequence of the drop-down box option sequence database unit and initializes the drop-down box according to the option sequence;

s2, obtaining each option of the drop-down box by the system, wherein the option is selected by a single user and comprises parameter contents including times selected by all users;

and S3, calculating the option score according to the acquired option parameter content and the time difference between the two latest selections as weights.

As shown in fig. 2, as an embodiment of the present application, in step S1, the system acquires the option ranks of the drop-down box option rank library unit, and initializes the drop-down box according to the option ranks, which specifically includes:

s11, if a certain option is never selected by the current user, pre-inputting according to the crowd preference of the crowd preference option database unit to complete the sorting of the drop-down box options;

and S12, taking the option with the highest sequence as a preset input option when the drop-down box is loaded, and determining the display sequence of the remaining options according to the sequence size.

All the user's options of the drop-down box sent each time are also recorded in the crowd preference database. If the option is never selected by the current user, the preference of the crowd-sourced option is referenced from the database for pre-entry and sort of drop-down box options. Because each option in the drop-down box refers to the personal option preferences and the crowd option preferences in the database, the ordering of the options is made. The option with the highest ranking is the preset input option when the drop-down box is loaded. The remaining options are displayed in the order according to the sorting size, and the option with the highest sorting order is clicked in the first position after the drop-down box option is clicked, so that the user can conveniently click. The third highest ranked option is the second position after clicking the drop-down box option, and so on for the other ranked options.

When the position order of the option in the drop-down box option is to be determined, the system will obtain the data of personal option preference and crowd option preference from the database, and then process the two data according to the weight calculation module. And finally, obtaining the position sequence of the drop-down box options. If the drop-down box is used for the first time by the user, there is no data preferred by personal options in the database, and the sort of options is naturally determined according to the data preferred by the crowd. As the number of personal uses of the drop-down box increases, the data of personal preference in the database also increases. At this time, the weight calculation module also adjusts the specific weight between the personal option preference and the crowd option preference, so as to improve the probability that the drop-down box automatically selects the option desired by the user, and sort the drop-down box options appropriately, so as to reduce the drop-down distance between the user selecting the drop-down box to pull down to the desired option. For example: if the options of the drop-down box are not properly sorted, the user can select the desired option by pulling down 2 options after sorting, and the user can select the desired option by crossing 5 options. The time for the user to select an option in the drop-down box can be reduced. Because the user can select a desired option among the first few options when clicking on the option. The desired option can be selected without browsing through the options in the entire drop-down box.

As shown in fig. 3, as an embodiment of the present application, in step S3, the system calculates an option score according to the time difference between the acquired option parameter content and the two latest selections as a weight, and specifically includes:

s31, acquiring the cumulative times of the single user selecting the option and the cumulative times of all the users selecting the option in the whole system;

s32, acquiring the time difference of the option selected for the last two times, and determining a score weight according to the time difference, wherein the score weight is used for multiplying the cumulative times of the options;

and S33, calculating the preference scores of the personal options and the crowdsourcing options, calculating the option scores by combining the score weights, and sorting the options according to the option scores.

As an embodiment of the present application, in step S33, calculating a personal option preference score and a crowd option preference score, calculating the option score by combining score weights, and ranking options according to the option scores specifically includes: the drop-down box per option score is calculated using the following equation:

Score=UserACC*Fu(Tudiff)+PeopleACC*Fp(Tpdiff)

score is the option ranking Score;

UserACC is the cumulative number of times that the user personally selects the option;

peoplesac selects the cumulative number of times of the option for all users;

tudiff is the time difference between the last two times that the user has personally entered the option;

the Tpdiff is the time difference between the last two times of inputting the option by all the users;

fu (tudiff) is a personal option preference function, the personal option preference function inputs the time difference of two choices of the user in the last time, and the personal option preference function outputs the weight according to the range of the time difference of the two choices in the last time;

fp (tpdiff) is a crowd option preference function, which inputs the time difference between two choices of the most recent user and takes the range of the two time differences as the weighted output. V, W, X, Y, Z in table 1 represent the scores of the outputs.

Range of time difference Fu (Tudiff) function output Fp (tpdiff) function output
Less than A minutes V V/n
More than A minutes and less than B hours W W/n
More than B hours and less than C days X X/n
More than C days and less than D days Y Y/n
Greater than D days Z Z/n

TABLE 1

And are illustrated by actual numbers as follows:

range of time difference Fu (Tudiff) function output Fp (tpdiff) function output
Less than 20 minutes 6 3
More than 20 minutes and less than 2 hours 5 2.5
More than 2 hours and less than 1 day 4 2
More than 1 day and less than 2 days 3 1.5
More than 2 days 2 1

TABLE 2

Table 2 shows the results of the actual numerical entries, for example:

the drop-down box has an Option (Option1) that the user person selects 2 times in 20 minutes. The time difference Tudiff and Tpdiff between the last two selections is within 20 minutes. So the fu (tudiff) function output is 6, the fp (tpdiff) function output is 3. While the user acc person count for this option is 15 and the peoplesac crowd count for this option is 20. So the Score of this Option is Option1 Score 15 x 6+20 x 3 x 150(CASE I)

If another Option (Option2), the current time difference between the last two selections by the user is more than 2 days. The time difference between all users selecting the option is more than 20 minutes and less than 2 hours. So the fu (tudiff) function output is 2, the fp (tpdiff) function output is 2.5. While the user acc person count for this option is 20 and the peoplesac crowd count for this option is 30. The Score of this Option is Option2 Score 20 x 2+30 x 2.5 x 115(CASE II)

At this point the fraction of the Option2 is less than the Option1 so the sorting of the Option1 precedes the Option2 when the drop down box loads options. If Option2 is selected twice more than 20 minutes and less than 2 hours by the user's person. The score of this option will again vary as follows.

Option2 new Socre=21*5+31*2.5=182.5(CASE III)

Since the latest score of the Option2 is greater than the score of the Option1, the next time the drop down box loads options, the Option2 will be sorted before the Option 1. The ranking score of each option varies with the cumulative number of selections made by the user, the cumulative number of selections made by all users, the time difference between the last two selections made by the user, and the time difference between the last two selections made by all users. As long as the options are selected frequently by the user, or the cumulative number of times that the options are selected is large. The resulting score will also be high. Even if the user does not select the option, the cumulative number of times is increased to increase the overall score and ranking of the option because all other users select the option.

Tudiff=Tnow–Tupre…(301)

Tpdiff=Tnow–Tppre…(302)

Tupre the time when the personal user last selected the option

Tppre time when all users last selected the option

When the individual user selects an option, the current time (Tnow) is subtracted by the time (Tupre, Tppre) of the previous selection. The time difference Tudiff, Tpdiff is calculated as in the formulas 301,302, and then the personal preference time Tupre is converted to Tnow time. The preference time Tppre of people is also changed into the time Tnow, so that the next round of calculation is facilitated. After all users of the system finish selecting and send the option, the time Tppre preferred by the crowds of the option is changed into Tnow. The personal preference time Tupre is changed to the current time Tnow only when the user is finished selecting and sending out. If the other person on the system selects the option, the personal preference selection time Tupre of the other person is not updated. Only the crowd preferred pick time Tppre will be updated.

Output of Fu (Tudiff) Output of Fp (Tpdiff)
Whether or not to be updated by the user's personal selection YES YES
Whether or not to be updated by selection of other users No YES
Whether or not it is updated by the current time (Tnow) YES YES

TABLE 3 preference function output is updated by the user's personal, other users, current time

As can be seen from table 3, if the user selects the option, the output of the personal preference function fu (tudiff) and the output of the crowd preference function fp (tpdiff) are affected at the same time. That is, the time difference Tudiff and Tpdiff inputted by the two devices is updated by the user's personal selection. And the individual user has not selected the option for a certain period of time. Only when other people select the option, Tudiff is not updated by other people, so the output of Fu (Tudiff) will not change, only the output of Fp (Tpdiff) will change. However, the current time Tnow varies with time. The outputs of the personal preference function fu (tudiff) and the crowd preference function fp (tpdiff) are also updated with the current time Tnow.

In the above example, n is 2, so it is within the same time range. The weight of the fu (tudiff) function preference of the personal preference is 2 times the weight output of the crowd preference fp (tpdiff) function. This means that the fractional change in the weight of personal preference is 2 times the crowd preference over the same time frame. This is because the output of the crowd-sourced preference fp (tpdiff) weight is varied by the selection of the option by all on the system. In order to reduce the sensitivity of the output of the weight calculation module, n parameters can be set. The output weight of the crowd choice preference fp (tpdiff) is reduced. When the weight calculating module outputs the score, the sort of the options will not change too much due to the change of the preference Fp (Tpdiff) of the people in a short time, which causes the trouble of the user.

When a general user selects the drop-down box, the user often selects several options within a certain period of time, which will be referred to as personal option preferences hereinafter. And a plurality of users can also concentrate on selecting some options for the same drop-down box, which is hereinafter referred to as crowd option preference. When the user uses the drop-down box, the user only needs to select a certain option and presses the drop-down box after the delivery. The option is stored in a database of the storage device, hereinafter referred to as database. When the same electronic form is loaded next time, the personal preference and the crowd preference are retrieved from the database. And through the weight calculation module, the most appropriate option is calculated. The option is then entered into the drop-down box. The user then simply confirms whether the pre-entered option of the drop-down box is the option that the user wants to select. If so, user time can be saved. If not, the user then enters the option he wants to select by himself.

The invention can save the time for the user to select the drop-down box option. The drop down box may load system auto sort options. The user can select the option desired by the user after searching the whole pull-down box option without spending extra time. The invention can dynamically and automatically select the most possible option selected by the user from the drop-down box according to the data. Or the more frequently used options of the user are ranked in the front part of the drop-down box option comparison, so that the time for the user to select the options is saved. Each time the drop-down box option is sent, the times of the option selected by the user for the drop-down box are recorded, the option with the larger selected times is easier to become the preset loading value of the drop-down box, and the drop-down box options are also sorted according to the selected times, and the option which is selected more often is arranged on the drop-down box option. The time that the user can select the option only by pulling the pull-down frame to the bottom is reduced. The user is allowed to select the drop-down box option in less time.

As shown in fig. 4, this embodiment further provides an electronic form drop-down box option presentation sorting apparatus, including:

a personal preference option database unit 11 for recording the parameter contents including the times of selecting the drop-down box options by a single user;

a crowd preference option database unit 12 for recording parameter contents including the times of all users of the whole system selecting the drop-down box options;

the weight calculation module unit 13 calculates option scores according to the acquired drop-down frame option parameter contents of the personal preference option database unit and the crowd preference option database unit, and obtains option sequencing;

a drop-down frame option ordering database unit 14 for acquiring and storing the drop-down frame option ordering of the weight calculation module unit;

the pull-down frame module unit 15 loads the sort content in the pull-down frame option sort database unit, and adjusts the pull-down frame preset load value according to the sort size.

As shown in fig. 5, as an embodiment of the present application, a weight calculating module unit includes:

the option cumulative number calculating module 131 obtains the cumulative number of times that a single user selects the option and the cumulative number of times that all users of the whole system select the option;

the score weight module 132 is used for acquiring the time difference between the two choices and determining a score weight according to the time difference, wherein the score weight is used for multiplying the cumulative times of the choices;

the option score calculating module 133 calculates a personal option preference score and a crowd option preference score, calculates the option score by combining the score weight, and sorts the options according to the option scores.

As an embodiment of the present application, the option score calculation module calculates each option score of the drop-down box using the following formula:

Score=UserACC*Fu(Tudiff)+PeopleACC*Fp(Tpdiff)

score is the option ranking Score;

UserACC is the cumulative number of times that the user personally selects the option;

peoplesac selects the cumulative number of times of the option for all users;

tudiff is the time difference between the last two times that the user has personally entered the option;

the Tpdiff is the time difference between the last two times of inputting the option by all the users;

fu (tudiff) is a personal option preference function, the personal option preference function inputs the time difference of two choices of the user in the last time, and the personal option preference function outputs the weight according to the range of the time difference of the two choices in the last time;

fp (tpdiff) is a crowd option preference function, which inputs the time difference between two choices of the most recent user and takes the range of the two time differences as the weighted output.

As shown in fig. 6, as an embodiment of the present application, a drop-down frame module unit includes:

an initialization module 151, configured to pre-input a user preference according to a crowd preference of a crowd preference option database unit when a certain option is never selected by a current user, so as to complete the sorting of drop-down box options;

and a dynamic sorting module 152, configured to use the option with the highest sorting order as a preset input option when loading the drop-down box, and determine a display order of the remaining options according to the sorting size.

Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种表单页面文档生成方法、表单页面渲染方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!