Disclosure of Invention
To overcome the problems in the related art, the present specification provides a data display method, apparatus, and device.
According to a first aspect of embodiments herein, there is provided a data display method, the method comprising:
receiving data input by a user;
acquiring an input time interval between two adjacent input data;
grouping the input data based on the input time interval to differentially display the differently grouped data when the input data is displayed.
Optionally, the obtaining a time interval between two adjacent input data includes:
acquiring the input time of data, and calculating the time difference of the input time between two adjacent input data to obtain the input time interval; or the like, or, alternatively,
and starting timing after receiving the data until receiving the next input data, and obtaining the input time interval according to the timing result.
Optionally, the grouping the input data based on the input time interval includes:
and grouping two adjacent input data of which the input time interval is smaller than a target threshold value.
Optionally, the target threshold is determined by obtaining historical input characteristics of the user.
Optionally, the differential display includes one or more of the following:
and adopting interval display or adopting different data formats for display.
Optionally, the data includes: bank card number, identification number, mobile phone number, taxpayer identification number or user account number.
According to a second aspect of embodiments herein, there is provided a data display apparatus, the apparatus comprising:
a receiving module to: receiving data input by a user;
an acquisition module to: acquiring an input time interval between two adjacent input data;
a packet display module to: grouping the input data based on the input time interval to differentially display the differently grouped data when the input data is displayed.
Optionally, the obtaining module is further configured to:
acquiring the input time of data, and calculating the time difference of the input time between two adjacent input data to obtain the input time interval; or the like, or, alternatively,
and starting timing after receiving the data until receiving the next input data, and obtaining the input time interval according to the timing result.
Optionally, the grouping the input data based on the input time interval includes:
and grouping two adjacent input data of which the input time interval is smaller than a target threshold value.
Optionally, the target threshold is determined by obtaining historical input characteristics of the user.
Optionally, the grouping display module is configured to perform differentiated display through one or more of the following:
using separate displays or using different data formats
According to a third aspect of embodiments herein, there is provided a data display device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the following method when executing the program:
receiving data input by a user;
acquiring an input time interval between two adjacent input data;
grouping the input data based on the input time interval to differentially display the differently grouped data when the input data is displayed.
The technical scheme provided by the embodiment of the specification can have the following beneficial effects:
in the embodiment of the specification, different users have different dividing modes for data to be input, the data input by the users can be grouped by acquiring the input time interval between two adjacent input data, and the grouping result corresponds to the dividing mode of the data by the users, so that the data in different groups are displayed in a distinguishing manner when the input data is displayed, and accordingly, the data is displayed in a distinguishing manner correspondingly in the page according to the dividing mode of the data by the users, so that the users can conveniently input, consult and check the data, and the probability of data input errors is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the appended claims.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Taking inputting the bank card number as an example, in the scenes of a transfer page or a personal information page and the like, a user can input the bank card number through the page, and the bank card number input by the user is received by the page and then displayed in the page. The number of digits of the bank card number is usually large, and how to display the input bank card number will affect the correct input and data check of the user.
For example, if the bank card number is displayed as follows: "56315861310224566897", will cause great difficulty in user verification. Alternatively, the page may display the card number in a fixed division, such as "5631586131022456789". However, although the number of digits of the bank card issued by each bank is the same, the division of the bank card numbers displayed on the physical bank cards is different, some banks display the 19-digit bank card numbers in the division of 4-4-4-4-3, some banks divide the bank card numbers into 6-6-4-3, and so on. If the page is displayed according to a fixed division mode, the division mode of the page may be different from that of the physical bank card, for example, the display mode of the page is 4-4-4-4-3, but the division mode of the physical bank card of the user on the bank card number is 6-6-4-3, which also brings great trouble to the user input and verification.
Based on this, as shown in fig. 1, it is a flowchart of a data display method shown in the present specification according to an exemplary embodiment, including:
in step 102, data input by a user is received.
In step 104, an input time interval between two data input adjacently is acquired.
In step 106, the input data is grouped based on the input time interval, so that when the input data is displayed, the data of different groups is displayed in a distinguishing way.
In the embodiment of the present specification, for a scenario in which a user needs to input a long string of data, different users may have certain differences in data memory manner and data division manner. For example, an 11-digit phone number "13602425712" may be divided into the following ways: "13602425712", some users may divide as follows: "13602425712", still other users may use other divisions: "13602425712", and so on.
For data such as bank card numbers with more digits, users may remember card numbers, and the card numbers are divided by many different users. In some examples, the user may also have a physical bank card, consult a record on the physical bank card, and enter data in the page. In other examples, the user may record the bank card number in a memorandum or the like according to some division mode, and check the record in the memorandum when the data needs to be input.
It can be understood that the user can input data in the page according to the preferred dividing mode. The data display scheme of the embodiment can correspondingly display data in the page according to the division mode of the user, thereby being convenient for the user to input, consult and check.
Specifically, when the user inputs data, the present embodiment determines the data dividing manner by the user by using the input time interval between two adjacent input data. As an example, if the user refers to the card number "5631586131022456789" recorded in the physical bank card, and the user usually inputs the card number according to the division, then, regarding "5631" in the card number, the user inputs these 4 numbers more quickly, and then inputs "5861" again quickly, and between "1" and "5", the user may have a certain pause due to memorizing or referring to the bank card, so that a certain time is left between the input of "1" and the input of "5". It can be seen that different ways of dividing the data by the user will affect the time interval of inputting the data by the user.
Based on this, in the data display method provided in the embodiment of the present specification, because different users have different dividing manners for data to be input, the data input by the users can be grouped by obtaining the input time interval between two pieces of data input adjacently, and the grouping result corresponds to the dividing manner of the data by the users, so that when the input data is displayed, the data in different groups is displayed in a differentiated manner, thereby realizing that the display is correspondingly differentiated in the page according to the dividing manner of the data by the users, so that the users can conveniently input, refer and check, and the probability of data input errors is reduced.
The data display method of the present embodiment may be applied to any scene that needs to input data, where the data may be numbers, letters, texts, images, or the like, and this embodiment is not limited thereto. For the scenes that the user needs to continuously input more data, such as the bank card number, the identification number, the mobile phone number, the taxpayer identification number or the user account number, the effect of the embodiment can be more remarkably highlighted because the user needs to continuously input more data in such scenes.
Optionally, an input object may be provided on the data display page, where the input object may specifically be a control such as an input box, and data input by the user is received through the input object. In practical application, a plurality of input modes can be provided, for example, touch input based on a touch screen can be provided, and a user can realize input through the touch screen of the touch device; but also a keyboard input or a mouse input of a personal computer; or it may also be voice input, for example, a device such as a smart speaker or a smart television may input data by the user's voice, etc. This embodiment is not limited to this.
Alternatively, the present embodiment may detect each data input by the user in various ways, and based on this, obtain the input time interval between two data input adjacently. In some examples, the input time of the data may be obtained, and the input time interval may be obtained by calculating a time difference between the input times of two adjacent input data; in other examples, the input time interval may be obtained from the time when each data input by the user is received until the next data input is received.
It can be understood that, for more data, the user may divide the data into multiple groups and input the data, the user may input multiple data belonging to the same group more quickly, and the interval between inputting data of the next group after the data of the group is input is slightly longer. Optionally, in practical application, a specific implementation manner of the grouping may be flexibly configured, for example, a target threshold may be set, and for two adjacent input data, if an input time interval is not greater than the target threshold, the two adjacent input data may be grouped into one group; the target threshold may be flexibly determined according to needs, and may be set to a fixed time duration, such as 0.2 second, 0.5 second, or 1 second, for example, which is not limited in this embodiment. In practical applications, the input speed may be different for different users, and a dynamic target threshold may also be set, where the target threshold may be determined by obtaining historical input features of the user, for example, by collecting historical input features of the user, such as an input speed feature, an input time interval feature, and the like, for a certain time, and determining a target threshold adapted to the user based on the collected historical input features.
Through the embodiment, because the input data are grouped based on the input time interval, when the input data are displayed, the data of different groups can be distinguished and displayed, and the specific distinguishing and displaying mode can be realized in various modes, for example, the interval distinguishing and displaying mode can be adopted, and specifically, the interval can be added between two groups, so that each group of data can be distinguished; alternatively, different data formats may be used for differentiated display, e.g., different groupings of data may have different fonts, glyphs (slant or bolding, etc.), font sizes, colors, underlining or highlighting colors, etc. Alternatively, any of the above-mentioned distinguishing display modes may be adopted, and a combination of two or more modes may also be adopted, for example, a combination of a space mode, an oblique mode and a bold mode, and the like.
Fig. 2A is a schematic diagram illustrating data display according to an exemplary embodiment, where in fig. 2A, a transfer page is taken as an example, the transfer page may be a software interface on a smart phone, and a user needs to input a bank card number in the interface. Optionally, for the transfer page, a touch detection function, a data input function, a data display function, or the like is implemented.
By way of example, the right side of the "account" in FIG. 2A is implemented with a text entry box control that is capable of listening for data entry events for receiving data entered by a user. In addition, a data display control can be realized, and after the text input box control receives each data input by the user, the data display control can be assigned with the value so as to display the data input by the user in the page.
In this embodiment, the transfer page is implemented with an input detection function to obtain an input time interval between two adjacent input data. For example, after the user inputs the first data "6", the input time and other information may be detected, and then the user inputs "2" again, and by acquiring that the input time interval between "6" and "2" is 0.3 seconds (the target threshold value of the present embodiment is 1 second), it is determined to group "6" and "2". When the user inputs "9", since the input time interval between "9" and "0" is 1.5 seconds, "9" is classified into a new group. As shown in fig. 2A, the present embodiment adopts an interval display manner to perform differentiated display on data of different groups. As shown in fig. 2B, this embodiment further illustrates two other ways of distinguishing and displaying, one of which is to alternately underline each set of data, and the other is to combine the space, italics and bold, and the specific way of distinguishing and displaying can be flexibly configured according to the needs.
Because different users have different dividing modes for data to be input, the embodiment can group the data input by the users by obtaining the input time interval between two adjacent input data, and the grouping result corresponds to the dividing mode of the data by the users, so that the data in different groups can be displayed in a distinguishing way when the input data is displayed, and accordingly, the data can be correspondingly displayed in a distinguishing way in the page according to the dividing mode of the data by the users, so that the users can conveniently input, look up and check the data, and the probability of data input errors is reduced.
Corresponding to the embodiment of the data display method, the specification also provides an embodiment of the data display device and the terminal equipment applied by the data display device.
The data display device of the present specification can be applied to computer equipment, such as terminal equipment and the like. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and as a device in a logical sense, a processor in which data is displayed reads corresponding computer program instructions in the nonvolatile memory into the memory for operation. From a hardware aspect, as shown in fig. 3, which is a hardware structure diagram of a device in which a data display apparatus is located in an embodiment of this specification, except for the processor 310, the memory 330, the network interface 320, and the nonvolatile memory 340 shown in fig. 3, the device in which the apparatus 331 is located in the embodiment may also include other hardware according to an actual function of the device, and details of this are not described again.
As shown in fig. 4, fig. 4 is a block diagram of an apparatus shown in this specification according to an exemplary embodiment, the apparatus comprising:
a receiving module 41, configured to: receiving data input by a user;
an obtaining module 42 configured to: acquiring an input time interval between two adjacent input data;
a grouping display module 43 for: grouping the input data based on the input time interval to differentially display the differently grouped data when the input data is displayed.
Optionally, the obtaining module is further configured to:
acquiring the input time of data, and calculating the time difference of the input time between two adjacent input data to obtain the input time interval; or the like, or, alternatively,
and starting timing after receiving the data until receiving the next input data, and obtaining the input time interval according to the timing result.
Optionally, the grouping the input data based on the input time interval includes:
and grouping two adjacent input data of which the input time interval is smaller than a target threshold value.
Optionally, the target threshold is determined by obtaining historical input characteristics of the user.
Optionally, the grouping display module is configured to perform differentiated display through one or more of the following:
and adopting interval display or adopting different data formats for display.
Optionally, the data includes: bank card number, identification number, mobile phone number, taxpayer identification number or user account number.
Accordingly, the present specification also provides a data display device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the following method when executing the program:
receiving data input by a user;
acquiring an input time interval between two adjacent input data;
grouping the input data based on the input time interval to differentially display the differently grouped data when the input data is displayed.
The implementation processes of the functions and actions of the modules in the data display device are specifically described in the implementation processes of the corresponding steps in the data display method, and are not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Other embodiments of the present description will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.