CN115328602A - Control display method, device, equipment, medium and program product - Google Patents

Control display method, device, equipment, medium and program product Download PDF

Info

Publication number
CN115328602A
CN115328602A CN202211025977.XA CN202211025977A CN115328602A CN 115328602 A CN115328602 A CN 115328602A CN 202211025977 A CN202211025977 A CN 202211025977A CN 115328602 A CN115328602 A CN 115328602A
Authority
CN
China
Prior art keywords
control
page
data
controls
target page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211025977.XA
Other languages
Chinese (zh)
Inventor
李文东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuming Technology Hangzhou Co ltd
Original Assignee
Wuming Technology Hangzhou Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuming Technology Hangzhou Co ltd filed Critical Wuming Technology Hangzhou Co ltd
Priority to CN202211025977.XA priority Critical patent/CN115328602A/en
Publication of CN115328602A publication Critical patent/CN115328602A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a control display method, device, equipment, medium and program product, and relates to the technical field of computers. The method comprises the following steps: acquiring control data corresponding to a target page; receiving a control sliding operation on a target page; and responding to the sliding direction indication of the sliding operation, updating data according to the display sequence of the control data in a forward sequence, updating and loading the control data loaded in the (i + k) th page control into the ith page control, and displaying second data in the target page. In the process of rendering and displaying the control data on the target page, a certain number of page controls are created on the page instead of creating one page control for each piece of control data, and the control data are sequentially loaded into the page controls to be displayed, so that the number of the controls needing to be created in the target page is reduced, the loss of computer performance is reduced, and the problem of page jamming when the target page displays the controls with large orders of magnitude is solved.

Description

控件显示方法、装置、设备、介质及程序产品Control display method, device, device, medium and program product

技术领域technical field

本申请实施例涉及计算机技术领域,特别涉及一种控件显示方法、装置、设备、介质及程序产品。The embodiments of the present application relate to the field of computer technology, and in particular to a control display method, device, equipment, medium, and program product.

背景技术Background technique

在游戏、浏览器等应用程序的页面中,控件是较为重要的显示元素,可以作为承载用户操作的操作对象,也可以作为展示信息(例如:表格、图片等)的容器对象。In the pages of applications such as games and browsers, controls are relatively important display elements, which can be used as operation objects carrying user operations, or as container objects for displaying information (eg tables, pictures, etc.).

相关技术中,当一个页面要渲染上万个控件时,需要根据控件数据库中的数据将这上万个控件渲染至页面中,也即,需要在该页面中创建并显示上万个控件。In related technologies, when a page needs to render tens of thousands of controls, the tens of thousands of controls need to be rendered into the page according to the data in the control database, that is, tens of thousands of controls need to be created and displayed on the page.

然而,上述相关技术显示控件的方式需要页面在打开,或者页面在动态变化时,加载大量的数据进行渲染,从而导致页面出现卡顿的现象。However, the method of displaying controls in the above-mentioned related technologies requires that a large amount of data be loaded for rendering when the page is opened or dynamically changed, thus causing the page to freeze.

发明内容Contents of the invention

本申请实施例提供了一种控件显示方法、装置、设备、介质及程序产品,能够解决页面在显示大数量级的控件时的页面卡顿问题。所述技术方案如下:Embodiments of the present application provide a control display method, device, device, medium, and program product, which can solve the page freeze problem when a large number of controls is displayed on a page. Described technical scheme is as follows:

一方面,提供了一种控件显示方法,所述方法包括:In one aspect, a control display method is provided, and the method includes:

获取目标页面对应的控件数据,所述控件数据用于加载在所述目标页面的控件中进行显示,其中,所述目标页面包括顺序排列的多个页面控件,所述多个页面控件中包括处于所述目标页面内和处于所述目标页面外的控件;Acquiring control data corresponding to the target page, the control data is used to load and display in the control of the target page, wherein the target page includes a plurality of page controls arranged in sequence, and the plurality of page controls include the Controls inside and outside the target page;

接收在所述目标页面上的控件滑动操作,所述控件滑动操作用于沿滑动方向从所述目标页面内的第一控件中清除第一数据,并将第二数据加载至所述目标页面内的控件中;receiving a control sliding operation on the target page, the control sliding operation is used to clear the first data from the first control in the target page along the sliding direction, and load the second data into the target page in the control;

响应于所述滑动操作的所述滑动方向指示,按所述控件数据的显示顺序正序进行数据更新,将第i+k个页面控件内加载的控件数据更新加载至第i个页面控件中,显示处于所述目标页面内的所述第二数据,其中,i为正整数,k为预设的正整数;或者,响应于所述滑动操作的所述滑动方向指示,按所述控件数据的显示顺序反序进行数据更新,将第i个页面控件对应的控件数据之前的第k个控件数据更新加载至第i个页面控件中,显示处于所述目标页面内的所述第二数据。In response to the sliding direction indication of the sliding operation, data update is performed in a positive order according to the display order of the control data, and the control data loaded in the i+kth page control is updated and loaded into the i-th page control, Displaying the second data in the target page, wherein i is a positive integer and k is a preset positive integer; or, in response to the sliding direction indication of the sliding operation, according to the control data The display sequence is reversed to update the data, update and load the kth control data before the control data corresponding to the i-th page control to the i-th page control, and display the second data in the target page.

另一方面,提供了一种控件显示装置,所述装置包括:In another aspect, a control display device is provided, and the device includes:

获取模块,用于获取目标页面对应的控件数据,所述控件数据用于加载在所述目标页面的控件中进行显示,其中,所述目标页面包括顺序排列的多个页面控件,所述多个页面控件中包括处于所述目标页面内和处于所述目标页面外的控件;An acquisition module, configured to acquire control data corresponding to the target page, the control data is used to load and display in the controls of the target page, wherein the target page includes a plurality of page controls arranged in sequence, and the plurality of The page controls include controls inside the target page and outside the target page;

接收模块,用于接收在所述目标页面上的控件滑动操作,所述控件滑动操作用于沿滑动方向从所述目标页面内的第一控件中清除第一数据,并将第二数据加载至所述目标页面内的控件中;A receiving module, configured to receive a control sliding operation on the target page, the control sliding operation is used to clear the first data from the first control in the target page along the sliding direction, and load the second data to In controls within said target page;

更新模块,用于响应于所述滑动操作的所述滑动方向指示,按所述控件数据的显示顺序正序进行数据更新,将第i+k个页面控件内加载的控件数据更新加载至第i个页面控件中,显示处于所述目标页面内的所述第二数据,其中,i为正整数,k为预设的正整数;或者,响应于所述滑动操作的所述滑动方向指示,按所述控件数据的显示顺序反序进行数据更新,将第i个页面控件对应的控件数据之前的第k个控件数据更新加载至第i个页面控件中,显示处于所述目标页面内的所述第二数据。An updating module, configured to respond to the sliding direction indication of the sliding operation, perform data updating in the order of the display order of the control data, and update and load the control data loaded in the i+k page control to the i In a page control, the second data in the target page is displayed, wherein, i is a positive integer, and k is a preset positive integer; or, in response to the sliding direction indication of the sliding operation, press The display order of the control data is reversed to perform data update, update and load the kth control data before the control data corresponding to the i-th page control to the i-th page control, and display the second data.

另一方面,提供了一种计算机设备,所述计算机设备包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如上述本申请实施例中任一所述的控件显示方法。In another aspect, a computer device is provided, the computer device includes a processor and a memory, at least one instruction, at least one program, code set or instruction set are stored in the memory, the at least one instruction, the at least A program, the code set or instruction set is loaded and executed by the processor to implement the control display method described in any one of the above-mentioned embodiments of the present application.

另一方面,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现如上述本申请实施例中任一所述的控件显示方法。In another aspect, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, code set or instruction set are stored in the storage medium, the at least one instruction, the at least one program, the code The set or instruction set is loaded and executed by the processor to implement the control display method described in any one of the above-mentioned embodiments of the present application.

另一方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例中任一所述的控件显示方法。In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the control display method described in any one of the above embodiments.

本申请实施例提供的技术方案带来的有益效果至少包括:The beneficial effects brought by the technical solutions provided by the embodiments of the present application at least include:

通过接收在目标页面上的控件滑动操作,将获取得到目标页面对应的控件数据沿着滑动操作的滑动方向依次加载并显示在目标页面中的页面控件中,由于在将控件数据渲染显示在目标页面的过程中,不需要为每一条控件数据都创建一个页面控件,而是在页面上创建一定数量的页面控件,将控件数据依次加载至页面控件中进行显示减少了在目标页面中需要创建的控件的数量,从而减少了对于计算机性能的损耗,解决了目标页面在显示大数量级的控件时的页面卡顿问题。By receiving the control sliding operation on the target page, the obtained control data corresponding to the target page will be sequentially loaded along the sliding direction of the sliding operation and displayed in the page controls on the target page, because the control data is rendered and displayed on the target page In the process, it is not necessary to create a page control for each piece of control data, but to create a certain number of page controls on the page, and load the control data into the page controls in turn for display, reducing the number of controls that need to be created in the target page The number, thereby reducing the loss of computer performance, and solving the page freeze problem when the target page displays a large number of controls.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1是本申请一个示例性实施例提供的实施环境示意图;FIG. 1 is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;

图2是本申请一个示例性实施例提供的控件显示方法的流程图;Fig. 2 is a flowchart of a control display method provided by an exemplary embodiment of the present application;

图3是本申请一个示例性实施例提供的控件显示方法中控件数据在页面控件中逐个移动的过程示意图;Fig. 3 is a schematic diagram of the process of moving control data in page controls one by one in the control display method provided by an exemplary embodiment of the present application;

图4是本申请一个示例性实施例提供的控件显示方法中控件数据在页面控件中间隔移动的过程示意图;Fig. 4 is a schematic diagram of a process in which control data moves at intervals among page controls in a control display method provided by an exemplary embodiment of the present application;

图5是本申请一个示例性实施例提供的控件显示方法中控件数据沿着目标页面的相反方向更新在页面控件中的过程示意图;Fig. 5 is a schematic diagram of the process of updating control data in the page control along the opposite direction of the target page in the control display method provided by an exemplary embodiment of the present application;

图6是本申请另一个示例性实施例提供的控件显示方法的流程图;Fig. 6 is a flowchart of a control display method provided by another exemplary embodiment of the present application;

图7是本申请一个示例性实施例提供的控件显示方法中控件数据整行或者整列在页面控件中进行移动的过程示意图;Fig. 7 is a schematic diagram of the process of moving the entire row or column of control data in the page control in the control display method provided by an exemplary embodiment of the present application;

图8是本申请另一个示例性实施例提供的控件显示方法的流程图;Fig. 8 is a flowchart of a control display method provided by another exemplary embodiment of the present application;

图9是本申请一个示例性实施例提供的控件显示方法中围绕中心点更新多个页面控件中的控件数据的过程示意图;FIG. 9 is a schematic diagram of the process of updating control data in multiple page controls around a central point in a control display method provided by an exemplary embodiment of the present application;

图10是本申请一个示例性实施例提供的控件显示方法中实现模拟滑动动画的示意图;Fig. 10 is a schematic diagram of implementing a simulated sliding animation in a control display method provided by an exemplary embodiment of the present application;

图11是本申请另一个示例性实施例提供的控件显示方法的流程图;Fig. 11 is a flowchart of a control display method provided by another exemplary embodiment of the present application;

图12是本申请一个示例性实施例提供的控件显示方法的关联控件的显示方法的示意图;Fig. 12 is a schematic diagram of a display method of associated controls in a control display method provided by an exemplary embodiment of the present application;

图13是本申请另一个示例性实施例提供的控件显示方法的流程图;Fig. 13 is a flowchart of a control display method provided by another exemplary embodiment of the present application;

图14是本申请一个示例性实施例提供的控件显示方法中控件数据在页面控件中移动的过程示意图;Fig. 14 is a schematic diagram of the process of moving control data in the page control in the control display method provided by an exemplary embodiment of the present application;

图15是本申请一个示例性实施例提供的控件显示装置的结构框图;Fig. 15 is a structural block diagram of a control display device provided by an exemplary embodiment of the present application;

图16是本申请另一个示例性实施例提供的控件显示装置的结构框图;Fig. 16 is a structural block diagram of a control display device provided by another exemplary embodiment of the present application;

图17是本申请一个示例性实施例提供的计算机设备的结构框图。Fig. 17 is a structural block diagram of a computer device provided by an exemplary embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the application clearer, the following will further describe the implementation of the application in detail with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

本申请中术语“第一”、“第二”等字样用于对作用和功能基本相同的相同项或相似项进行区分,应理解,“第一”、“第二”之间不具有逻辑或时序上的依赖关系,也不对数量和执行顺序进行限定。In this application, the terms "first", "second" and other words are used to distinguish the same or similar items with basically the same function and function. It should be understood that there is no logical or logical relationship between "first" and "second". Timing dependencies are not limited to the number and execution order.

用户界面UI(User Interface)控件是指在应用程序的用户界面上能够看见的任何可视控件或元素。例如,图片、输入框、文本框、按钮、标签等控件,其中一些UI控件响应用户的操作。相关技术中,如在游戏界面内通常需要渲染大数量级(如:上万个)控件,需要根据控件数据库中的数据将这上万个控件渲染至页面中,也即,需要在该页面中创建并显示上万个控件。然而,上述相关技术显示控件的方式需要页面在打开,或者页面在动态变化时,加载大量的数据进行渲染,从而导致页面出现卡顿的现象。User interface UI (User Interface) control refers to any visual control or element that can be seen on the user interface of the application. For example, controls such as pictures, input boxes, text boxes, buttons, and labels, among which some UI controls respond to user operations. In related technologies, for example, it is usually necessary to render a large number of controls (such as tens of thousands) in the game interface, and these tens of thousands of controls need to be rendered to the page according to the data in the control database, that is, it needs to be created in the page. And display tens of thousands of controls. However, the method of displaying controls in the above-mentioned related technologies requires that a large amount of data be loaded for rendering when the page is opened or dynamically changed, thus causing the page to freeze.

例如:在3维(3Dimensions,3D)游戏界面中,往往包含有大量的显示元素和承载用户操作的元素,计算机需要为这些元素创建相应数量的控件,那么,在初始化游戏界面时,由于需要创建大量的控件以承载这些元素,玩家在点击进入游戏界面时,会明显感觉到页面卡顿,从而给玩家带来较差的游戏体验。For example: in the 3-dimensional (3Dimensions, 3D) game interface, it often contains a large number of display elements and elements that carry user operations, and the computer needs to create a corresponding number of controls for these elements. Then, when initializing the game interface, due to the need to create A large number of controls are used to carry these elements. When players click to enter the game interface, they will obviously feel that the page is stuck, which will bring players a poor game experience.

本申请实施例提供了一种控件显示方法,解决了包含有大数量级控件(如:1000个以上)的页面的卡顿问题。在处理大数量级控件的页面时,包括以下步骤:The embodiment of the present application provides a method for displaying controls, which solves the jamming problem of pages containing a large number of controls (eg, more than 1,000). When dealing with pages with a large number of controls, the following steps are involved:

(1)初始化页面控件。(1) Initialize the page control.

在页面初始化的时候,根据页面的分辨率设计一个页面的宽度能放下的控件数量n,需要展示的控件的行数为m,将能够填满整个界面的控件初始化。When the page is initialized, according to the resolution of the page, design the number n of controls that can be placed in the width of the page, and the number of rows of controls that need to be displayed is m, and initialize the controls that can fill the entire interface.

(2)控件赋值。(2) Control assignment.

根据服务器反馈给终端的控件数据集,将需要展示给用户的控件数据集中的前m×n个控件数据赋值到这m×n个控件中。According to the control data set fed back from the server to the terminal, the first m×n control data in the control data set that needs to be displayed to the user is assigned to the m×n controls.

(3)数据移动赋值。(3) Data movement assignment.

当用户操作鼠标对目标页面进行滑动浏览时,目标页面中的m×n个控件不进行移动,而是将这m×n个控件中的数据进行重新赋值。例如:将第一个控件内的数据变成第二个控件的数据,如果一行有n个控件,那这一行最后的控件中加载的数据就是n+1个数据,以此模拟控件的移动。When the user operates the mouse to scroll and browse the target page, the m×n controls in the target page will not be moved, but the data in the m×n controls will be reassigned. For example: change the data in the first control to the data of the second control, if there are n controls in a row, then the data loaded in the last control in this row is n+1 data, so as to simulate the movement of controls.

图1是本申请一个示例性实施例提供的实施环境示意图,如图1所示,该实施环境中包括终端110、服务器120和通信网络130,其中,终端110和服务器120之间通过通信网络130连接,在一些可选的实施例中,通信网络130可以是有线网络,也可以是无线网络,本实施例对此不加以限定。FIG. 1 is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application. As shown in FIG. Connection. In some optional embodiments, the communication network 130 may be a wired network or a wireless network, which is not limited in this embodiment.

在一些可选的实施例中,终端110是智能手机、平板电脑、笔记本电脑、台式计算机、智能家电、智能车载终端、智能音箱、数码相机等,但并不局限于此。以终端110实现为智能手机为例进行说明,可选地,终端110中安装和运行有目标应用程序,该目标应用程序可加载有显示大量控件的页面,示意性地,该目标应用程序可以是游戏应用程序、浏览器应用程序、即时通讯应用程序、社交应用程序、金融管理应用程序、购物应用程序等,本申请实施例对此不加以限定。In some optional embodiments, the terminal 110 is a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart home appliance, a smart vehicle terminal, a smart speaker, a digital camera, etc., but is not limited thereto. The terminal 110 is implemented as a smart phone as an example for illustration. Optionally, a target application program is installed and running in the terminal 110. The target application program may be loaded with a page displaying a large number of controls. Schematically, the target application program may be Game application programs, browser application programs, instant messaging application programs, social networking application programs, financial management application programs, shopping application programs, etc., are not limited in this embodiment of the present application.

可选地,目标应用程序提供有控件显示功能,示意性的,当用户在目标应用程序中打开目标页面时,终端110需要对目标页面进行初始化操作,如图1所示,终端110发送页面初始化请求至服务器120,服务器120接收到该请求后,会将目标页面对应的控件数据集反馈至终端110;目标页面中包含有顺序排列的多个控件,终端110接收到控件数据集后,会将该控件数据集中排列在前面的数据首先加载并显示在多个控件中;当终端110接收到用户在目标页面上的滑动操作时,控件数据集中的数据将沿着滑动方向在多个控件中移动,从而多个控件中显示的内容将会根据数据的移动而更新。Optionally, the target application program provides a control display function. Schematically, when the user opens the target page in the target application program, the terminal 110 needs to initialize the target page. As shown in FIG. 1, the terminal 110 sends the page initialization The request is sent to the server 120. After receiving the request, the server 120 will feed back the control data set corresponding to the target page to the terminal 110; the target page contains a plurality of controls arranged in sequence. After receiving the control data set, the terminal 110 will The data arranged in front of the control data set is first loaded and displayed in multiple controls; when the terminal 110 receives the user's sliding operation on the target page, the data in the control data set will move among the multiple controls along the sliding direction, Thus, the content displayed in multiple controls will be updated according to the movement of data.

在一些可选的实施例中,服务器120为终端110中安装的目标应用程序提供后台服务。值得注意的是,服务器120能够是独立的物理服务器,也能够是多个物理服务器构成的服务器集群或者分布式系统,还能够是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)以及大数据和人工智能平台等基础云计算服务的云服务器。In some optional embodiments, the server 120 provides background services for the target application programs installed in the terminal 110 . It is worth noting that the server 120 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, and can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network Cloud servers for basic cloud computing services such as services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network) and big data and artificial intelligence platforms.

其中,云技术(Cloud Technology)是指在广域网或局域网内将硬件、软件、网络等系列资源统一起来,实现数据的计算、储存、处理和共享的一种托管技术。云技术基于云计算商业模式应用的网络技术、信息技术、整合技术、管理平台技术、应用技术等的总称,可以组成资源池,按需所用,灵活便利。云计算技术将变成重要支撑。技术网络系统的后台服务需要大量的计算、存储资源,如视频网站、图片类网站和更多的门户网站。伴随着互联网行业的高度发展和应用,将来每个物品都有可能存在自己的识别标志,都需要传输到后台系统进行逻辑处理,不同程度级别的数据将会分开处理,各类行业数据皆需要强大的系统后盾支撑,只能通过云计算来实现。可选地,服务器120还可以实现为区块链系统中的节点。Among them, cloud technology (Cloud Technology) refers to a hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize data calculation, storage, processing, and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on cloud computing business model applications. It can form a resource pool and be used on demand, which is flexible and convenient. Cloud computing technology will become an important support. The background services of technical network systems require a lot of computing and storage resources, such as video websites, picture websites and more portal websites. With the rapid development and application of the Internet industry, each item may have its own identification mark in the future, which needs to be transmitted to the background system for logical processing. Data of different levels will be processed separately, and all kinds of industry data need to be powerful. The system backing support can only be realized through cloud computing. Optionally, the server 120 can also be implemented as a node in the blockchain system.

需要说明的是,本申请所涉及的信息(包括但不限于用户设备信息、用户个人信息等)、数据(包括但不限于用于分析的数据、存储的数据、展示的数据等)以及信号,均为经用户授权或者经过各方充分授权的,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。例如,本申请中涉及到的控件数据集都是在充分授权的情况下获取的。It should be noted that the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application, All are authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the control data sets involved in this application are all obtained under full authorization.

结合上述介绍以及实施环境,对本申请实施例中提供的控件显示方法进行说明,请参考图2,其示出了本申请一个示例性实施例提供的控件显示方法的流程图,以该方法应用于如图1所示的终端中为例进行说明,如图2所示,该方法包括:Combining the above introduction and implementation environment, the control display method provided in the embodiment of the present application will be described. Please refer to FIG. 2 , which shows the flow chart of the control display method provided in an exemplary embodiment of the present application. The terminal shown in Figure 1 is taken as an example for illustration, as shown in Figure 2, the method includes:

步骤201,获取目标页面对应的控件数据。Step 201, acquiring control data corresponding to the target page.

其中,控件数据用于加载在目标页面的控件中进行显示,目标页面包括顺序排列的多个页面控件,多个页面控件中包括处于目标页面内和处于目标页面外的控件。Wherein, the control data is used to be loaded into the control of the target page for display, and the target page includes multiple page controls arranged in sequence, and the multiple page controls include controls inside and outside the target page.

目标页面是指在终端显示屏幕中显示的页面,示意性的,终端屏幕中显示有购买虚拟道具的页面,则目标页面为购买虚拟道具的页面。The target page refers to the page displayed on the display screen of the terminal. Schematically, a page for purchasing virtual items is displayed on the terminal screen, and the target page is a page for purchasing virtual items.

页面控件是指在目标页面中显示的可重复使用的软件组件。其中,处于目标页面内的控件是指目标页面中显示的用户可视范围内的控件,处于目标页面外的控件是指目标页面外显示的不在用户可视范围内的控件。Page Controls are reusable software components displayed in a Target Page. Wherein, the controls inside the target page refer to the controls displayed on the target page within the user's viewable range, and the controls outside the target page refer to the controls displayed outside the target page and not within the user's viewable range.

可选地,当用户进入目标页面时,目标页面将会进行初始化操作,终端会根据目标页面的大小在目标页面内和目标页面外创建一定数量的空白的页面控件。可选地,在目标页面中创建的页面控件之间尺寸是相同的;或者,在目标页面创建的页面控件中,处于同一滑动方向的页面控件尺寸是相同的,例如:当目标页面接收到向上滑动的操作时,控件数据从页面控件1中清除,并加载至页面控件2中,则页面控件1和页面控件2的控件尺寸是相同的。Optionally, when the user enters the target page, the target page will perform an initialization operation, and the terminal will create a certain number of blank page controls inside and outside the target page according to the size of the target page. Optionally, the sizes of the page controls created on the target page are the same; or, among the page controls created on the target page, the sizes of the page controls in the same sliding direction are the same, for example: when the target page receives an upward During the sliding operation, the control data is cleared from page control 1 and loaded into page control 2, then the control sizes of page control 1 and page control 2 are the same.

示意性的,请参考图3,终端根据目标页面的分辨率大小,在目标页面中创建了控件301至控件307,其中控件302至控件306为处于目标页面内的控件;控件301和控件307为处于目标页面外的控件,可选地,控件301至控件307尺寸相同。Schematically, please refer to FIG. 3 , the terminal creates controls 301 to 307 in the target page according to the resolution of the target page, wherein controls 302 to 306 are controls in the target page; controls 301 and 307 are For the controls outside the target page, optionally, the controls 301 to 307 have the same size.

在一些实施例中,当目标页面被加载时,终端从服务器获取该目标页面需要加载的控件数据集,控件数据集中包括当前已更新且待加载显示的控件数据;或者,当目标页面被加载时,终端从服务器依次获取控件数据,控件数据的获取顺序与控件数据在服务器中的存储顺序对应。In some embodiments, when the target page is loaded, the terminal obtains from the server the control data set that the target page needs to load, and the control data set includes control data that has been updated and is to be loaded and displayed; or, when the target page is loaded , the terminal obtains the control data from the server sequentially, and the sequence of obtaining the control data corresponds to the storage sequence of the control data in the server.

1、终端从服务器获取该目标页面需要加载的控件数据集1. The terminal obtains the control data set that needs to be loaded on the target page from the server

示意性的,当用户点击进入目标页面后,终端将发送目标页面初始化请求至服务器,该目标页面初始化请求中包含目标页面的标识信息,服务器会根据该标识信息将目标页面对应的控件数据集发送到终端,其中,控件数据集中包含有待加载至目标页面的页面控件中的控件数据。Schematically, when the user clicks to enter the target page, the terminal will send a target page initialization request to the server. The target page initialization request includes the identification information of the target page, and the server will send the control data set corresponding to the target page according to the identification information. to the terminal, wherein the control data set contains the control data in the page control to be loaded into the target page.

终端在获取控件数据集后,对控件数据集进行存储,并根据目标页面的加载需求,从控件数据集中获取控件数据,并加载至页面控件中。在一些实施例中,根据目标页面的加载需求,终端会首先从控件数据集中获取部分待加载的控件数据,并存储至缓存区中,从而在需要加载时从缓存区中获取待加载的控件数据,并加载至页面控件中。After obtaining the control data set, the terminal stores the control data set, and according to the loading requirement of the target page, obtains the control data from the control data set, and loads it into the page control. In some embodiments, according to the loading requirements of the target page, the terminal will first obtain part of the control data to be loaded from the control data set, and store it in the cache area, so as to obtain the control data to be loaded from the cache area when loading is required , and loaded into the page control.

2、终端从服务器依次获取控件数据2. The terminal obtains control data from the server in sequence

可选地,服务器还可以根据终端在目标页面上接收到的操作,将控件数据集中的控件数据依次逐步发送到终端中,示意性的,当服务器接收到终端发送的初始化请求后,会将控件数据集中的部分控件数据发送到终端中,终端首先对接收到的控件数据进行缓存,从而在需要加载显示时,将控件数据按照顺序加载到多个页面控件中并显示在目标页面中;或者,将控件数据根据控件间的关联关系加载到多个页面控件中并显示在目标页面中,例如:控件1和控件2为存在关联关系的控件,当控件1中加载有数据A时,同时将数据B加载至控件2中进行显示。Optionally, the server can also send the control data in the control data set to the terminal step by step according to the operations received by the terminal on the target page. Schematically, when the server receives the initialization request sent by the terminal, it will Part of the control data in the data set is sent to the terminal, and the terminal first caches the received control data, so that when it needs to be loaded and displayed, the control data is loaded into multiple page controls in order and displayed on the target page; or, Load control data into multiple page controls according to the relationship between controls and display them on the target page. For example, control 1 and control 2 are controls with relationship. When data A is loaded in control 1, data B is loaded into Control 2 for display.

可选地,终端缓存的控件数据包括在多个页面控件中加载的控件数据以及至少一个将要加载到页面控件中的数据;若终端在目标页面上接收到向上滑动的操作时,服务器会将目标页面上滑方向对应的未发送控件数据发送到终端中进行缓存。Optionally, the control data cached by the terminal includes control data loaded in multiple page controls and at least one data to be loaded into the page control; if the terminal receives an upward sliding operation on the target page, the server will The unsent control data corresponding to the sliding direction of the page is sent to the terminal for caching.

可选地,当控件数据集中的控件数据加载到空白的页面控件中时,即,当空白的页面控件中填入控件数据后,该页面控件将根据填入的控件数据进行显示,示意性的,在游戏界面的页面控件中填入一张虚拟道具的图像数据,则页面控件上会显示该虚拟道具的图片内容;该页面控件还将根据填入的控件数据设置相应的功能,示意性的,若填入的控件数据仅为展示页面信息的控件,则页面控件将被设置为不可触发的控件,若填入的控件数据中包括设置控件的触发操作的数据,则页面控件将被设置为可触发的控件。Optionally, when the control data in the control data set is loaded into a blank page control, that is, when the blank page control is filled with control data, the page control will be displayed according to the filled control data, schematically , fill in the image data of a virtual item in the page control of the game interface, then the image content of the virtual item will be displayed on the page control; the page control will also set corresponding functions according to the filled control data, schematically , if the filled-in control data is only for displaying page information, the page control will be set as a non-triggerable control; if the filled-in control data includes the data for setting the trigger operation of the control, the page control will be set as Triggerable controls.

在一些可选的实施例中,若目标页面中的布局较为固定,例如:在游戏界面的虚拟道具的购买页面中,左边为展示虚拟道具的画面,右边为每个虚拟道具对应的“购买”按钮,则在页面控件初始化时,可对页面控件的部分功能进行设置,示意性的,设置页面左侧展示信息的控件为不可触发的控件,设置页面右侧需要承载用户相关触发操作的控件为可触发的控件。In some optional embodiments, if the layout of the target page is relatively fixed, for example: in the purchase page of virtual props in the game interface, the left side is the screen showing the virtual props, and the right side is the "purchase" corresponding to each virtual prop. button, when the page control is initialized, you can set some functions of the page control. Schematically, set the control that displays information on the left side of the page as a non-triggerable control, and set the control that needs to carry user-related trigger operations on the right side of the page as Triggerable controls.

步骤202,接收在目标页面上的控件滑动操作。Step 202, receiving a control sliding operation on the target page.

控件滑动操作用于沿滑动方向从目标页面内的第一控件中清除第一数据,并将第二数据加载至目标页面内。The control sliding operation is used to clear the first data from the first control in the target page along the sliding direction, and load the second data into the target page.

可选地,控件滑动操作对于第二数据的加载方式包括以下方法中的至少一种:Optionally, the method for loading the second data by the control sliding operation includes at least one of the following methods:

1、控件滑动操作用于将已缓存的第二数据直接加载至目标页面内的页面控件中。1. The control sliding operation is used to directly load the cached second data into the page control in the target page.

示意性的,目标页面的页面下方边缘处的页面控件1中加载有数据i,当将页面向上滑动时,将数据i从页面控件1中清除,并在页面控件1中加载数据i+1,i为正整数。Schematically, the page control 1 at the lower edge of the target page is loaded with data i, when the page is slid up, the data i is cleared from the page control 1, and data i+1 is loaded in the page control 1, i is a positive integer.

2、目标页面外存在有第二控件,第二控件中加载有第二数据,控件滑动操作用于将第二数据从第二控件中清除,并加载至目标页面内的页面控件中。2. There is a second control outside the target page, and the second control is loaded with second data. The sliding operation of the control is used to clear the second data from the second control and load it into the page control in the target page.

可选地,接收在目标页面上的控件滑动操作之前,在目标页面的初始化加载阶段,终端需要将控件数据集中排列在前面的控件数据加载至多个页面控件中。示意性的,当终端接收到打开目标页面的操作时,会首先在目标页面内和目标页面外创建多个页面控件;对于处于目标页面外的页面控件,在终端获取得到控件数据集中的控件数据后,会按照控件数据集中的控件顺序首先将排列在前面的控件数据加载至处于目标页面内的页面控件中,请参考图3,1)中,在控件数据集中的控件数据a至e将依次被加载至控件302至306中;对于处于目标页面外的页面控件,可选地,终端将根据用户的滑动方向对其进行控件数据的填充,如图3所示,目标页面的滑动方向为上滑,则在控件数据集中的控件数据f被加载至控件307中,此时,控件301中未加载任一控件数据;或者控件301中加载有控件数据集中的排列在最后的控件数据。Optionally, before receiving the control sliding operation on the target page, in the initial loading stage of the target page, the terminal needs to load the control data arranged in front of the control data into multiple page controls. Schematically, when the terminal receives the operation to open the target page, it will first create multiple page controls inside and outside the target page; for the page controls outside the target page, the terminal obtains the control data in the control data set Finally, the control data arranged in front will be loaded to the page controls in the target page according to the order of the controls in the control data set. Please refer to Figure 3. In 1), the control data a to e in the control data set will be sequentially Loaded into controls 302 to 306; for page controls outside the target page, optionally, the terminal will fill it with control data according to the user's sliding direction, as shown in Figure 3, the sliding direction of the target page is up Then, the control data f in the control data set is loaded into the control 307. At this time, no control data is loaded in the control 301; or the control 301 is loaded with the last control data in the control data set.

可选地,若目标页面被打开时,显示的是控件数据集中位于中间部分的控件数据,则在图3中的控件302至控件306中加载的是位于控件数据集中排列在中间的部分控件数据,例如:控件302至控件306中加载有数据d至h,则控件301中加载有数据c,控件307中加载有数据i。Optionally, if the target page is opened, the control data located in the middle part of the control data set is displayed, then the controls 302 to 306 in FIG. 3 are loaded with part of the control data arranged in the middle of the control data set , for example: data d to h are loaded in controls 302 to 306, data c is loaded in control 301, and data i is loaded in control 307.

可选地,上述控件滑动操作可实现在目标页面上的鼠标的滚动操作,也可以实现为在目标页面上的对滑动条的拖动操作、还可以实现为对目标页面中的翻页控件的点击操作等,本申请实施例对此不加以限定。Optionally, the above control sliding operation can be implemented as a mouse scrolling operation on the target page, can also be implemented as a drag operation on the slide bar on the target page, and can also be implemented as a page turning control on the target page The click operation and the like are not limited in this embodiment of the present application.

步骤203,响应于滑动操作的滑动方向指示,按控件数据的显示顺序正序进行数据更新,将第i+k个页面控件内加载的控件数据更新加载至第i个页面控件中,显示处于目标页面内的第二数据。Step 203, in response to the sliding direction indication of the sliding operation, perform data update according to the display sequence of the control data, and update and load the control data loaded in the i+kth page control to the i-th page control, and the display is in the target Secondary data within the page.

其中,i为正整数,k为预设的正整数。Wherein, i is a positive integer, and k is a preset positive integer.

可选地,上述控件数据的加载情况包括以下情况中的至少一种:Optionally, the loading of the above control data includes at least one of the following situations:

(1)当k等于1,即响应于滑动操作的滑动方向指示按控件数据的显示顺序正序进行数据更新,将第i+1个页面控件内加载的控件数据更新加载至第i个页面控件中。(1) When k is equal to 1, that is, in response to the sliding direction indication of the sliding operation, the data is updated according to the display order of the control data, and the control data loaded in the i+1th page control is updated and loaded to the ith page control middle.

示意性的,当用户在目标页面上触发控件滑动操作时,多个页面控件中加载的控件数据将沿着滑动方向移动,当控件数据在移动时,会依次加载至每一个页面控件中,如图3所示,2)中,当目标页面向上滑动一个控件的距离时,控件数据a至e被移动到控件301至305中,控件306中加载控件数据f,控件307中加载控件数据集中的控件数据g;3)中,当目标页面继续向上滑动一个控件的距离时,控件301中的控件数据a被清空,控件数据b至f被移动到控件301至305中,控件306中加载控件数据g,控件307中加载控件数据集中的控件数据h。Schematically, when the user triggers the control sliding operation on the target page, the control data loaded in multiple page controls will move along the sliding direction, and when the control data is moving, it will be loaded into each page control in turn, as shown in As shown in Fig. 3, in 2), when the target page slides up the distance of one control, the control data a to e are moved to the controls 301 to 305, the control data f is loaded in the control 306, and the data in the control data set is loaded in the control 307 Control data g; 3), when the target page continues to slide up a control distance, the control data a in the control 301 is cleared, the control data b to f are moved to the controls 301 to 305, and the control data is loaded in the control 306 g, the control data h in the control data set is loaded in the control 307 .

在一些可选的实施例中,沿着目标页面的滑动方向控件数据从处于目标页面内的页面控件中被清除,将该被清除的控件数据存储至缓存区中,若目标页面开始反方向滑动,该控件数据将从缓存区中被读取并沿着反方向再次加载至目标页面内的控件中。In some optional embodiments, the control data along the sliding direction of the target page is cleared from the page controls in the target page, and the cleared control data is stored in the cache area. If the target page starts to slide in the opposite direction , the data of the control will be read from the buffer and reloaded into the control in the target page along the reverse direction.

(2)当k大于1,则控件数据的加载情况包括以下情况中的至少一种:(2) When k is greater than 1, the loading of control data includes at least one of the following situations:

情况一:若在目标页面中一行或者一列的页面控件数量为j个,j为正整数,当k小于j时,控件数据在单行/列中整体进行移动。也就是说,当控件数据在加载时,单个控件数据不会加载至每一个页面控件。Case 1: If the number of page controls in a row or a column in the target page is j, and j is a positive integer, when k is less than j, the control data is moved in a single row/column as a whole. That is, individual control data is not loaded into every page control when control data is loading.

例如:目标页面中一列的页面控件的数量为7个,当k等于3时,即响应于滑动操作的滑动方向指示按控件数据的显示顺序正序进行数据更新,将第i+3个页面控件内加载的控件数据更新加载至第i个页面控件中。For example: the number of page controls in a column of the target page is 7, when k is equal to 3, that is, in response to the sliding direction indication of the sliding operation, the data is updated according to the display order of the control data, and the i+3th page control The control data loaded inside is updated and loaded into the i-th page control.

示意性的,请参考图4,1)中,控件数据a至f加载在控件402至407中;2)中,当控件404中的控件数据c移动时,会直接移动到控件401中。Schematically, please refer to FIG. 4 , in 1), the control data a to f are loaded in the controls 402 to 407; in 2), when the control data c in the control 404 is moved, it will be directly moved to the control 401.

情况二:若在目标页面中一行或者一列的页面控件数量为j个,当k等于j时,可实现控件数据在目标页面中的逐行/列的移动过程。Case 2: If the number of page controls in one row or one column in the target page is j, when k is equal to j, the process of moving control data row by row/column in the target page can be realized.

例如:目标页面中一行的页面控件的数量为3个,当k等于3时,即响应于滑动操作的滑动方向指示按控件数据的显示顺序正序进行数据更新,将第i+3个页面控件内加载的控件数据更新加载至第i个页面控件中。For example: the number of page controls in one line of the target page is 3, when k is equal to 3, that is, in response to the sliding direction indication of the sliding operation, the data is updated in the order of the display order of the control data, and the i+3th page control The control data loaded inside is updated and loaded into the i-th page control.

也就是说,当目标页面接收到向上滑动的操作时,目标页面的第2行的第1个页面控件中的控件数据会加载至第1行的第1个页面控件中,第2行的第2个页面控件中的控件数据会加载至第1行的第2个页面控件中,第2行的第3个页面控件中的控件数据会加载至第1行的第3个页面控件中,从而实现了控件数据在目标页面中的逐行移动过程。That is to say, when the target page receives the operation of sliding up, the control data in the first page control in the second row of the target page will be loaded into the first page control in the first row, and the control data in the first page control in the second row will be loaded. The control data in the 2 page controls will be loaded into the 2nd page control in the first row, and the control data in the 3rd page control in the 2nd row will be loaded into the 3rd page control in the 1st row, thus The row-by-row movement process of the control data in the target page is realized.

情况三:若在目标页面中一行或者一列的页面控件数量为j个,当k等于n×j时,n为正整数,可实现控件数据在目标页面中的多行/列的移动过程。Case 3: If the number of page controls in one row or column in the target page is j, when k is equal to n×j, n is a positive integer, and the process of moving control data in multiple rows/columns in the target page can be realized.

例如:目标页面中一行的页面控件的数量为3个,当k等于6时,即响应于滑动操作的滑动方向指示按控件数据的显示顺序正序进行数据更新,将第i+6个页面控件内加载的控件数据更新加载至第i个页面控件中。For example: the number of page controls in one row of the target page is 3, when k is equal to 6, that is, in response to the sliding direction indication of the sliding operation, the data is updated according to the display order of the control data, and the i+6th page control The control data loaded inside is updated and loaded into the i-th page control.

也就是说,当目标页面接收到向上滑动的操作时,目标页面的第3行的第1个页面控件中的控件数据会加载至第1行的第1个页面控件中,第3行的第2个页面控件中的控件数据会加载至第1行的第2个页面控件中,第3行的第3个页面控件中的控件数据会加载至第1行的第3个页面控件中,从而实现了控件数据在目标页面中的多行移动过程。That is to say, when the target page receives the operation of sliding up, the control data in the first page control in the third row of the target page will be loaded into the first page control in the first row, and the control data in the first page control in the third row The control data in the 2 page controls will be loaded into the 2nd page control in the first row, and the control data in the 3rd page control in the 3rd row will be loaded into the 3rd page control in the 1st row, thus Realized the multi-line moving process of the control data in the target page.

步骤204,响应于滑动操作的滑动方向指示,按控件数据的显示顺序反序进行数据更新,将第i个页面控件对应的控件数据之前的第k个控件数据更新加载至第i个页面控件中,显示处于目标页面内的第二数据。Step 204, in response to the sliding direction indication of the sliding operation, perform data update in reverse order of the display order of the control data, and update and load the k-th control data before the control data corresponding to the i-th page control to the i-th page control , to display the second data in the target page.

示意性的,以k等于2为例进行说明,请参考图5,1)中,控件数据c加载在控件501中;2)中,当目标页面向上滑动时,控件数据c之前的第2个控件数据a将会加载至控件501中。Schematically, take k equal to 2 as an example for illustration, please refer to Figure 5, in 1), the control data c is loaded in the control 501; in 2), when the target page slides up, the second The control data a will be loaded into the control 501 .

综上所述,本申请实施例提供的控件显示方法通过接收在目标页面上的控件滑动操作,将获取得到目标页面对应的控件数据沿着滑动操作的滑动方向依次加载并显示在目标页面中的页面控件中,由于在将控件数据渲染显示在目标页面的过程中,不需要为每一条控件数据都创建一个页面控件,而是在页面上创建一定数量的页面控件,将控件数据依次加载至页面控件中进行显示,减少了在目标页面中需要创建的控件的数量,从而减少了对于计算机性能的损耗,解决了目标页面在显示大数量级的控件时的页面卡顿问题。To sum up, the control display method provided by the embodiment of the present application receives the control sliding operation on the target page, loads the obtained control data corresponding to the target page sequentially along the sliding direction of the sliding operation, and displays them on the target page. In the page control, because in the process of rendering and displaying the control data on the target page, it is not necessary to create a page control for each piece of control data, but to create a certain number of page controls on the page, and load the control data to the page in sequence The display in the control reduces the number of controls that need to be created in the target page, thereby reducing the loss of computer performance and solving the page jam problem when the target page displays a large number of controls.

本申请实施例提供的控件显示方法,可以按控件数据集中控件数据的显示顺序,沿滑动操作的滑动方向顺序更新或者反序更新控件中加载的控件数据,增加了控件数据在更新方式上的多样性。The control display method provided by the embodiment of the present application can update the control data loaded in the control sequentially or in reverse order along the sliding direction of the sliding operation according to the display order of the control data in the control data set, increasing the variety of control data update methods sex.

在一些可选的实施例中,控件数据集中的控件数据可以整行或者整列加载至页面控件中,请参考图6,其示出了本申请一个示例性实施例提供的控件显示方法的流程图,以该方法应用于如图1所示的终端中为例进行说明,如图6所示,该方法包括:In some optional embodiments, the control data in the control data set can be loaded into the page control in an entire row or column. Please refer to FIG. 6 , which shows a flow chart of a control display method provided by an exemplary embodiment of the present application. , taking the method applied to the terminal shown in Figure 1 as an example for illustration, as shown in Figure 6, the method includes:

步骤601,获取目标页面对应的控件数据。Step 601, acquiring control data corresponding to the target page.

其中,控件数据用于加载在目标页面的控件中进行显示,目标页面包括顺序排列的多个页面控件,多个页面控件中包括处于目标页面内和处于目标页面外的控件。Wherein, the control data is used to be loaded into the control of the target page for display, and the target page includes multiple page controls arranged in sequence, and the multiple page controls include controls inside and outside the target page.

在一些可选的实施例中,多个页面控件中包括主加载控件和辅加载控件,其中,主加载控件为正常显示在目标页面中的控件,辅加载控件为叠加在主加载控件上的控件;可选地,控件数据集中包括第一控件数据和第二控件数据,其中,第一控件数据用于加载在目标页面的主加载控件中进行显示,第二控件数据用于加载在目标页面的辅加载控件中进行显示。In some optional embodiments, the multiple page controls include a main loading control and an auxiliary loading control, wherein the main loading control is a control normally displayed on the target page, and the auxiliary loading control is a control superimposed on the main loading control ; Optionally, the control data set includes first control data and second control data, wherein the first control data is used to load and display in the main loading control of the target page, and the second control data is used to load in the target page Displayed in the auxiliary loading control.

示意性的,在浏览器界面中,当用户搜索某个关键词后,终端会开始加载该关键词的搜索结果页面,那么该关键词的搜索结果页面对应的控件数据即为第一控件数据,将会加载在主加载控件中进行显示;在该搜索结果页面中会产生一些推荐内容,则这些推荐内容对应的控件数据即为第二控件数据,将会加载在辅加载控件中进行显示。Schematically, in the browser interface, when the user searches for a certain keyword, the terminal will start to load the search result page of the keyword, then the control data corresponding to the search result page of the keyword is the first control data, It will be loaded and displayed in the main loading control; some recommended content will be generated on the search result page, and the control data corresponding to these recommended content is the second control data, which will be loaded in the auxiliary loading control for display.

步骤602,接收在目标页面上的控件滑动操作。Step 602, receiving a control sliding operation on the target page.

控件滑动操作用于沿滑动方向从目标页面内的第一控件中清除第一数据,并将第二数据加载至目标页面内的控件中。The control sliding operation is used to clear the first data from the first control in the target page along the sliding direction, and load the second data into the control in the target page.

可选地,上述控件滑动操作可以是通过终端的触控屏、鼠标、键盘或其它外接设备触发的操作;还可以是直接在终端的屏幕上触发的操作。该控件滑动操作可实现为上滑操作、下滑操作、左滑操作、右滑操作等中的至少一种,本申请实施例对此不加以限定。Optionally, the control sliding operation mentioned above may be an operation triggered by a touch screen, mouse, keyboard or other external devices of the terminal; it may also be an operation triggered directly on the screen of the terminal. The control sliding operation may be implemented as at least one of an upward sliding operation, a downward sliding operation, a left sliding operation, a right sliding operation, etc., which is not limited in this embodiment of the present application.

在一些可选的实施例中,目标页面中包括m行n列页面控件,m和n为正整数。In some optional embodiments, the target page includes m rows and n columns of page controls, where m and n are positive integers.

步骤603,响应于滑动操作的滑动方向沿行所在的第一方向,按控件数据的显示顺序,将第n’+1列中页面控件加载的数据更新至第n’列页面控件中。Step 603, in response to the sliding direction of the sliding operation along the first direction where the row is located, update the data loaded by the page control in column n'+1 to the page control in column n' according to the display order of the control data.

示意性的,请参考图7,目标页面中显示有2行3列页面控件,第2行控件中加载有控件数据d至f,当目标页面接收到向上滑动的操作时,控件数据d至f将更新至第一行控件中,控件数据g至i将更新至第2行控件中。Schematically, please refer to Figure 7. There are 2 rows and 3 columns of page controls displayed on the target page, and control data d to f are loaded in the second row of controls. When the target page receives an upward sliding operation, the control data d to f It will be updated to the first row of controls, and the control data g to i will be updated to the second row of controls.

步骤604,响应于滑动操作的滑动方向沿列所在的第二方向,按控件数据的显示顺序,将第m’+1行中页面控件加载的数据更新至第m’行页面控件中。Step 604, in response to the sliding direction of the sliding operation along the second direction where the column is located, update the data loaded by the page control in row m'+1 to the page control in row m' according to the display order of the control data.

示意性的,请参考图7,目标页面中显示有2行3列页面控件,第2列控件中加载有数据b和数据e,当目标页面接收到向左滑动的操作时,数据b和数据e将更新至第1列控件中,数据c和数据f将更新至第2列控件中,第3列控件中将加载数据j和数据k。Schematically, please refer to Figure 7. There are 2 rows and 3 columns of page controls displayed on the target page, and data b and data e are loaded in the second column control. When the target page receives the operation of sliding to the left, data b and data e will be updated in the first column control, data c and data f will be updated in the second column control, and data j and data k will be loaded in the third column control.

在一些可选的实施例中,在目标页面中指定行或者指定列的页面控件为锁定状态,也即,该行(或者列)的页面控件中的控件数据无法移动,其他行(或者列)的页面控件中的控件数据也无法移动至该行(或者列)中。示意性的,当目标页面接收到滑动操作时,第i行(或者第j列)的控件数据会加载至第i+2行(或者第j+2列)的页面控件,其中,第i+1(或者第j+1列)的页面控件中加载的控件数据被锁定,不会进行移动。例如:在包含有4行5列目标控件的目标页面中,第3行为锁定行,则当目标页面接收到向上的滑动操作时,第4行目标控件中的控件数据将会直接加载至第2行中进行显示,第3行中的显示的数据不改变。In some optional embodiments, the page control of the specified row or specified column in the target page is locked, that is, the control data in the page control of the row (or column) cannot be moved, and other rows (or columns) The control data in the page control cannot be moved to the row (or column). Schematically, when the target page receives a sliding operation, the control data in row i (or column j) will be loaded to the page control in row i+2 (or column j+2), where i+ 1 (or column j+1) the control data loaded in the page control is locked and will not be moved. For example: on a target page with 4 rows and 5 columns of target controls, the third row is the locked row, when the target page receives an upward sliding operation, the control data in the fourth row of the target control will be directly loaded to the second The display is performed in the row, and the displayed data in the third row does not change.

在一些可选的实施例中,可以对目标页面中包括m行n列页面控件中的目标行或者目标列的页面控件中的数据进行移动。也就是说,在目标页面中,不进行整行或者整列的控件数据移动,可以只针对其中的某一行或者某一列的数据进行移动。In some optional embodiments, the data in the target page control including the target row or target column in the m-rows and n-columns page control on the target page may be moved. That is to say, in the target page, instead of moving the control data of the entire row or column, the data of a certain row or column may be moved only.

综上所述,本申请实施例提供的控件显示方法通过接收在目标页面上的控件滑动操作,将获取得到目标页面对应的控件数据沿着滑动操作的滑动方向依次加载并显示在目标页面中的页面控件中,由于在将控件数据渲染显示在目标页面的过程中,不需要为每一条控件数据都创建一个页面控件,而是在页面上创建一定数量的页面控件,将控件数据依次加载至页面控件中进行显示,减少了在目标页面中需要创建的控件的数量,从而减少了对于计算机性能的损耗,解决了目标页面在显示大数量级的控件时的页面卡顿问题。To sum up, the control display method provided by the embodiment of the present application receives the control sliding operation on the target page, loads the obtained control data corresponding to the target page sequentially along the sliding direction of the sliding operation, and displays them on the target page. In the page control, because in the process of rendering and displaying the control data on the target page, it is not necessary to create a page control for each piece of control data, but to create a certain number of page controls on the page, and load the control data to the page in sequence The display in the control reduces the number of controls that need to be created in the target page, thereby reducing the loss of computer performance and solving the page jam problem when the target page displays a large number of controls.

本申请实施例提供的方法,控件在显示过程中,控件数据可以整行或者整列进行移动,从而控件数据可以整行或者整列加载至页面控件中进行显示,提高了页面在加载控件时的加载效率。In the method provided by the embodiment of the present application, during the display process of the control, the control data can be moved by the whole row or the whole column, so that the control data can be loaded into the page control by the whole row or the whole column for display, which improves the loading efficiency of the page when loading the control .

在一些可选的实施例中,控件数据在加载至页面控件中的过程中,页面控件会显示相应的动画特效。请参考图8,其示出了本申请一个示例性实施例提供的控件显示方法的流程图,以该方法应用于如图1所示的终端中为例进行说明,如图8所示,该方法包括:In some optional embodiments, when the control data is loaded into the page control, the page control will display corresponding animation special effects. Please refer to FIG. 8, which shows a flow chart of a control display method provided by an exemplary embodiment of the present application. The method is applied to the terminal shown in FIG. 1 as an example for illustration. As shown in FIG. 8, the Methods include:

步骤801,获取目标页面对应的控件数据。Step 801, acquire control data corresponding to the target page.

其中,控件数据用于加载在目标页面的控件中进行显示,目标页面包括顺序排列的多个页面控件,多个页面控件中包括处于目标页面内和处于目标页面外的控件。Wherein, the control data is used to be loaded into the control of the target page for display, and the target page includes multiple page controls arranged in sequence, and the multiple page controls include controls inside and outside the target page.

步骤802,接收在目标页面上的控件滑动操作。Step 802, receiving a control sliding operation on the target page.

控件滑动操作用于沿滑动方向从目标页面内的第一控件中清除第一数据,并将第二数据加载至目标页面内。The control sliding operation is used to clear the first data from the first control in the target page along the sliding direction, and load the second data into the target page.

步骤803,响应于控件滑动操作,按控件数据的显示顺序,沿滑动操作的滑动方向更新多个页面控件中的控件数据,显示处于目标页面内的第二数据,并显示多个页面控件在控件数据更新过程中的动画效果。Step 803, in response to the control sliding operation, according to the display order of the control data, update the control data in the multiple page controls along the sliding direction of the sliding operation, display the second data in the target page, and display the multiple page controls in the control Animation effect during data update.

在一些可选的实施例中,多个页面控件在控件数据更新过程中显示的动画效果包括以下情况中的至少一种:In some optional embodiments, the animation effect displayed by the multiple page controls during the control data update process includes at least one of the following situations:

情况一、响应于控件滑动操作,显示多个页面控件在目标页面中的平铺渲染动画,平铺渲染动画用于表示多个页面控件之间的逐步加载过程。Situation 1: In response to a control sliding operation, a tiled rendering animation of multiple page controls in the target page is displayed, and the tiled rendering animation is used to represent a gradual loading process between multiple page controls.

也就是说,在控件数据加载到多个页面控件中进行渲染显示时,如果一个页面中包括14个页面控件,不是一次性渲染14个页面控件从而进行显示,而是会分批次对页面控件进行渲染,从而形式平铺渲染动画,例如:页面控件自上而下慢慢显示的过程。That is to say, when the control data is loaded into multiple page controls for rendering and display, if a page includes 14 page controls, instead of rendering 14 page controls at one time for display, the page controls will be batched. Perform rendering to form a tiled rendering animation, for example: the process of page controls being displayed slowly from top to bottom.

可选地,其中,平铺渲染动画包括:从上往下展开的平铺动画、从下往上展开的平铺动画、从左往右展开的平铺动画、从右往左展开的平铺动画、围绕某一中心进行转动的平铺动画等,本申请实施例对此不加以限定。Optionally, the tile rendering animation includes: a tile animation unfolding from top to bottom, a tile animation unfolding from bottom to top, a tile animation unfolding from left to right, and a tile animation unfolding from right to left Animation, tiled animation rotating around a certain center, etc., are not limited in this embodiment of the present application.

示意性的,以平铺渲染动画实现为绕某一中心点进行转动的平铺动画为例进行说明,如图9所示,目标页面900中围绕着中心点A存在有控件901至905,其中加载有数据a至e,当目标页面900接收到逆时针的滑动操作时,则数据a将从目标页面900中被清除,数据b至e将依次加载至控件901至904中,控件905中加载有新的数据f。Schematically, it is illustrated by taking the tile animation implemented as a tile animation rotating around a certain central point as an example. As shown in FIG. 9, there are controls 901 to 905 around the central point A in the target page 900, where Loaded with data a to e, when the target page 900 receives a counterclockwise sliding operation, the data a will be cleared from the target page 900, data b to e will be sequentially loaded into the controls 901 to 904, and the control 905 will load There is new data f.

可选地,按照预设渲染频率,在指定帧数间隔内对多个页面控件中的j个页面控件进行渲染显示,生成并显示平铺渲染动画,j为正整数。Optionally, j page controls among the plurality of page controls are rendered and displayed within a specified frame interval according to a preset rendering frequency, and a tiled rendering animation is generated and displayed, where j is a positive integer.

示意性的,若多个页面控件的行数为3,列数为2,则预设渲染频率可以设置为每3帧渲染2个页面控件,则在3帧间隔内,可渲染一行页面控件,可选地,页面控件在渲染时的动画效果为从上往下展开的平铺动画。Schematically, if the number of rows of multiple page controls is 3 and the number of columns is 2, the preset rendering frequency can be set to render 2 page controls every 3 frames, then within 3 frame intervals, a row of page controls can be rendered, Optionally, the animation effect of the page control when rendering is a tiling animation unfolding from top to bottom.

情况二、响应于控件滑动操作,显示多个页面控件从基准位置沿滑动方向滚动的模拟滑动动画,多个页面控件在模拟滑动动画播放完毕时,恢复显示至基准位置。Case 2: In response to the control sliding operation, a simulated sliding animation of multiple page controls scrolling from the reference position along the sliding direction is displayed, and the multiple page controls return to the reference position when the simulated sliding animation is played.

可选地,其中基准位置可以是在初始化目标页面时创建多个页面控件时,多个控件各自显示的位置。Optionally, the reference position may be the respective display positions of multiple controls when multiple page controls are created when the target page is initialized.

在一些可选的实施例中,上述模拟滑动动画的实现方式还包括以下步骤:In some optional embodiments, the implementation of the above-mentioned simulated sliding animation also includes the following steps:

1、显示多个页面控件沿滑动方向滑动预设距离后,恢复至基准位置显示的动画。1. After displaying multiple page controls sliding a preset distance along the sliding direction, the animation will return to the reference position.

示意性的,请参考图10,在目标页面1000中,设定页面控件1002、页面控件1003、页面控件1004所在位置为其基准位置,其显示区域为屏幕显示空间1005。当目标页面1000接收到向左移动的操作时,页面控件1002中的控件数据b向页面控件1001设置,页面控件1003中的控件数据c向页面控件1002设置,页面控件1004中的控件数据d向页面控件1003设置,在控件数据移动的过程中,页面控件1002至页面控件1004也整体移动了一小段距离,如图10所示,页面控件1002从A点移动到B点;在页面控件1002移动到B点且控件数据c加载完成后,页面控件1002恢复A点位置。Schematically, please refer to FIG. 10 , in the target page 1000 , the positions of the page control 1002 , the page control 1003 , and the page control 1004 are set as their reference positions, and their display area is the screen display space 1005 . When the target page 1000 receives the operation of moving to the left, the control data b in the page control 1002 is set to the page control 1001, the control data c in the page control 1003 is set to the page control 1002, and the control data d in the page control 1004 is set to Page control 1003 is set. During the movement of control data, page control 1002 to page control 1004 also move a short distance as a whole. As shown in Figure 10, page control 1002 moves from point A to point B; when page control 1002 moves After arriving at point B and the loading of the control data c is completed, the page control 1002 restores to the position of point A.

2、显示多个页面控件沿滑动方向从第一界面边缘滑出目标页面,并从第二界面边缘滑入目标页面的动画,其中,第一界面边缘和第二界面边缘相对。2. An animation showing multiple page controls sliding out of the target page from the edge of the first interface along the sliding direction, and sliding into the target page from the edge of the second interface, wherein the edge of the first interface is opposite to the edge of the second interface.

示意性在,当目标页面1010接收到继续向左移动的操作时,页面控件1001中的控件数据b将从屏幕显示空间1005的边缘1滑出目标页面1010,页面控件1006中的控件数据f将从屏幕显示空间1005的边缘2滑入目标界面1010内,在移动的过程中,控件1001移动到边缘1左侧,控件1006移动到边缘2右侧。Schematically, when the target page 1010 receives the operation of continuing to move to the left, the control data b in the page control 1001 will slide out of the target page 1010 from the edge 1 of the screen display space 1005, and the control data f in the page control 1006 will Slide from the edge 2 of the screen display space 1005 into the target interface 1010 , during the movement, the control 1001 moves to the left side of the edge 1 , and the control 1006 moves to the right side of the edge 2 .

情况三、响应于控件滑动操作,显示多个页面控件在目标页面中的翻页动画效果,翻页动画效果用于表示多个页面控件的整体加载过程。Situation 3: In response to the sliding operation of the control, the page turning animation effect of the multiple page controls on the target page is displayed, and the page turning animation effect is used to represent the overall loading process of the multiple page controls.

示意性的,若控件滑动操作实现为点击操作,每点击一次目标页面中多个页面控件中的数据全部都需要更新,则当接收到点击操作之后,终端可以将需要在页面中渲染的控件数据整体渲染结束之后再显示在目标页面中,从而形成翻页动画效果。Schematically, if the control sliding operation is implemented as a click operation, all the data in multiple page controls on the target page need to be updated each time the click operation is received, then after receiving the click operation, the terminal can display the control data that needs to be rendered on the page After the overall rendering is completed, it will be displayed on the target page, thereby forming a page-turning animation effect.

综上所述,本申请实施例提供的控件显示方法通过接收在目标页面上的控件滑动操作,将获取得到目标页面对应的控件数据沿着滑动操作的滑动方向依次加载并显示在目标页面中的页面控件中,由于在将控件数据渲染显示在目标页面的过程中,不需要为每一条控件数据都创建一个页面控件,而是在页面上创建一定数量的页面控件,将控件数据依次加载至页面控件中进行显示,减少了在目标页面中需要创建的控件的数量,从而减少了对于计算机性能的损耗,解决了目标页面在显示大数量级的控件时的页面卡顿问题。To sum up, the control display method provided by the embodiment of the present application receives the control sliding operation on the target page, loads the obtained control data corresponding to the target page sequentially along the sliding direction of the sliding operation, and displays them on the target page. In the page control, because in the process of rendering and displaying the control data on the target page, it is not necessary to create a page control for each piece of control data, but to create a certain number of page controls on the page, and load the control data to the page in sequence The display in the control reduces the number of controls that need to be created in the target page, thereby reducing the loss of computer performance and solving the page jam problem when the target page displays a large number of controls.

本申请实施例提供的方法,控件数据在加载至页面控件中的过程中,页面控件会在目标页面中显示相应的动画特效,一方面,提升了页面数据在显示过程中的流畅度,另一方面,提升了用户在该目标页面中的使用体验感,提高了在控件显示过程中的人机交互效率。In the method provided by the embodiment of the present application, when the control data is loaded into the page control, the page control will display corresponding animation special effects on the target page. On the one hand, the fluency of the page data in the display process is improved. On the one hand, the user's sense of experience in the target page is improved, and the efficiency of human-computer interaction in the control display process is improved.

在一些可选的实施例中,目标页面中包含有相互关联的控件对,当控件数据集中的某一控件数据加载至其中一个控件中时,与其关联的控件中将会显示与该控件数据相关的数据。请参考图11,其示出了本申请一个示例性实施例提供的控件显示方法的流程图,以该方法应用于如图1所示的终端中为例进行说明,如图11所示,该方法包括:In some optional embodiments, the target page contains a pair of related controls. When a certain control data in the control data set is loaded into one of the controls, the control associated with it will display the The data. Please refer to FIG. 11 , which shows a flow chart of a control display method provided by an exemplary embodiment of the present application. The method is applied to the terminal shown in FIG. 1 as an example for illustration. As shown in FIG. 11 , the Methods include:

步骤1101,获取目标页面对应的控件数据。Step 1101, acquire control data corresponding to the target page.

其中,控件数据用于加载在目标页面的控件中进行显示,目标页面包括顺序排列的多个页面控件,多个页面控件中包括处于目标页面内和处于目标页面外的控件。Wherein, the control data is used to be loaded into the control of the target page for display, and the target page includes multiple page controls arranged in sequence, and the multiple page controls include controls inside and outside the target page.

步骤1102,接收在目标页面上的控件滑动操作。Step 1102, receiving a control sliding operation on the target page.

控件滑动操作用于沿滑动方向从目标页面内的第一控件中清除第一数据,并将第二数据加载至目标页面内。The control sliding operation is used to clear the first data from the first control in the target page along the sliding direction, and load the second data into the target page.

在一些可选的实施例中,若控件数据集中的控件数据在某一滑动方向上已加载到最后一个数据,则用户无法在该滑动方向上继续移动控件数据。In some optional embodiments, if the control data in the control data set has been loaded to the last data in a certain sliding direction, the user cannot continue to move the control data in this sliding direction.

在一些可选的实施例中,多个页面控件中包括关联控件对,关联控件对中包括第一关联控件和第二关联控件,第一关联控件和第二关联控件用于通过关联的方式加载控件数据。In some optional embodiments, the multiple page controls include an associated control pair, the associated control pair includes a first associated control and a second associated control, and the first associated control and the second associated control are used to load control data.

步骤1103,响应于控件滑动操作,按控件数据的加载顺序,沿滑动操作的滑动方向将第一关联数据加载至第一关联控件中;以及,将第二关联数据加载至第二关联控件中。Step 1103 , in response to the control sliding operation, according to the loading order of the control data, load the first associated data into the first associated control along the sliding direction of the sliding operation; and load the second associated data into the second associated control.

其中,第一关联数据和第二关联数据的显示内容关联。示意性的,若第一关联控件为承载图标的控件,则第二关联控件即为显示该图标对应的介绍的控件;若第一关联控件为承载选择列表标题的控件,则第二关联控件即为显示该选择列表的列表内容的控件。Wherein, the display content of the first associated data is associated with the second associated data. Schematically, if the first associated control is a control that carries an icon, the second associated control is a control that displays the introduction corresponding to the icon; if the first associated control is a control that carries a selection list title, then the second associated control is A control that displays the list contents of this picklist.

在一些可选的实施例中,响应于控件滑动操作,按控件数据的显示顺序,沿滑动操作的滑动方向将第一关联数据加载至第一关联控件中;响应于第一关联数据加载至第一关联控件中,将第二关联数据加载至第一关联控件中。也就是说,第一关联数据和第二关联数据之前存在主辅关系,只要当第一关联数据加载至第一关联控件中,第二关联数据才能加载至第一关联控件中。In some optional embodiments, in response to the control sliding operation, according to the display sequence of the control data, the first associated data is loaded into the first associated control along the sliding direction of the sliding operation; In an associated control, the second associated data is loaded into the first associated control. That is to say, there is a master-subordinate relationship between the first associated data and the second associated data, and only when the first associated data is loaded into the first associated control can the second associated data be loaded into the first associated control.

在一些可选的实施例中,响应于控件滑动操作,按控件数据的显示顺序,沿滑动操作的滑动方向将第一关联数据滑入第一关联控件中;同时将第二关联数据加载至第一关联控件中。也就是说,第一关联控件和第二关联控件之间没有优先级的区别。In some optional embodiments, in response to the control sliding operation, according to the display order of the control data, slide the first associated data into the first associated control along the sliding direction of the sliding operation; meanwhile, load the second associated data into the first associated control. In an associated control. That is to say, there is no priority difference between the first associated control and the second associated control.

可选地,其中第一关联控件和第二关联控件通过关联的方式加载控件数据的情况包括以下情况中的至少一种:Optionally, the situation where the first associated control and the second associated control load control data in an associated manner includes at least one of the following situations:

1、第一关联控件和第二关联控件用于通过位置关联的方式加载控件数据。1. The first associated control and the second associated control are used to load control data through position association.

示意性的,请参考图12,在游戏的虚拟道具的道具图标显示页面中包括4个页面控件,其中,第一关联控件1201处于左侧页面1200的中间位置;第二关联控件1202布满整个右侧页面1210,用于承载对于第一关联控件1201中的虚拟道具的详情介绍内容。当虚拟道具2对应的控件数据加载至第一关联控件1201中时,第一关联控件1201中会显示虚拟道具2的图标,用户不需对该图标进行任何点击操作,在第二关联控件1202中就会自动加载出虚拟道具2对应的道具介绍内容。Schematically, please refer to FIG. 12 , the item icon display page of the virtual item in the game includes 4 page controls, wherein the first associated control 1201 is located in the middle of the left page 1200; the second associated control 1202 covers the entire The right page 1210 is used to carry detailed introduction content for the virtual props in the first associated control 1201 . When the control data corresponding to the virtual item 2 is loaded into the first associated control 1201, the icon of the virtual item 2 will be displayed in the first associated control 1201, and the user does not need to perform any click operation on the icon. The prop introduction content corresponding to the virtual prop 2 will be automatically loaded.

在一些可选的实施例中,第二关联控件的显示位置处于第一关联控件内。则当第一关联控件加载第一关联数据时,第二关联控件会同时加载第二关联数据。In some optional embodiments, the display position of the second associated control is within the first associated control. Then when the first associated control loads the first associated data, the second associated control will simultaneously load the second associated data.

2、第一关联控件和第二关联控件用于通过控件形状关联的方式加载控件数据。2. The first associated control and the second associated control are used to load control data in a manner of associating control shapes.

其中,控件形状用于指示第一关联控件和第二关联控件在目标页面上的显示形状。Wherein, the control shape is used to indicate the display shapes of the first associated control and the second associated control on the target page.

示意性的,在目标页面中,若存在有控件1和控件2的形状是相同的,则当控件1中显示有数据a时,控件2中会自动加载与数据a相关联的数据。Schematically, in the target page, if there is control 1 and control 2 with the same shape, when data a is displayed in control 1, the data associated with data a will be automatically loaded in control 2.

可选地,其中,第二关联控件包括与第一关联控件形状相同的控件和与第一关联控件形状不同的控件。示意性的,在形状相同的第一关联控件和第二关联控件中加载内容语义相似度较高的控件数据;在形状不同的第一关联控件和第二关联控件中加载内容语义相似度较低的控件数据。例如:在学习词语的界面,在第一关联控件中加载一个词语后,其他与第一关联控件形状相同的第二关联控件将加载该词语的近义词;与第一关联控件形状不同的第二关联控件将加载该词语的反义词。Optionally, the second associated control includes a control having the same shape as the first associated control and a control having a different shape from the first associated control. Schematically, the control data with higher content semantic similarity is loaded in the first associated control and the second associated control with the same shape; the content semantic similarity is lower in the first associated control and the second associated control with different shapes control data. For example: in the interface of learning words, after loading a word in the first associated control, other second associated controls with the same shape as the first associated control will load the synonyms of the word; the second associated control with a different shape from the first associated control The control will load the antonym for that word.

3、第一关联控件和第二关联控件用于通过时间关联的方式加载控件数据。3. The first associated control and the second associated control are used to load control data in a time-associated manner.

可选地,当第一关联数据加载至第一关联控件中,在预设时长后,第二关联控件中将加载第二关联数据。示意性的,在0秒时,第一关联控件加载有第一关联数据,3秒后,在第二关联控件中加载第二关联数据。Optionally, when the first associated data is loaded into the first associated control, the second associated data will be loaded into the second associated control after a preset period of time. Schematically, at 0 second, the first associated control is loaded with the first associated data, and after 3 seconds, the second associated control is loaded with the second associated data.

综上所述,本申请实施例提供的控件显示方法通过接收在目标页面上的控件滑动操作,将获取得到目标页面对应的控件数据沿着滑动操作的滑动方向依次加载并显示在目标页面中的页面控件中,由于在将控件数据渲染显示在目标页面的过程中,不需要为每一条控件数据都创建一个页面控件,而是在页面上创建一定数量的页面控件,将控件数据依次加载至页面控件中进行显示,减少了在目标页面中需要创建的控件的数量,从而减少了对于计算机性能的损耗,解决了目标页面在显示大数量级的控件时的页面卡顿问题。To sum up, the control display method provided by the embodiment of the present application receives the control sliding operation on the target page, loads the obtained control data corresponding to the target page sequentially along the sliding direction of the sliding operation, and displays them on the target page. In the page control, because in the process of rendering and displaying the control data on the target page, it is not necessary to create a page control for each piece of control data, but to create a certain number of page controls on the page, and load the control data to the page in sequence The display in the control reduces the number of controls that need to be created in the target page, thereby reducing the loss of computer performance and solving the page jam problem when the target page displays a large number of controls.

本申请实施例提供的方法,目标页面中包含有相互关联的控件对,当控件数据集中的目标控件数据加载至其中一个控件中时,与其关联的控件中将会直接显示与目标控件数据相关的数据,则用户无需进行任何操作即可查看与目标控件数据相关的数据,提高了用户在目标页面中使用目标控件时的使用效率。In the method provided by the embodiment of the present application, the target page contains a pair of related controls. When the target control data in the control data set is loaded into one of the controls, the associated control will directly display the data related to the target control data. data, the user can view the data related to the target control data without performing any operations, which improves the user's efficiency when using the target control on the target page.

在一些可选的实施例中,目标页面中包括一定数量的页面控件,控件数据沿着滑动操作的滑动方向加载在页面控件之前,页面控件会沿着滑动方向循环进行移动,请参考图13,其示出了本申请一个示例性实施例提供的控件显示方法的流程图,以该方法应用于如图1所示的终端中为例进行说明,如图13所示,该方法包括:In some optional embodiments, the target page includes a certain number of page controls, the control data is loaded before the page controls along the sliding direction of the sliding operation, and the page controls will move cyclically along the sliding direction, please refer to Figure 13, It shows a flow chart of a control display method provided by an exemplary embodiment of the present application. The method is applied to the terminal shown in FIG. 1 as an example for illustration. As shown in FIG. 13 , the method includes:

步骤1301,获取目标页面对应的控件数据。Step 1301, acquire control data corresponding to the target page.

其中,控件数据用于加载在目标页面的控件中进行显示,目标页面包括顺序排列的多个页面控件,多个页面控件中包括处于目标页面内和处于目标页面外的控件。Wherein, the control data is used to be loaded into the control of the target page for display, and the target page includes multiple page controls arranged in sequence, and the multiple page controls include controls inside and outside the target page.

示意性的,请参考图14,1)中,在目标页面中创建控件1401至1407这7个控件,且控件1402至1406为目标页面内的,也即在用户可视范围内的控件;控件1401和控件1407为目标页面外的,也即不在用户可视范围内的控件。可选地,控件创建结束后,将数据a至数据e依次加载至控件1402至1406中,且将位于数据e后的数据f加载至控件1407中。Schematically, please refer to FIG. 14. In 1), seven controls 1401 to 1407 are created in the target page, and controls 1402 to 1406 are controls within the target page, that is, within the user's visual range; 1401 and control 1407 are controls outside the target page, that is, not within the user's visual range. Optionally, after the control is created, data a to data e are sequentially loaded into controls 1402 to 1406 , and data f after data e is loaded into control 1407 .

步骤1302,接收在目标页面上的控件滑动操作。Step 1302, receiving a control sliding operation on the target page.

可选地,上述控件滑动操作可实现在目标页面上的鼠标的滚动操作,也可以实现为在目标页面上的对滑动条的拖动操作、还可以实现为对目标页面上的翻页控件的点击操作、还可以实现为在终端屏幕上对目标页面的长按拖动操作等,本申请实施例对此不加以限定。Optionally, the above control sliding operation can be implemented as a mouse scrolling operation on the target page, can also be implemented as a drag operation on the slide bar on the target page, and can also be implemented as a page turning control on the target page The click operation may also be implemented as a long-press and drag operation on the target page on the terminal screen, which is not limited in this embodiment of the present application.

步骤1303,响应于控件滑动操作,沿滑动方向循环移动多个页面控件。Step 1303, in response to the sliding operation of the control, circularly move multiple page controls along the sliding direction.

其中,在多个页面控件的循环移动过程中,将处于目标页面内的第一控件滑出目标页面,处于目标页面外的第二控件滑入目标页面,并将位于第一端点位置的端点位控件移动至第二端点位置;第二控件中加载有待目标页面中进行显示的控件数据,第一端点位置为与滑动方向相同一侧的端点位置,第二端点位置为与滑动方向相反一侧的端点位置。Among them, during the circular movement of multiple page controls, slide the first control inside the target page out of the target page, slide the second control outside the target page into the target page, and slide the endpoint at the first endpoint The bit control moves to the second endpoint position; the second control loads the control data to be displayed on the target page, the first endpoint position is the endpoint position on the same side as the sliding direction, and the second endpoint position is opposite to the sliding direction side endpoint position.

需要说明的是,上述控件滑动操作的滑动方向是指目标页面的滑动方向,例如:当控件滑动操作实现为在目标页面上的鼠标的滚动操作时,鼠标向下滚动,目标页面向上滑动,则滑动方向为向上滑动。It should be noted that the sliding direction of the above-mentioned control sliding operation refers to the sliding direction of the target page, for example: when the control sliding operation is implemented as a mouse scrolling operation on the target page, the mouse scrolls down and the target page slides up, then Swipe direction is swipe up.

示意性的,请参考图14,1)中,当目标页面接收到向上滑动的操作时,控件1401所在位置为第一端点位置,控件1407所在位置为第二端点位置;2)中,当目标页面接收到向上滑动的操作时,将控件1402至1407沿着滑动方向向前移动一个控件的位置;向上移动时,控件1402被移动到了目标页面外,控件1407被移动到了目标页面内,且位于第一端点位置的控件1401被移动到了第二端点位置。Schematically, please refer to FIG. 14. In 1), when the target page receives an upward sliding operation, the position of the control 1401 is the first end point, and the position of the control 1407 is the second end point; in 2), when When the target page receives the operation of sliding up, move the controls 1402 to 1407 forward along the sliding direction by one control position; when moving up, the control 1402 is moved out of the target page, and the control 1407 is moved into the target page, and The control 1401 at the first endpoint is moved to the second endpoint.

步骤1304,清空当前位于第一端点位置的端点位控件,并按控件数据的显示顺序,在当前处于第二端点位置的端点位控件中加载控件数据。Step 1304, clear the endpoint control currently at the first endpoint position, and load control data into the endpoint control currently at the second endpoint position according to the display order of the control data.

可选地,若目标页面的两侧端点位置仅分别包括一个端点位控件,则清空的即为从目标页面的第一控件中被清除的控件数据。Optionally, if the endpoint positions on both sides of the target page include only one endpoint position control respectively, what is cleared is the control data cleared from the first control on the target page.

示意性的,请参考图4,2)中,控件1401至1407的移动结束后,控件数据b与控件数据e随着控件1403至控件1406的移动向上移动了一个页面控件的位置;控件数据f随着控件1407滑入目标页面内,也即显示在目标页面内;清除当前处于第一端点位置的控件1402中的控件数据a,且将当前处于第二端点位置的控件1401中顺序加载控件数据g。Schematically, please refer to FIG. 4, in 2), after the movement of controls 1401 to 1407 is completed, control data b and control data e move up the position of a page control along with the movement of controls 1403 to 1406; control data f As the control 1407 slides into the target page, that is, it is displayed in the target page; clear the control data a in the control 1402 currently at the first endpoint position, and sequentially load the controls in the control 1401 currently at the second endpoint position data g.

在一些可选的实施例中,当多个页面控件循环移动结束后,按照控件数据的加载顺序,在当前处于目标页面内和当前处于第二端点位置的端点位控件中加载控件数据。In some optional embodiments, after the circular movement of multiple page controls is completed, the control data is loaded in the endpoint control currently in the target page and currently in the second endpoint position according to the loading sequence of the control data.

也即,当多个页面控件循环移动结束后,会对当前处于目标页面内和当前处于第二端点位置的端点位控件重新进行赋值,示意性的,请参考图14,第t个时间帧时,控件1401中未加载数据,控件1402至控件1407中依次加载控件数据a至f;第t+1时间帧时,控件1403至控件1404沿滑动方向移动了一个页面控件的位置,控件1402移动到了目标页面外,控件1401从目标页面外的一侧端点移动到了另一侧端点,控件1407移动到了目标页面内,且控件1402至控件1407中加载的数据被清空;第t+2个时间帧时,若控件滑动操作对应的滑动的距离仅为一个页面控件的长度,在控件1403至控件1407和控件1401中顺序加载控件数据b至g,若控件滑动操作对应的滑动的距离为5个页面控件的长度,在控件1403至控件1407和控件1401中顺序加载控件数据f至j。That is, after the cyclic movement of multiple page controls is completed, the endpoint control that is currently in the target page and currently in the second endpoint position will be reassigned. Schematically, please refer to Figure 14, at the tth time frame , no data is loaded in control 1401, and control data a to f are loaded in sequence from control 1402 to control 1407; in the t+1th time frame, control 1403 to control 1404 move the position of a page control along the sliding direction, and control 1402 moves to Outside the target page, control 1401 is moved from one side endpoint outside the target page to the other side endpoint, control 1407 is moved into the target page, and the data loaded in controls 1402 to 1407 is cleared; at the t+2th time frame , if the sliding distance corresponding to the control sliding operation is only the length of one page control, sequentially load control data b to g in control 1403 to control 1407 and control 1401, if the sliding distance corresponding to the control sliding operation is 5 page controls The length of control 1403 to control 1407 and control 1401 is sequentially loaded with control data f to j.

综上所述,本申请实施例提供的方法,控件数据集中的控件数据沿着滑动操作的滑动方向顺序加载在页面控件之前,页面控件会沿着滑动方向循环进行移动,提升了控件数据在显示过程中的流畅度。To sum up, in the method provided by the embodiment of this application, the control data in the control data set is sequentially loaded before the page control along the sliding direction of the sliding operation, and the page control will move cyclically along the sliding direction, which improves the display of the control data. fluency in the process.

请参考图15,其示出了本申请一个示例性的实施例提供的控件显示装置结构框图,该装置包括如下模块:Please refer to FIG. 15, which shows a structural block diagram of a control display device provided by an exemplary embodiment of the present application. The device includes the following modules:

获取模块1500,用于获取目标页面对应的控件数据,所述控件数据用于加载在所述目标页面的控件中进行显示,其中,所述目标页面包括顺序排列的多个页面控件,所述多个页面控件中包括处于所述目标页面内和处于所述目标页面外的控件;The obtaining module 1500 is used to obtain the control data corresponding to the target page, and the control data is used to load and display in the control of the target page, wherein the target page includes a plurality of page controls arranged in order, and the multiple The page controls include controls within the target page and outside the target page;

接收模块1510,用于接收在所述目标页面上的控件滑动操作,所述控件滑动操作用于沿滑动方向从所述目标页面内的第一控件中清除第一数据,并将第二数据加载至所述目标页面内的控件中;The receiving module 1510 is configured to receive a control sliding operation on the target page, the control sliding operation is used to clear the first data from the first control in the target page along the sliding direction, and load the second data to a control within said target page;

更新模块1520,用于响应于所述滑动操作的所述滑动方向指示,按所述控件数据的显示顺序正序进行数据更新,将第i+k个页面控件内加载的控件数据更新加载至第i个页面控件中,显示处于所述目标页面内的所述第二数据,其中,i为正整数,k为预设的正整数;或者,响应于所述滑动操作的所述滑动方向指示,按所述控件数据的显示顺序反序进行数据更新,将第i个页面控件对应的控件数据之前的第k个控件数据更新加载至第i个页面控件中,显示处于所述目标页面内的所述第二数据。The update module 1520 is configured to respond to the slide direction indication of the slide operation, perform data update according to the display sequence of the control data, update and load the control data loaded in the i+kth page control to the first In the i page control, the second data in the target page is displayed, where i is a positive integer and k is a preset positive integer; or, in response to the sliding direction indication of the sliding operation, Perform data update in reverse order according to the display order of the control data, update and load the k-th control data before the control data corresponding to the i-th page control into the i-th page control, and display all the objects in the target page Describe the second data.

请参考图16,在一些可选的实施例中,该装置还包括如下模块:Please refer to Figure 16, in some optional embodiments, the device also includes the following modules:

显示模块1530,用于响应于所述控件滑动操作,显示所述多个页面控件从基准位置沿所述滑动方向滚动的模拟滑动动画,所述多个页面控件在所述模拟滑动动画播放完毕时,恢复显示至所述基准位置。The display module 1530 is configured to, in response to the control sliding operation, display a simulated sliding animation in which the plurality of page controls scroll from a reference position along the sliding direction, and when the simulated sliding animation of the plurality of page controls is played to restore the display to the reference position.

在一些可选的实施例中,所述显示模块1530,还用于显示所述多个页面控件沿所述滑动方向滑动预设距离后,恢复至所述基准位置显示的动画;或者,用于显示所述多个页面控件沿所述滑动方向从第一界面边缘滑出所述目标页面,并从第二界面边缘滑入所述目标页面的动画,其中,所述第一界面边缘和所述第二界面边缘相对。In some optional embodiments, the display module 1530 is further configured to display an animation of returning to the reference position after the plurality of page controls slide a preset distance along the sliding direction; or, for displaying an animation in which the plurality of page controls slide out of the target page from the edge of the first interface along the sliding direction, and slide into the target page from the edge of the second interface, wherein the first interface edge and the The edges of the second interface are opposite.

在一些可选的实施例中,所述显示模块1530,还用于响应于所述控件滑动操作,显示所述多个页面控件在所述目标页面中的平铺渲染动画,所述平铺渲染动画用于表示所述多个页面控件之间的逐步加载过程。In some optional embodiments, the display module 1530 is further configured to display tile rendering animations of the plurality of page controls in the target page in response to the control sliding operation, and the tile rendering Animation is used to represent the step-by-step loading process among the plurality of page controls.

在一些可选的实施例中,所述显示模块1530,还用于按照预设渲染频率,在指定帧数间隔内对所述多个页面控件中的j个页面控件进行渲染显示,生成并显示所述平铺渲染动画,j为正整数。In some optional embodiments, the display module 1530 is further configured to render and display j page controls among the plurality of page controls within a specified frame interval according to a preset rendering frequency, generate and display The tile rendering animation, j is a positive integer.

在一些可选的实施例中,所述目标页面中包括m行n列页面控件,m和n为正整数;所述更新模块1520,还用于响应于所述滑动操作的滑动方向沿行所在的第一方向,按所述控件数据的显示顺序,将第n’+1列中页面控件加载的数据更新至第n’列页面控件中;所述更新模块1520,还用于响应于所述滑动操作的滑动方向沿列所在的第二方向,按所述控件数据的显示顺序,将第m’+1行中页面控件加载的数据更新至第m’行页面控件中。In some optional embodiments, the target page includes m rows and n columns of page controls, m and n are positive integers; the updating module 1520 is further configured to respond to the sliding direction of the sliding operation along the row In the first direction, update the data loaded by the page control in column n'+1 to the page control in column n' according to the display order of the control data; the update module 1520 is also configured to respond to the The sliding direction of the sliding operation is along the second direction where the column is located, and the data loaded by the page control in row m'+1 is updated to the page control in row m' according to the display order of the control data.

在一些可选的实施例中,所述多个页面控件中包括关联控件对,所述关联控件对中包括第一关联控件和第二关联控件,所述第一关联控件和所述第二关联控件用于通过关联的方式加载所述控件数据;所述更新模块1520,用于响应于所述控件滑动操作,按所述控件数据的显示顺序,沿所述滑动操作的所述滑动方向将第一关联数据加载至所述第一关联控件中;以及,将第二关联数据加载至所述第二关联控件中,所述第一关联数据和所述第二关联数据的显示内容关联。In some optional embodiments, the multiple page controls include an associated control pair, the associated control pair includes a first associated control and a second associated control, and the first associated control and the second associated The control is used to load the control data in an associated manner; the update module 1520 is used to respond to the control sliding operation, and according to the display sequence of the control data, move the first control data along the sliding direction of the sliding operation Loading associated data into the first associated control; and loading second associated data into the second associated control, where the first associated data is associated with the display content of the second associated data.

在一些可选的实施例中,所述第一关联控件和所述第二关联控件用于通过位置关联的方式加载所述控件数据;或者,所述第一关联控件和所述第二关联控件用于通过控件形状关联的方式加载所述控件数据,所述控件形状用于指示所述第一关联控件和所述第二关联控件在所述目标页面上的显示形状;或者,所述第一关联控件和所述第二关联控件用于通过时间关联的方式加载所述控件数据。In some optional embodiments, the first associated control and the second associated control are used to load the control data in a position-associated manner; or, the first associated control and the second associated control It is used to load the control data by means of control shape association, and the control shape is used to indicate the display shapes of the first associated control and the second associated control on the target page; or, the first The associated control and the second associated control are used to load the control data in a time-associated manner.

综上所述,本申请实施例提供的控件显示装置通过接收在目标页面上的控件滑动操作,将获取得到目标页面对应的控件数据沿着滑动操作的滑动方向依次加载并显示在目标页面中的页面控件中,由于在将控件数据渲染显示在目标页面的过程中,以控件数据的移动替代了控件的生成,减少了在目标页面中需要创建的控件的数量,从而减少了对于计算机性能的损耗,解决了目标页面在显示大数量级的控件时的页面卡顿问题。To sum up, the control display device provided by the embodiment of the present application receives the control sliding operation on the target page, sequentially loads and displays the obtained control data corresponding to the target page along the sliding direction of the sliding operation on the target page. In page controls, in the process of rendering and displaying control data on the target page, the generation of controls is replaced by the movement of control data, which reduces the number of controls that need to be created in the target page, thereby reducing the loss of computer performance , which solves the page jam problem when the target page displays a large number of controls.

需要说明的是:上述实施例提供的控件显示装置,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的控件显示装置和控件显示方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that the control display device provided by the above embodiment is only illustrated by the division of the above functional modules. In practical applications, the above function distribution can be completed by different functional modules according to the needs, that is, the internal structure of the device Divided into different functional modules to complete all or part of the functions described above. In addition, the control display device and the control display method embodiments provided by the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, and will not be repeated here.

图17示出了本申请一个示例性实施例提供的计算机设备1700的结构框图。该计算机设备1700可以是:智能手机、平板电脑、动态影像专家压缩标准音频层面3播放器(MovingPicture Experts Group Audio Layer III,MP3)、动态影像专家压缩标准音频层面4(Moving Picture Experts Group Audio Layer IV,MP4)播放器、笔记本电脑或台式电脑。计算机设备1700还可能被称为用户设备、便携式计算机设备、膝上型计算机设备、台式计算机设备等其他名称。Fig. 17 shows a structural block diagram of a computer device 1700 provided by an exemplary embodiment of the present application. The computer device 1700 may be: a smart phone, a tablet computer, a moving picture expert compression standard audio layer 3 player (Moving Picture Experts Group Audio Layer III, MP3), a moving picture expert compression standard audio layer 4 (Moving Picture Experts Group Audio Layer IV , MP4) player, laptop or desktop computer. Computer device 1700 may also be called user device, portable computer device, laptop computer device, desktop computer device, or otherwise.

通常,计算机设备1700包括有:处理器1701和存储器1702。Generally, the computer device 1700 includes: a processor 1701 and a memory 1702 .

处理器1701可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器1701可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器1701也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称中央处理器(CentralProcessing Unit,CPU);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1701可以在集成有图像处理器(Graphics Processing Unit,GPU),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1701还可以包括人工智能(Artificial Intelligence,AI)处理器,该AI处理器用于处理有关机器学习的计算操作。The processor 1701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1701 may be implemented by using at least one hardware form of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable LogicArray, PLA). . The processor 1701 may also include a main processor and a coprocessor, the main processor is a processor for processing data in the wake-up state, also called a central processing unit (Central Processing Unit, CPU); the coprocessor is used to Low-power processor for processing data in standby state. In some embodiments, the processor 1701 may be integrated with a graphics processor (Graphics Processing Unit, GPU), and the GPU is used to render and draw the content that needs to be displayed on the display screen. In some embodiments, the processor 1701 may also include an artificial intelligence (Artificial Intelligence, AI) processor, where the AI processor is used to process computing operations related to machine learning.

存储器1702可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器1702还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1702中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器1701所执行以实现本申请中方法实施例提供的字幕元素的渲染方法。Memory 1702 may include one or more computer-readable storage media, which may be non-transitory. The memory 1702 may also include high-speed random access memory, and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1702 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1701 to implement the subtitle elements provided by the method embodiments in this application The rendering method.

示意性的,计算机设备1700还包括其他组件,本领域技术人员可以理解,图17中示出的结构并不构成对计算机设备1700的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Schematically, the computer device 1700 also includes other components. Those skilled in the art can understand that the structure shown in FIG. Combine certain components, or employ different arrangements of components.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,该计算机可读存储介质可以是上述实施例中的存储器中所包含的计算机可读存储介质;也可以是单独存在,未装配入计算机设备中的计算机可读存储介质。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the computer-readable storage The medium may be a computer-readable storage medium included in the memory in the above embodiments; or a computer-readable storage medium that exists independently and is not assembled into a computer device.

另一方面,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现如上述本申请实施例中任一所述的控件显示方法。In another aspect, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, code set or instruction set are stored in the storage medium, the at least one instruction, the at least one program, the code The set or instruction set is loaded and executed by the processor to implement the control display method described in any one of the above-mentioned embodiments of the present application.

另一方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例中任一所述的控件显示方法。In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the control display method described in any one of the above embodiments.

可选的,该计算机可读存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、固态硬盘(SSD,Solid State Drives)或光盘等。其中,随机存取记忆体可以包括电阻式随机存取记忆体(ReRAM,Resistance RandomAccess Memory)和动态随机存取存储器(DRAM,Dynamic Random Access Memory)。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。Optionally, the computer-readable storage medium may include: a read-only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a solid-state hard drive (SSD, Solid State Drives) or an optical disc, and the like. Wherein, the random access memory may include a resistive random access memory (ReRAM, Resistance Random Access Memory) and a dynamic random access memory (DRAM, Dynamic Random Access Memory). The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.

以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within range.

Claims (11)

1. A control display method, the method comprising:
acquiring control data corresponding to a target page, wherein the control data is used for being loaded in a control of the target page and displayed, the target page comprises a plurality of page controls which are sequentially arranged, and the plurality of page controls comprise controls which are positioned in the target page and are positioned outside the target page;
receiving a control sliding operation on the target page, wherein the control sliding operation is used for clearing first data from a first control in the target page along a sliding direction and loading second data into a control in the target page;
responding to the sliding direction indication of the sliding operation, updating data according to the display sequence of the control data in a positive sequence, updating and loading the control data loaded in the (i + k) th page control into the ith page control, and displaying the second data in the target page, wherein i is a positive integer, and k is a preset positive integer; or responding to the sliding direction indication of the sliding operation, updating data according to the display sequence of the control data in a reverse order, updating and loading the kth control data before the control data corresponding to the ith page control into the ith page control, and displaying the second data in the target page.
2. The method of claim 1, further comprising:
and responding to the control sliding operation, displaying the simulated sliding animation of the plurality of page controls rolling from the reference position along the sliding direction, and resuming to display to the reference position when the simulated sliding animation is played.
3. The method of claim 2, wherein displaying the simulated slide animation of the plurality of page controls scrolling from a reference position in the slide direction comprises:
displaying the animation displayed in the reference position after the plurality of page controls slide for a preset distance along the sliding direction; or,
displaying an animation of the plurality of page controls sliding out of the target page from a first interface edge and sliding in the target page from a second interface edge along the sliding direction, wherein the first interface edge and the second interface edge are opposite.
4. The method of claim 1, further comprising:
and responding to the control sliding operation, rendering and displaying j page controls in the plurality of page controls within a specified frame number interval according to a preset rendering frequency, and generating and displaying the tiled rendering animation, wherein j is a positive integer, and the tiled rendering animation is used for representing a gradual loading process among the plurality of page controls.
5. The method according to any one of claims 1 to 4, wherein the target page comprises m rows and n columns of page controls, and m and n are positive integers;
the method further comprises the following steps:
in response to the first direction of the sliding operation along the row, updating the data loaded by the page control in the n '+1 th column into the page control in the n' th column according to the display sequence of the control data;
and responding to the sliding direction of the sliding operation along the second direction where the column is located, and updating the data loaded by the page controls in the m '+1 th row into the page controls in the m' th row according to the display sequence of the control data.
6. The method according to any one of claims 1 to 4, wherein an associated control pair is included in the plurality of page controls, and the associated control pair includes a first associated control and a second associated control, and the first associated control and the second associated control are used for loading the control data in an associated manner;
the method further comprises the following steps:
in response to the control sliding operation, loading first associated data into the first associated control along the sliding direction of the sliding operation according to the display sequence of the control data; and loading second associated data into the second associated control, wherein the display contents of the first associated data and the second associated data are associated.
7. The method of claim 6,
the first associated control and the second associated control are used for loading the control data in a position association mode; or,
the first association control and the second association control are used for loading the control data in a control shape association mode, and the control shape is used for indicating the display shape of the first association control and the second association control on the target page; or,
the first association control and the second association control are used for loading the control data in a time association mode.
8. An apparatus for displaying controls, the apparatus comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring control data corresponding to a target page, and the control data is used for being loaded in a control of the target page and displayed, wherein the target page comprises a plurality of page controls which are sequentially arranged, and the plurality of page controls comprise controls which are positioned in the target page and out of the target page;
the receiving module is used for receiving a control sliding operation on the target page, and the control sliding operation is used for loading first data from a first control outside the target page along a sliding direction and loading second data into a control inside the target page;
the updating module is used for responding to the sliding direction indication of the sliding operation, updating data according to the display sequence of the control data in a positive sequence, updating and loading the control data loaded in the (i + k) th page control into the ith page control, and displaying the second data in the target page, wherein i is a positive integer, and k is a preset positive integer; or responding to the sliding direction indication of the sliding operation, updating data according to the display sequence of the control data in a reverse order, updating and loading the kth control data before the control data corresponding to the ith page control into the ith page control, and displaying the second data in the target page.
9. A computer device comprising a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the control display method according to any one of claims 1 to 7.
10. A computer-readable storage medium having stored therein at least one program code, the at least one program code being loaded and executed by a processor to implement the control display method of any of claims 1 to 7.
11. A computer program product comprising a computer program which, when executed by a processor, implements a control display method as claimed in any one of claims 1 to 7.
CN202211025977.XA 2022-08-25 2022-08-25 Control display method, device, equipment, medium and program product Pending CN115328602A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211025977.XA CN115328602A (en) 2022-08-25 2022-08-25 Control display method, device, equipment, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211025977.XA CN115328602A (en) 2022-08-25 2022-08-25 Control display method, device, equipment, medium and program product

Publications (1)

Publication Number Publication Date
CN115328602A true CN115328602A (en) 2022-11-11

Family

ID=83926256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211025977.XA Pending CN115328602A (en) 2022-08-25 2022-08-25 Control display method, device, equipment, medium and program product

Country Status (1)

Country Link
CN (1) CN115328602A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647704A (en) * 2019-09-20 2020-01-03 北京思维造物信息科技股份有限公司 Page updating method, device and equipment
CN112287258A (en) * 2020-09-25 2021-01-29 长沙市到家悠享网络科技有限公司 Page rendering method, device, equipment and storage medium
CN112464121A (en) * 2020-11-27 2021-03-09 金蝶软件(中国)有限公司 Data loading method and device, computer equipment and storage medium
CN113886707A (en) * 2021-10-25 2022-01-04 北京字跳网络技术有限公司 Encyclopedia information determination method, display method, apparatus, device and medium
CN114676358A (en) * 2022-03-21 2022-06-28 北京字跳网络技术有限公司 Control display method, device, electronic device, storage medium and program product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647704A (en) * 2019-09-20 2020-01-03 北京思维造物信息科技股份有限公司 Page updating method, device and equipment
CN112287258A (en) * 2020-09-25 2021-01-29 长沙市到家悠享网络科技有限公司 Page rendering method, device, equipment and storage medium
CN112464121A (en) * 2020-11-27 2021-03-09 金蝶软件(中国)有限公司 Data loading method and device, computer equipment and storage medium
CN113886707A (en) * 2021-10-25 2022-01-04 北京字跳网络技术有限公司 Encyclopedia information determination method, display method, apparatus, device and medium
CN114676358A (en) * 2022-03-21 2022-06-28 北京字跳网络技术有限公司 Control display method, device, electronic device, storage medium and program product

Similar Documents

Publication Publication Date Title
US20210182948A1 (en) Product browsing method and apparatus, device and storage medium
US9552129B2 (en) Interactive visual representation of points of interest data
US20140089824A1 (en) Systems And Methods For Dynamically Altering A User Interface Based On User Interface Actions
US20150169504A1 (en) Layer based reorganization of document components
US10891423B2 (en) Portlet display on portable computing devices
US20170131872A1 (en) Mobile User Interface
CN102253802A (en) Ink lag compensation technique
KR20060052717A (en) Virtual desktops, how to recall an array of program examples, how to manage application examples, and how to manage applications
CN102981735A (en) Semantic zoom gestures
CN102999274A (en) Semantic zoom animations
CN102981728A (en) Semantic zoom
US20130106831A1 (en) 3-d presentation of information
US20170235582A1 (en) Systems and methods method for providing an interactive help file for host software user interfaces
JP6033752B2 (en) File location shortcuts and window layout
US20170169599A1 (en) Methods and electronic devices for displaying picture
US9767592B2 (en) Animating content display
US20160132128A1 (en) Inputting Radical On Touch Screen Device
US11029842B2 (en) Creating and manipulating layers on a user device using touch gestures
US8959444B2 (en) Presenting a navigation order of shapes
US20170221105A1 (en) Online article headline generation
CN115328602A (en) Control display method, device, equipment, medium and program product
US9619915B2 (en) Method and apparatus for converting an animated sequence of images into a document page
US9685140B1 (en) Optimized rendering of multimedia content
CN112417344B (en) Rendering method, rendering device, electronic equipment and storage medium
CN110795652A (en) Promotional resource replacement method, device and computer readable medium

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