Page content display method and device, electronic equipment and readable storage medium
By acquiring and analyzing scroll trigger commands, and selecting execution instances to display page content, the problem of maintaining the page loading state on mobile terminals was solved, achieving stable and fast content display and improving user experience.
Patent Information
- Application Number
- CN202211101753.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-09
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2042-09-09
AI Technical Summary
Errors in maintaining the loading state and triggering loading timing during the scrolling loading process of mobile terminal pages can lead to unstable page content display and affect user experience.
By acquiring the scroll trigger command, analyzing and processing it to obtain the scroll direction information, selecting the corresponding execution instance from the preset scroll container, and displaying the page content based on the execution instance.
It achieves stable and fast loading of page content, improving the user experience.
Smart Images

Figure CN115659076B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to, but are not limited to, the technical field of data processing, and in particular to a page content display method and device, electronic equipment and computer readable storage medium. BACKGROUND
[0002] Scroll loading is a high-frequency operation of a mobile terminal page, including pull-to-refresh, swipe-to-load and a text prompt when scrolling to the bottom. Among them, the degree of automation maintenance of the loading and bottom-touching states determines whether the scroll container can be reused when the component switches different pages. However, the current scroll plug-in is prone to loading state maintenance errors and triggering loading timing errors, so that the page content cannot be stably and quickly displayed, and users have a poor user experience. SUMMARY
[0003] The following is a summary of the subject matter of the detailed description herein. This summary is not intended to limit the scope of the claims.
[0004] In order to solve the problems mentioned in the background art, the embodiments of the present application provide a page content display method, device, electronic equipment and computer readable storage medium, so that the page content can be stably and quickly loaded and displayed, and users have a better user experience.
[0005] In a first aspect, the embodiments of the present application provide a page content display method, which comprises:
[0006] Obtaining page data and a scroll trigger instruction;
[0007] Analyzing and processing the scroll trigger instruction to obtain scroll pointing information;
[0008] According to the scroll pointing information, the page data is called and processed to obtain page content;
[0009] According to the scroll pointing information, a corresponding execution instance is selected from a preset scroll container, wherein the scroll container is provided with a plurality of execution instances;
[0010] Based on the corresponding execution instance, the page content is displayed and processed.
[0011] According to the page content display method provided in the embodiments of the present application, the following beneficial effects are achieved: first, the page data and the scroll triggering instruction are acquired; then, the scroll pointing information is obtained by analyzing and processing the scroll triggering instruction; then, the page content is obtained by calling and processing the page data according to the scroll pointing information; then, the corresponding execution instance is selected from the preset scroll container according to the scroll pointing information, wherein the scroll container is provided with a plurality of execution instances; finally, the page content is displayed based on the corresponding execution instance. Through the above technical solution, the corresponding execution instance is selected from the scroll container based on the scroll pointing information, so that the page content can be stably and quickly loaded and displayed, and a better user experience is provided.
[0012] According to some embodiments of the present application, the scroll pointing information includes scroll-up information or scroll-down information, and the analyzing and processing of the scroll triggering instruction to obtain the scroll pointing information includes:
[0013] In the case that the scroll triggering instruction includes an up-mark bit, the scroll-up information is obtained by performing first mark bit searching processing on the scroll triggering instruction;
[0014] In the case that the scroll triggering instruction includes a down-mark bit, the scroll-down information is obtained by performing second mark bit searching processing on the scroll triggering instruction.
[0015] According to some embodiments of the present application, the page content includes upper-end page content and lower-end page content, and the calling and processing of the page data to obtain the page content according to the scroll pointing information includes:
[0016] In the case that the scroll pointing information includes scroll-up information, the lower-end page content is obtained by performing first selected processing on the page data;
[0017] In the case that the scroll pointing information includes scroll-down information, the upper-end page content is obtained by performing second selected processing on the page data.
[0018] According to some embodiments of the present application, the scroll container is provided with an up-execution instance and a down-execution instance, and the selecting of the corresponding execution instance from the preset scroll container according to the scroll pointing information includes:
[0019] In the case that the scroll pointing information includes scroll-up information, the up-execution instance is selected from the scroll container;
[0020] In the case that the scroll pointing information includes scroll-down information, the down-execution instance is selected from the scroll container.
[0021] According to some embodiments of the present application, the display processing of the page content based on the execution instance comprises:
[0022] In the case that the scroll direction information comprises scroll-up information, the first display processing of the lower-end page content based on the scroll-up execution instance is performed;
[0023] In the case that the scroll direction information comprises scroll-down information, the second display processing of the upper-end page content based on the scroll-down execution instance is performed.
[0024] According to some embodiments of the present application, the first display processing of the lower-end page content based on the scroll-up execution instance in the case that the scroll direction information comprises scroll-up information comprises:
[0025] The first display data is obtained by reading the lower-end page content based on the scroll-up execution instance;
[0026] The length of the first display data is compared with the length of the array corresponding to the lower-end page content;
[0027] In the case that the length of the first display data is less than the length of the array, the first display processing is performed on the corresponding first display data; or in the case that the length of the first display data is equal to the length of the array, the first display processing is performed on the first display data and a preset bottom touch prompt.
[0028] According to some embodiments of the present application, the second display processing of the upper-end page content based on the scroll-down execution instance in the case that the scroll direction information comprises scroll-down information comprises:
[0029] The second display data is obtained by reading the upper-end page content based on the scroll-down execution instance;
[0030] The second display processing is performed on the second display data.
[0031] In a second aspect, the embodiments of the present application further provide a page content display device, which comprises:
[0032] A first processing module is configured to acquire page data and a scroll trigger instruction;
[0033] A second processing module is configured to analyze and process the scroll trigger instruction to obtain scroll direction information;
[0034] A third processing module is configured to call the page data according to the scroll direction information to obtain page content;
[0035] a fourth processing module, configured to select a corresponding execution instance from a preset scroll container according to the scroll direction information, wherein the scroll container is provided with a plurality of execution instances;
[0036] a fifth processing module, configured to perform display processing on the page content based on the execution instance.
[0037] In a third aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, the page content display method in the first aspect is implemented.
[0038] In a fourth aspect, a computer readable storage medium is provided, which stores computer executable instructions for implementing the page content display method in the first aspect.
[0039] Other features and advantages of the present application will be described in subsequent detailed description, and some will become apparent from the description, or will be understood through implementation of the present application. The purpose and other advantages of the present application can be achieved and obtained by the structure specifically pointed out in the specification, claims and drawings. BRIEF DESCRIPTION OF DRAWINGS
[0040] The accompanying drawings are used to provide a further understanding of the technical solutions of the present application, and constitute a part of the specification, and are used to explain the technical solutions of the present application together with the embodiments of the present application, and do not constitute a limitation to the technical solutions of the present application.
[0041] Figure 1 is a flowchart of a page content display method provided by an embodiment of the present application;
[0042] Figure 2 is a flowchart of analysis and processing of a scroll trigger instruction in the page content display method provided by an embodiment of the present application;
[0043] Figure 3 is a flowchart of call processing on page data in the page content display method provided by an embodiment of the present application;
[0044] Figure 4 is a flowchart of selection of an execution instance in the page content display method provided by an embodiment of the present application;
[0045] Figure 5 is a flowchart of display of page content in the page content display method provided by an embodiment of the present application;
[0046] Figure 6is a flowchart of a process of displaying a lower-end page in a page content display method provided by an embodiment of the present application;
[0047] Figure 7 is a flowchart of a process of displaying an upper-end page in a page content display method provided by an embodiment of the present application
[0048] Figure 8 is a schematic diagram of a page content display device provided by an embodiment of the present application;
[0049] Figure 9 is a schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and should not be used to limit the present application.
[0051] It should be noted that, although the functional modules are divided in the device schematic diagram, and the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a manner different from the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and above-described drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence.
[0052] It should be noted that, unless otherwise defined, all technical and scientific terms used herein have the same meaning as understood by those skilled in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0053] The embodiments of the present application can acquire and process related data based on artificial intelligence technology. Artificial intelligence (AI) is the use of digital computers or computer-controlled machines to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0054] AI is a new technical science of theories, methods, technologies and application systems for simulating, extending and expanding human intelligence; artificial intelligence is a branch of computer science, artificial intelligence attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a similar way to human intelligence, and the research in this field includes robots, language recognition, image recognition, natural language processing and expert systems. Artificial intelligence can simulate the information process of human consciousness and thinking. Artificial intelligence is also a theory, method, technology and application system for simulating, extending and expanding human intelligence by using a digital computer or a digital computer controlled machine to perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0055] The basic technology of artificial intelligence generally includes technologies such as sensors, special artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction system, mechatronics, etc. Artificial intelligence software technology mainly includes computer vision technology, robot technology, biometric technology, speech processing technology, natural language processing technology, and machine learning / deep learning, etc.
[0056] Artificial intelligence is AI, which is a theory, method, technology and application system for simulating, extending and expanding human intelligence by using a digital computer or a digital computer controlled machine to perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0057] The server involved in artificial intelligence technology can be a standalone server, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
[0058] The present application provides a page content display method and device, electronic equipment and computer readable storage medium, first, the page data and the scroll trigger instruction are acquired; then the scroll trigger instruction is analyzed and processed to obtain the scroll pointing information; then the page data is called and processed according to the scroll pointing information to obtain the page content; then the corresponding execution instance is selected from the preset scroll container according to the scroll pointing information, wherein the scroll container is provided with a plurality of execution instances; finally, the page content is displayed and processed based on the corresponding execution instance; through the above technical solution, the corresponding execution instance is selected from the scroll container based on the scroll pointing information, so that the page content can be loaded and displayed stably and quickly, and the user has a better use experience.
[0059] The page content display method provided in the embodiments of the present application relates to the technical field of data processing. The page content display method provided in the embodiments of the present application can be applied to a terminal, can be applied to a server end, and can also be software running in the terminal or the server end. In some embodiments, the terminal can be a smart phone, a tablet computer, a notebook computer, a desktop computer, etc.; the server end can be configured as a stand-alone physical server, can be configured as a server cluster or a distributed system formed by multiple physical servers, can also be configured as a cloud server providing basic cloud computing services such as cloud service, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and big data and artificial intelligence platform; and the software can be an application that implements the page content display method, but is not limited to the above forms.
[0060] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in a distributed computing environment, in which tasks are performed by remote processing devices connected by a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.
[0061] It should be noted that in each specific embodiment of the present application, when relevant processing needs to be performed according to user information, user behavior data, user history data, and user location information, etc. related to the identity or characteristics of the user, the user's permission or consent will be obtained first, and the collection, use and processing of the data will comply with relevant laws, regulations and standards of the country and region. In addition, when the embodiments of the present application need to obtain sensitive personal information of the user, the separate permission or separate consent of the user will be obtained through a pop-up window or a jump to a confirmation page, and after obtaining the separate permission or separate consent of the user, the necessary user-related data for enabling the embodiments of the present application to normally operate will be obtained.
[0062] The embodiments of the present application will be further described below with reference to the accompanying drawings.
[0063] As shown in Figure 1 Figure 1 is a flowchart of a page content display method provided by an embodiment of the present application, which includes but is not limited to steps S100 to S500.
[0064] In step S100, page data and a scroll triggering instruction are acquired.
[0065] In step S200, the scroll triggering instruction is analyzed to obtain scroll pointing information.
[0066] In step S300, the page data is called according to the scroll pointing information to obtain page content.
[0067] In step S400, a corresponding execution instance is selected from a preset scroll container according to the scroll pointing information, wherein the scroll container is provided with a plurality of execution instances.
[0068] In step S500, the page content is displayed based on the corresponding execution instance.
[0069] It should be noted that first, the page data and the scroll triggering instruction are acquired; then the scroll triggering instruction is analyzed to obtain the scroll pointing information; then the page data is called according to the scroll pointing information to obtain the page content; then a corresponding execution instance is selected from a preset scroll container according to the scroll pointing information, wherein the scroll container is provided with a plurality of execution instances; finally, the page content is displayed based on the corresponding execution instance. Through the above technical solution, the corresponding execution instance is selected from the scroll container based on the scroll pointing information, so that the page content can be stably and quickly loaded and displayed, providing a better user experience.
[0070] It should be noted that the page content display can be applied to a terminal device, which can be a mobile terminal. The mobile terminal can be a mobile phone, a tablet computer, or other touch screen devices. Any device that can display content by touch screen sliding is a terminal device in the embodiments of the present application. The way in which the terminal device receives the touch screen instruction is a prior art and will not be described here.
[0071] It should be noted that the page data is data existing in the terminal device, which can be stored in the memory of the terminal device. When the page data needs to be acquired, it can be read from the memory of the terminal device to obtain the corresponding page data.
[0072] It should be noted that the scroll triggering instruction is an instruction generated by the touch screen of the terminal device when it receives the sliding operation of the user. The touch screen generates the corresponding instruction when it receives the triggering operation of the user, which is a prior art and will not be described here.
[0073] It can be understood that the scroll trigger instruction generated by the terminal device is analyzed to obtain the corresponding scroll pointing information; according to the scroll pointing information, the page data can be called to obtain the corresponding page content. Then, the corresponding execution instance can be selected from the preset scroll container according to the scroll pointing information, and finally the corresponding page content can be displayed according to the corresponding execution instance.
[0074] It is worth noting that the scroll container is arranged in the terminal device, and the scroll container can be understood as an architecture, and the scroll container is provided with a plurality of execution instances, and the corresponding execution instance can be selected from the scroll container based on different scroll pointing information.
[0075] It can be understood that the page data in the terminal device is called according to the scroll pointing information, and the corresponding data in the page data is selected as the data to be displayed in the page content.
[0076] It is worth noting that the page content can be displayed through the user interface of the terminal device; wherein the user interface refers to the overall design of the man-machine interaction, operation logic and interface beauty of software. The user interface is the medium for interaction and information exchange between the system and the user, which realizes the conversion between the internal form of information and the form acceptable by human beings. The user interface is the software related to the interaction and communication between the user and the hardware design, and the purpose is to enable the user to conveniently and efficiently operate the hardware to achieve two-way interaction, complete the work expected to be completed by the hardware, and the user interface definition is wide, including human-computer interaction and graphical user interface. The field of information exchange between human and machine exists user interface. The user and the system generally interact with problem-oriented restricted natural language, and currently some systems start to develop a new generation of user interface by using multimedia technology.
[0077] In some embodiments, as shown in Figure 2 The step S200 can include but is not limited to steps S210-S220.
[0078] Step S210, in the case that the scroll trigger instruction includes an up scroll flag bit, the scroll trigger instruction is subjected to first flag bit searching to obtain up scroll information;
[0079] Step S220, in the case that the scroll trigger instruction includes a down scroll flag bit, the scroll trigger instruction is subjected to second flag bit searching to obtain down scroll information.
[0080] It should be noted that the scroll direction information includes scroll up information or scroll down information; in the process of analyzing the scroll trigger instruction, in the case that the scroll trigger instruction includes an up mark bit, the scroll up information is obtained by performing first mark bit searching processing on the scroll trigger instruction; in the case that the scroll trigger instruction includes a down mark bit, the scroll down information is obtained by performing second mark bit searching processing on the scroll trigger instruction. In the case that the scroll trigger instruction includes an up mark bit, the up mark bit is searched in the process of first mark bit searching, and in the case that the up mark bit is searched, the scroll up information is obtained; in the case that the scroll trigger instruction includes a down mark bit, the down mark bit is searched in the process of second mark bit searching, and in the case that the down mark bit is searched, the scroll down information is obtained.
[0081] It can be understood that the scroll trigger instruction includes an up mark bit or a down mark bit, and in the process of mark bit searching on the scroll trigger instruction, the mark bit in the scroll trigger instruction is searched and determined; in the case that the scroll trigger instruction includes an up mark bit, the scroll up information is obtained, and in the case that the scroll trigger instruction includes a down mark bit, the scroll down information is obtained.
[0082] It should be noted that the first mark bit searching processing and the second mark bit searching processing are only used to distinguish different execution objects, and do not represent different execution manners, and the two can be the same execution manner.
[0083] In some embodiments, as shown in FIG. 3B, the page content includes upper end page content and lower end page content, and the step S300 can include but is not limited to steps S310-S320. Figure 3
[0084] Step S310, in the case that the scroll direction information includes scroll up information, performing first selected processing on the page data to obtain the lower end page content;
[0085] Step S320, in the case that the scroll direction information includes scroll down information, performing second selected processing on the page data to obtain the upper end page content.
[0086] It should be noted that the page content includes upper end page content and lower end page content; in the case that the scroll direction information includes scroll up information, the first selected processing is performed on the page data to obtain the lower end page content; in the case that the scroll direction information includes scroll down information, the second selected processing is performed on the page data to obtain the upper end page content.
[0087] It can be understood that, in the process of analyzing and selecting the scroll direction information, when the scroll direction information includes the scroll-up information, the page data is subjected to the first selection processing, so as to obtain the lower-end page content, i.e., the user can display the lower-end page content in the scroll-up process.
[0088] It is worth noting that the page content includes the upper-end page content and the lower-end page content; the upper-end page content is the content that can be displayed by the user in the scroll-down process; and the lower-end page content is the content that can be displayed by the user in the scroll-up process.
[0089] It is worth noting that the first selection processing and the second selection processing are only used to distinguish different execution objects, and do not mean that the two are different execution modes; the two can be the same execution mode.
[0090] In some embodiments, as shown in Figure 4 The step S400 can include, but is not limited to, the step S410 and the step S420.
[0091] The step S410 selects the scroll-up execution instance from the scroll container when the scroll direction information includes the scroll-up information.
[0092] The step S420 selects the scroll-down execution instance from the scroll container when the scroll direction information includes the scroll-down information.
[0093] It is to be noted that the scroll container is provided with a plurality of execution instances, including the scroll-up execution instance and the scroll-down execution instance; when the scroll direction information includes the scroll-up information, the scroll-up execution instance is selected from the scroll container; and when the scroll direction information includes the scroll-down information, the scroll-down execution instance is selected from the scroll container.
[0094] It can be understood that the scroll-up execution instance and the scroll-down execution instance are both execution instances provided in the scroll container; the scroll-up execution instance is used to adjust and display the page content according to the scroll-up information; and the scroll-down execution instance is used to adjust and display the page content according to the scroll-down information. For example, when the scroll direction information includes the scroll-up information, the scroll-up execution instance is selected from the scroll container; and when the scroll direction information includes the scroll-down information, the scroll-down execution instance is selected from the scroll container.
[0095] It is worth noting that the scroll-up execution instance and the scroll-down execution instance are both execution instances in the scroll container, and can be selected according to the scroll direction information.
[0096] In some embodiments, as shown in Figure 5As shown, the step S500 can be followed by, but not limited to, a step S510 and a step S520.
[0097] The step S510 is to perform a first display processing on the lower-end page content based on the scroll-up execution instance in a case where the scroll direction information includes the scroll-up information.
[0098] The step S520 is to perform a second display processing on the upper-end page content based on the scroll-down execution instance in a case where the scroll direction information includes the scroll-down information.
[0099] It is to be noted that the first display processing is performed on the lower-end page content based on the scroll-up execution instance in a case where the scroll direction information includes the scroll-up information, and the second display processing is performed on the lower-end page content based on the scroll-down execution instance in a case where the scroll direction information includes the scroll-down information, so as to realize the display processing on the corresponding page content.
[0100] It is to be noted that the scroll direction information includes the scroll-up information or the scroll-down information, the first display processing is performed on the lower-end page content based on the scroll-up execution instance in a case where the scroll direction information includes the scroll-up information, and the second display processing is performed on the upper-end page content based on the scroll-down execution instance in a case where the scroll direction information includes the scroll-down information.
[0101] It is to be noted that the first display processing and the second display processing are only used to distinguish different execution subjects, and do not represent different display manners, which will not be described herein.
[0102] In some embodiments, as shown, Figure 6 The step S510 can include, but not limited to, a step S511, a step S512 and a step S513.
[0103] The step S511 is to perform a reading processing on the lower-end page content based on the scroll-up execution instance to obtain first display data.
[0104] The step S512 is to compare the length of the first display data with the length of an array corresponding to the lower-end page content.
[0105] The step S513 is to perform a first display processing on the corresponding first display data in a case where the length of the first display data is less than the length of the array, or perform a first display processing on the first display data and a preset bottom touch prompt in a case where the length of the first display data is equal to the length of the array.
[0106] It should be noted that, in the case that the scroll direction information includes scroll-up information, the lower end page content is first read based on the scroll-up execution instance to obtain first display data, and then the length of the first display data is compared with the length of the array corresponding to the lower end page content. Finally, in the case that the length of the first display data is less than the length of the array, the first display data is first displayed; or in the case that the length of the first display data is equal to the length of the array, the first display data and the preset bottom prompt are first displayed.
[0107] It should be noted that, in the case that the scroll direction information includes scroll-up information, the lower end page content is first read based on the scroll-up execution instance to obtain first display data, and then the length of the first display data is compared with the length of the array corresponding to the lower end page content. Finally, in the case that the length of the first display data is less than the length of the array, the first display data is first displayed; or in the case that the length of the first display data is equal to the length of the array, the first display data and the preset bottom prompt are first displayed.
[0108] In some embodiments, as shown in Figure 7 The step S520 can include, but is not limited to, step S521 and step S522.
[0109] Step S521, reading the upper end page content based on the scroll-down execution instance to obtain second display data;
[0110] Step S522, second display processing of the second display data.
[0111] It should be noted that, in the case that the scroll direction information includes scroll-down information, the upper end page content is second displayed based on the scroll-down execution instance; first, the upper end page content is read based on the scroll-down execution instance to obtain second display data, and then the second display data is second displayed.
[0112] It should be noted that, in the case that the scroll direction information includes scroll-down information, the upper end page content is second displayed based on the scroll-down execution instance; first, the upper end page content is read based on the scroll-down execution instance to obtain second display data, and then the second display data is second displayed.
[0113] In addition, as shown in Figure 8 An embodiment of the present application further provides a page content display device 10, comprising:
[0114] The first processing module 100 is configured to acquire page data and a scroll triggering instruction;
[0115] The second processing module 200 is configured to analyze and process the scroll triggering instruction to obtain scroll direction information;
[0116] The third processing module 300 is configured to call and process the page data according to the scroll direction information to obtain page content;
[0117] The fourth processing module 400 is configured to select a corresponding execution instance from a preset scroll container according to the scroll direction information, wherein the scroll container is provided with a plurality of execution instances;
[0118] The fifth processing module 500 is configured to display and process the page content based on the corresponding execution instance.
[0119] It should be noted that the page data and the scroll triggering instruction are acquired first, then the scroll triggering instruction is analyzed and processed to obtain the scroll direction information, then the page data is called and processed according to the scroll direction information to obtain the page content, then the corresponding execution instance is selected from the preset scroll container according to the scroll direction information, wherein the scroll container is provided with a plurality of execution instances, and finally the page content is displayed and processed based on the corresponding execution instance. Through the above technical solution, the corresponding execution instance is selected from the scroll container based on the scroll direction information, so that the page content can be loaded and displayed stably and quickly, and users have a better use experience.
[0120] It should be noted that the page content display can be applied to a terminal device, and the terminal device can be a mobile terminal. The mobile terminal can be a mobile phone, a tablet computer or other touch screen devices. Any device that can display content by touch screen sliding is a terminal device in the embodiments of the present application. The terminal device receives touch screen instructions in the prior art, which will not be described here.
[0121] It should be noted that the page data is data existing in the terminal device, and the page data can be stored in the memory of the terminal device. When the page data needs to be acquired, it can be read from the memory of the terminal device to obtain the corresponding page data.
[0122] It should be noted that the scroll triggering instruction is an instruction generated by the touch screen of the terminal device when receiving the sliding operation of the user. The touch screen generates the corresponding instruction when receiving the triggering operation of the user, which is a prior art and will not be described here.
[0123] It can be understood that the scroll trigger instruction generated by the terminal device is analyzed to obtain the corresponding scroll direction information; according to the scroll direction information, the page data can be called to obtain the corresponding page content. Then, the corresponding execution instance can be selected from the preset scroll container according to the scroll direction information, and finally the corresponding page content can be displayed according to the corresponding execution instance.
[0124] It is worth noting that the scroll container is arranged in the terminal device, and the scroll container can be understood as an architecture, and the scroll container is provided with a plurality of execution instances, and the corresponding execution instance can be selected from the scroll container based on different scroll direction information.
[0125] It can be understood that the page data in the terminal device is called according to the scroll direction information, and the corresponding data in the page data is selected as the data to be displayed in the page content.
[0126] It is worth noting that the page content can be displayed through the user interface of the terminal device; wherein the user interface refers to the overall design of the man-machine interaction, operation logic and interface beauty of software. The user interface is a medium for interaction and information exchange between the system and the user, which realizes the conversion between the internal form of information and the form acceptable by human beings. The user interface is the software related to the interaction and communication between the user and the hardware design, and the purpose is to enable the user to conveniently and efficiently operate the hardware to achieve two-way interaction, complete the work expected to be completed by the hardware, and the user interface definition is wide, including human-computer interaction and graphical user interface. The field of information exchange between human and machine exists user interface. The user and the system generally interact with problem-oriented restricted natural language, and currently some systems start to develop a new generation of user interface by using multimedia technology.
[0127] The specific embodiments of the page content display device are basically the same as the specific embodiments of the above-mentioned page content display method, and will not be repeated here.
[0128] In addition, as shown in Figure 9 One embodiment of the present application also provides an electronic device 700, which comprises a memory 720, a processor 710 and a computer program stored in the memory 720 and executable on the processor 710.
[0129] The processor 710 and the memory 720 can be connected by a bus or other means.
[0130] The non-transitory software program and instructions required to implement the page content display method of the above-mentioned embodiments are stored in the memory 720, and when executed by the processor 710, the page content display method of each embodiment is executed, for example, the page content display method described above is executed.Figure 1 Method steps S100 to S500 Figure 2 Method steps S210 to S220, Figure 3 Method steps S310 to S320 in the text Figure 4 Method steps S410 to S420 in the text Figure 5 Method steps S510 to S520 in the text Figure 6 Method steps S511 to S513 and Figure 7 Method steps S521 to S522.
[0131] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0132] Furthermore, one embodiment of this application also provides a computer-readable storage medium storing computer-executable instructions that are executed by a processor 710 or a controller, for example, by a processor 710 in the above-described device embodiment, causing the processor 710 to perform the page content display method in the above-described embodiment, for example, performing the above-described... Figure 1 Method steps S100 to S500 Figure 2 Method steps S210 to S220, Figure 3 Method steps S310 to S320 in the text Figure 4 Method steps S410 to S420 in the text Figure 5 Method steps S510 to S520 in the text Figure 6 Method steps S511 to S513 and Figure 7 Method steps S521 to S522.
[0133] The above embodiments can be used in combination, and modules with the same name in different embodiments may be the same or different.
[0134] The foregoing has described specific embodiments of this application; other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims may be performed in a different order than those shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily have to follow the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0135] The various embodiments herein are described in a progressive manner, and the same or similar parts between various embodiments can be referred to each other, and each embodiment focuses on the difference from other embodiments. In particular, for the device, equipment, and computer readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.
[0136] The device, equipment, computer readable storage medium, and method provided by the embodiments of the present application are corresponding, and therefore, the device, equipment, and non-volatile computer storage medium also have similar beneficial technical effects as the corresponding method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the corresponding device, equipment, and computer storage medium will not be described here.
[0137] In the 1990s, it was relatively easy to distinguish whether an improvement in a technology was a hardware improvement (e.g., an improvement in the circuit structure of a diode, transistor, switch, etc.) or a software improvement (an improvement in a method flow). However, as technology has evolved, many improvements in method flows today can be considered as direct improvements in hardware circuit structures. Designers almost always obtain the corresponding hardware circuit structures by programming the improved method flows into hardware circuits. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using hardware entity modules. For example, a programmable logic device (PLD) (e.g., a field programmable gate array (FPGA)) is an integrated circuit whose logic function is determined by user programming of the device. A digital system is "integrated" on a PLD by the designer programming the PLD, rather than by ordering a chip manufacturer to design and fabricate a custom integrated circuit chip. Moreover, instead of manually fabricating integrated circuit chips, this programming is now mostly implemented using "logic compiler" software, which is similar to software compilers used in program development, and the original code to be compiled is written in a specific programming language, which is called a hardware description language (HDL), and there are many such languages, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., and the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should be aware that, as long as the method flow is logically programmed in the above-mentioned hardware description languages and programmed into an integrated circuit, a hardware circuit implementing the logical method flow can be easily obtained.
[0138] The controller can be implemented in any suitable way, for example, the controller can take the form of a microprocessor or processor and a computer readable medium storing computer readable program code, such as software or firmware, executable by the (micro)processor, logic gates, switches, an application specific integrated circuit (ASIC), a programmable logic controller and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that, in addition to being implemented in pure computer readable program code, the controller can also be implemented to perform the same functions in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded microcontrollers, etc. by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can even be considered as both a software module implementing a method and a structure within a hardware component.
[0139] The systems, apparatuses, modules or units illustrated by the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0140] For the sake of brevity, the above apparatuses are described in functional form in various units. Of course, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0141] Those skilled in the art will understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the embodiments of the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
[0142] The specification and drawings are illustrative and are not to be construed as limiting. Numerous specific details are described to provide a thorough understanding of the present disclosure. However, in certain instances, well known methods, procedures, components and circuits have not been described in detail so as not to unnecessarily obscure aspects of the present disclosure. The present specification is directed to one or more methods, devices (systems), and computer program products related to the processing of data. The specification and drawings are illustrative and are not to be construed as limiting. Numerous specific details are described to provide a thorough understanding of the present disclosure. However, in certain instances, well known methods, procedures, components and circuits have not been described in detail so as not to unnecessarily obscure aspects of the present disclosure. Figure 1 2. One or more operations of one or more of the Figure 2 2. Means for performing the function of one or more of the 2. One or more operations of one or more of the
[0143] 2. Means for performing the function of one or more of the Figure 3 2. One or more operations of one or more of the Figure 4 2. Means for performing the function of one or more of the 2. One or more operations of one or more of the
[0144] 2. Means for performing the function of one or more of the Figure 5 2. One or more operations of one or more of the Figure 6 Figure 7 Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 2. Means for performing the function of one or more of the 2. One or more operations of one or more of the
[0145] 2. Means for performing the function of one or more of theIn one configuration, the computing device includes one or more processors (CPU), input / output interface, network interface, and memory. 2. One or more operations of one or more of the
[0146] 2. Means for performing the function of one or more of theThe memory can include non-persistent memory and / or volatile memory, such as random access memory (RAM) and / or cache memory, non-volatile memory, etc. in the form of computer-readable media. The memory is an example of computer-readable media. 2. One or more operations of one or more of the
[0147] 2. Means for performing the function of one or more of theComputer-readable media includes permanent and non-permanent, movable and non-movable media, which can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.
[0148] It should also be noted that the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, so that processes, methods, articles or devices including a series of elements not only include those elements, but also include other elements not explicitly listed, or inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0149] In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. The association relationship between the associated objects is described by "and / or", which means that there can be three kinds of relationships, for example, A and / or B, which can represent the cases of A alone, A and B together, and B alone. Wherein A, B can be singular or plural. The character " / " generally represents that the associated objects before and after are in an "or" relationship. "At least one of the following" and the like means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.
[0150] Embodiments of the present application can be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, and the like, that perform particular tasks or implement particular abstract data types. Embodiments of the present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including memory storage devices.
[0151] Various embodiments in the present application are described with progressive manner, and the same or similar parts among various embodiments can be referred to each other. Each embodiment focuses on the difference from other embodiments. Especially, the system embodiments are described simply because they are basically similar to the method embodiments, and the related parts can be referred to the description of the method embodiments.
[0152] The above only describes the embodiments of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.
Claims
1. A method for displaying page content, characterized in that, The method comprises: acquiring page data and a scroll triggering instruction; analyzing and processing the scroll triggering instruction to obtain scroll pointing information; calling and processing the page data according to the scroll pointing information to obtain page content; selecting a corresponding execution instance from a preset scroll container according to the scroll pointing information, wherein the scroll container is provided with a plurality of execution instances; displaying and processing the page content based on the corresponding execution instance; specifically, when the scroll pointing information comprises scroll-up information, first displaying and processing the lower-end page content based on the scroll-up execution instance. The page content comprises the lower-end page content, and the scroll container is provided with the scroll-up execution instance; the first display and processing of the lower-end page content based on the scroll-up execution instance comprises: reading and processing the lower-end page content based on the scroll-up execution instance to obtain first display data; comparing the length of the first display data with the length of an array corresponding to the lower-end page content; first displaying and processing the corresponding first display data when the length of the first display data is less than the length of the array, or first displaying and processing the first display data and a preset bottom touch prompt when the length of the first display data is equal to the length of the array.
2. The method of claim 1, wherein, The scroll pointing information comprises scroll-up information or scroll-down information; the analysis and processing of the scroll triggering instruction to obtain scroll pointing information comprises: first marker bit lookup processing of the scroll triggering instruction to obtain the scroll-up information when the scroll triggering instruction comprises a scroll-up marker bit; second marker bit lookup processing of the scroll triggering instruction to obtain the scroll-down information when the scroll triggering instruction comprises a scroll-down marker bit.
3. The method of claim 2, wherein, The page content further comprises upper-end page content; the calling and processing of the page data according to the scroll pointing information to obtain page content comprises: first selection processing of the page data to obtain the lower-end page content when the scroll pointing information comprises scroll-up information; second selection processing of the page data to obtain the upper-end page content when the scroll pointing information comprises scroll-down information.
4. The method of claim 3, wherein, The scroll container is further provided with a scroll-down execution instance; the selection of a corresponding execution instance from a preset scroll container according to the scroll pointing information comprises: selecting the scroll-up execution instance from the scroll container when the scroll pointing information comprises scroll-up information; selecting the scroll-down execution instance from the scroll container when the scroll pointing information comprises scroll-down information.
5. The method of claim 4, wherein, The display and processing of the page content based on the execution instance further comprises: second display and processing of the upper-end page content based on the scroll-down execution instance when the scroll pointing information comprises scroll-down information.
6. The method of claim 5, wherein, The second display processing of the upper end page content based on the pull-down execution instance in the case that the scroll direction information comprises scroll down information comprises: The second display data is obtained by reading the upper end page content based on the pull-down execution instance; The second display data is subjected to second display processing.
7. A page content presentation apparatus characterized by comprising: The device comprises: The first processing module is configured to acquire page data and a scroll trigger instruction; The second processing module is configured to analyze the scroll trigger instruction to obtain scroll direction information; The third processing module is configured to call the page data according to the scroll direction information to obtain page content; The fourth processing module is configured to select a corresponding execution instance from a preset scroll container according to the scroll direction information, wherein the scroll container is provided with a plurality of execution instances; The fifth processing module is configured to display the page content based on the execution instance; specifically, in the case that the scroll direction information comprises scroll up information, the lower end page content is subjected to first display processing based on the scroll up execution instance. The page content comprises the lower end page content, and the scroll container is provided with the scroll up execution instance; the first display processing of the lower end page content based on the scroll up execution instance comprises: The first display data is obtained by reading the lower end page content based on the scroll up execution instance; The length of the first display data is compared with the length of an array corresponding to the lower end page content; In the case that the length of the first display data is less than the length of the array, the corresponding first display data is subjected to first display processing; or in the case that the length of the first display data is equal to the length of the array, the first display data and a preset bottom touch prompt are subjected to first display processing.
8. An electronic device comprising: The memory, the processor and the computer program stored in the memory and capable of running on the processor are characterized in that the processor executes the computer program to implement the page content display method of any one of claims 1 to 6.
9. A computer-readable storage medium storing computer-executable instructions, the computer-executable instructions comprising: The computer executable instructions are used to execute the page content display method of any one of claims 1 to 6.
Citation Information
Patent Citations
Page information processing method and device and electronic equipment
CN113312545A
Loading method and loading device of list data, electronic equipment and storage medium
CN114756791A