Information display method and device, electronic equipment and computer readable storage medium
By presetting the content of the first page and displaying the second page, and updating the content of the first page in response to the trigger operation of the second page, the problem of low page switching efficiency in traditional technology is solved, and more efficient page switching is achieved. Computer running speed.
Patent Information
- Application Number
- CN202310963706.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-01
- Publication Date
- 2025-02-14
AI Technical Summary
In traditional technology, page switching is low efficiency, and users need to frequently switch pages when viewing application information, which is cumbersome.
By displaying the first page, obtaining the first target content on the first page, presetting it, obtaining the second target content, displaying the second page corresponding to the second target content, and triggering in response to the preset of the second page Action, display the first page and update its content.
It realizes that two steps are executed through one trigger operation instruction, thereby reducing the number of triggers to the second page, improving page switching efficiency, reducing computer processing complexity, and improving computer running speed.
Smart Images

Figure CN119440682A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an information display method, device, electronic device and computer-readable storage medium. Background Art
[0002] With the continuous development of Internet technology, especially the increasing popularity of electronic devices represented by smartphones, people's lives have been greatly facilitated. At the same time, various applications installed on electronic devices are also emerging in an endless stream. When users view various application information, they will process the current screen information. After the processing is completed, they return to the initial page to continue viewing the information on the subsequent screens, and then process the information again, involving frequent switching between pages. The page switching efficiency in traditional technologies is low. Summary of the invention
[0003] The embodiments of the present application provide an information display method, device, electronic device, and computer-readable storage medium, which can improve page switching efficiency.
[0004] In a first aspect, the present application provides an information display method. The method comprises:
[0005] Display a first page, and obtain first target content on the first page;
[0006] Performing preset processing on the first target content to obtain second target content, and displaying a second page corresponding to the second target content;
[0007] In response to a preset trigger operation on the second page, the first page is displayed, and content displayed on the first page is updated according to the preset trigger operation.
[0008] In a second aspect, the present application also provides an information display device. The device comprises:
[0009] A target content acquisition module, used to display a first page and acquire first target content on the first page;
[0010] A second page display module, configured to perform preset processing on the first target content, obtain second target content, and display a second page corresponding to the second target content;
[0011] The first page display module is used to display the first page in response to a preset trigger operation on the second page, and update the content displayed on the first page according to the preset trigger operation.
[0012] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0013] Display a first page, and obtain first target content on the first page;
[0014] Performing preset processing on the first target content to obtain second target content, and displaying a second page corresponding to the second target content;
[0015] In response to a preset trigger operation on the second page, the first page is displayed, and content displayed on the first page is updated according to the preset trigger operation.
[0016] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0017] Display a first page, and obtain first target content on the first page;
[0018] Performing preset processing on the first target content to obtain second target content, and displaying a second page corresponding to the second target content;
[0019] In response to a preset trigger operation on the second page, the first page is displayed, and content displayed on the first page is updated according to the preset trigger operation.
[0020] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0021] Display a first page, and obtain first target content on the first page;
[0022] Performing preset processing on the first target content to obtain second target content, and displaying a second page corresponding to the second target content;
[0023] In response to a preset trigger operation on the second page, the first page is displayed, and content displayed on the first page is updated according to the preset trigger operation.
[0024] The above-mentioned information display method, device, electronic device, and computer-readable storage medium obtain the first target content on the first page by displaying the first page; perform preset processing on the first target content to obtain the second target content, and display the second page corresponding to the second target content; in response to the preset trigger operation on the second page, the first page is displayed, and the content displayed on the first page is updated according to the preset trigger operation. The present application can achieve that when switching from the second page to the first page, by responding to the preset trigger operation on the second page once, the first page can be switched to be displayed, and the updated content of the first page can be displayed accordingly, that is, two steps can be executed correspondingly through one trigger operation instruction, thereby reducing the number of triggers on the second page on the basis of achieving the same effect, which can improve the efficiency of page switching, and at the same time can reduce the processing complexity of the computer and improve the computer running speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 is a flow chart of an information display method in an embodiment;
[0027] Figure 2 is a flow chart of step 104 in one embodiment;
[0028] Figure 3 is a flow chart of an information display method in another embodiment;
[0029] Figure 4 is a flow chart of an information display method in another embodiment;
[0030] Figure 5 is a structural block diagram of an information display device in an embodiment;
[0031] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0033] When a user views information on page A, information processing is triggered and the user enters page B. When the user wants to return to page A to continue viewing the remaining information, the user needs to return to page A through the return operation and then slide on page A to view the remaining information on page A. The operation is too cumbersome and the efficiency of page switching is not high.
[0034] Based on this, the present application provides an information display method, which displays a first page, obtains the first target content on the first page, performs preset processing on the first target content, obtains the second target content, displays the second page corresponding to the second target content, and displays the first page in response to a preset trigger operation on the second page. The content displayed on the first page is updated according to the preset trigger operation. When switching from the second page to the first page, it can be achieved by responding to the preset trigger operation on the second page once to switch to display the updated content of the first page, thereby improving the page switching efficiency.
[0035] The information display method provided in the embodiment of the present application is described by taking the operation on an electronic device including a display screen as an example. The electronic device may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc.
[0036] In one embodiment, Figure 1 As shown, an information display method is provided, including the following steps 102 to 106.
[0037] Step 102: display a first page and obtain first target content on the first page.
[0038] The electronic device displays a first page, and the first page is used to present content for the user to browse. The content of the first page may be the content corresponding to the application on the electronic device, and the application may be a third-party application or a system application. It is understandable that the content browsed by the user is not limited to the content currently presented on the first page, that is, at different times, the content corresponding to the first page may be different. For example, the electronic device responds to the user triggering the sliding control on the first page and slides the content accordingly. The content presented on the first page will change and update as the sliding control slides.
[0039] The first target content is obtained from the first page. The first target content may be all the content on the first page or part of the content. Optionally, the content selected by the user on the first page is obtained as the first target content. Alternatively, the content on the first page that meets a preset condition is obtained as the first target content. The first target content on the first page may be obtained by text extraction or screenshot.
[0040] In an actual application scenario, a user views news content in a news application, and the first page presents content in the news content corresponding to the first page size. In response to the user triggering the sliding control, the first page presents news content of different pages. The user selects part of the news content in the first page, and the electronic device obtains the part of the news content as the first target content.
[0041] Step 104 , performing preset processing on the first target content to obtain second target content, and displaying a second page corresponding to the second target content.
[0042] The electronic device performs preset processing on the acquired first target content to obtain the corresponding second target content, and displays the second page corresponding to the second target content. Preset processing refers to processing the first target content in a preset processing manner to obtain the second target content. The preset processing may be, for example, translation processing, link opening processing, or synonym resolution processing. Exemplarily, in the case where the preset processing is translation processing, the first target content is translated into the target language to obtain the second target content in the corresponding target language; in the case where the preset processing is link opening processing, when the first target content is identified as a link, the link is opened to obtain the second target content corresponding to the link; in the case where the preset processing is synonym resolution processing, the first target content is synonymously resolved to obtain the resolution result after the synonym resolution, and the resolution result is used as the second target content.
[0043] Optionally, the second page may be displayed over the first page, or the first page may be hidden and the second page may be displayed. Alternatively, the second page and the first page may be displayed simultaneously on the screen of the electronic device.
[0044] Optionally, in response to triggering the information processing control on the first page, the first target content can be pre-processed to obtain the second target content; or, after the user triggers the first page, when the content corresponding to the first page no longer changes, the first target content is preset-processed to obtain the second target content.
[0045] Step 106 , in response to a preset trigger operation on the second page, display the first page, and update the content displayed on the first page according to the preset trigger operation.
[0046] The electronic device displays the first page in response to a preset trigger operation on the second page, and updates the content displayed on the first page according to the preset trigger operation. The preset trigger operation on the second page may be a preset trigger operation performed by a user, such as a trigger operation of a sliding control of the second page by the user, a preset sliding gesture operation, or a click operation, etc.; or it may be a response to the timing duration reaching a preset duration, displaying the first page, and updating the content displayed on the first page according to the preset trigger operation.
[0047] Optionally, according to a preset trigger operation, the content displayed on the first page is updated to the content corresponding to a preset number of pages after the content initially displayed on the first page, for example, the content displayed on the first page is updated to the content corresponding to one page after the content initially displayed on the first page. The content initially displayed on the first page refers to the content displayed on the first page before the second page corresponding to the second target content is displayed. Optionally, a global gesture listener for the first page can be registered when displaying the second page corresponding to the second target content, so that the first page can be displayed in response to the preset trigger operation of the second page, and the content displayed on the first page can be updated according to the preset trigger operation.
[0048] In one example, the content initially displayed on the first page is the first page content. In response to a preset sliding gesture operation on the second page, the electronic device displays the first page and updates the content displayed on the first page to the second page content according to the preset sliding gesture operation.
[0049] In the above information display method, the first page is displayed, the first target content on the first page is obtained, the first target content is preset processed to obtain the second target content, and the second page corresponding to the second target content is displayed. In response to the preset trigger operation on the second page, the first page is displayed, and the content displayed on the first page is updated according to the preset trigger operation. It can be achieved that in response to a trigger on the second page, the corresponding display of the first page is executed, and the content displayed on the first page is updated according to the preset trigger operation. It is equivalent to executing two steps of operation through one trigger operation instruction, thereby reducing the number of trigger times for the second page, improving page switching efficiency, improving user operation efficiency, and at the same time reducing the processing complexity of the computer and improving the computer running speed.
[0050] In some embodiments, performing preset processing on the first target content to obtain the second target content includes: in response to triggering the information processing control on the first page, performing preset processing indicated by the information processing control on the first target content to obtain the second target content.
[0051] In this embodiment, an information processing control is provided on the first page, and in response to triggering the information processing control, the first target content is subjected to the preset processing indicated by the information processing control to obtain the second target content. Optionally, there may be a corresponding text mark on the information processing control, and the text mark indicates that the corresponding preset processing can be performed through the information processing control.
[0052] By setting an information processing control on the first page and performing the preset processing indicated by the information processing control on the first target content in response to the triggering of the information processing control, the efficiency of the preset processing on the first target content can be improved, thereby increasing the display speed of the second page corresponding to the second target content, facilitating user operation, and enhancing the user interaction experience.
[0053] In one embodiment, Figure 2 As shown, the first target content is preset processed to obtain the second target content, including the following steps 202 to 208.
[0054] Step 202: In response to a lift event for a first page, obtain first content corresponding to the first page.
[0055] Typically, a user interacts with an electronic device by operating the screen of the electronic device with a finger. In this embodiment, the lift event can be understood as an event corresponding to the user's finger leaving the first page of the electronic device. The electronic device responds to the lift event for the first page and obtains the first content of the first page in the current state. Optionally, the first content corresponding to the first page can be obtained by text extraction or screenshot.
[0056] Optionally, when a lift event occurs, the electronic device responds to the lift event on the first page and obtains first content corresponding to the first page by taking a screenshot, where the first content is all the content on the first page.
[0057] Step 204: Obtain the second content corresponding to the first page at a preset time interval.
[0058] At a preset time interval, the electronic device obtains the second content corresponding to the first page. The preset time interval may be, for example, 0.3 seconds, 0.5 seconds, etc., but is not limited thereto. Optionally, at a preset time interval, the electronic device obtains the second content corresponding to the first page by taking a screenshot. It is understandable that the second content corresponding to the first page may also be obtained by text extraction or taking a screenshot.
[0059] Step 206: Determine the change of the content corresponding to the first page based on the first content and the second content.
[0060] The electronic device determines the change of the content corresponding to the first page based on the first content and the second content. The change includes no longer changing and changing. Optionally, the change of the content corresponding to the first page is determined based on the similarity between the first content and the second content. For example, if the first content and the second content are similar, the change of the content corresponding to the first page is determined to be no longer changing. If the first content and the second content are not similar, the change of the content corresponding to the first page is determined to be changing.
[0061] Optionally, the change of the content corresponding to the first page can be determined by calculating the similarity between the first content and the second content, according to the size relationship between the similarity and the preset similarity. When the similarity is greater than the preset similarity, the change of the content corresponding to the first page is determined to be no longer changed; when the similarity is not greater than the preset similarity, the change of the content corresponding to the first page is determined to be changed.
[0062] Step 208: When it is determined that the content corresponding to the first page has not changed, the first target content is processed in a preset manner to obtain the second target content.
[0063] In this embodiment, when it is determined that the content corresponding to the first page is no longer changing, it means that the user's finger has left the first page and remains on the first page. It is determined that the user expects to browse the content presented on the first page where he stays, then the first target content is preset and processed to obtain the second target content.
[0064] In the above embodiment, by responding to a lift event for the first page, the first content corresponding to the first page is obtained, and the second content corresponding to the first page is obtained at intervals of a preset time, and the change of the content corresponding to the first page is determined based on the first content and the second content. When it is determined that the change of the content corresponding to the first page is no longer changing, the first target content is preset processed to obtain the second target content. This can realize automatic preset processing of the first target content to obtain the second target content, and present the second page corresponding to the second target content. This can improve the intelligence of the preset processing, improve the page switching efficiency, and thereby improve the user interaction efficiency.
[0065] In some embodiments, based on the first content and the second content, determining the change of the content corresponding to the first page includes: obtaining the similarity between the first content and the second content; when the similarity between the first content and the second content is greater than a preset similarity, determining that the change of the content corresponding to the first page is no longer changing.
[0066] The similarity between the first content and the second content is calculated, and the change of the content corresponding to the first page is determined according to the size relationship between the similarity between the first content and the second content and the preset similarity. When the similarity is greater than the preset similarity, the change of the content corresponding to the first page is determined to be no longer changed; when the similarity is not greater than the preset similarity, the change of the content corresponding to the first page is determined to be changed. The preset similarity can be set according to the actual application scenario, for example, 90%.
[0067] In this embodiment, by obtaining the similarity between the first content and the second content, when the similarity between the first content and the second content is greater than a preset similarity, it is determined that the change status of the content corresponding to the first page is no longer changing. The change status of the content corresponding to the first page can be quickly determined. When it is determined that the change status of the content corresponding to the first page is no longer changing, the first target content can be quickly preset and processed to obtain the second target content, thereby quickly displaying the second page corresponding to the second target content, thereby improving page switching efficiency.
[0068] In some embodiments, the information display method further includes: hiding the second page in response to a preset trigger operation on the second page.
[0069] In response to a preset trigger operation on the second page, the second page is hidden, the first page is displayed, and the content displayed on the first page is updated according to the preset trigger operation. Hiding the second page can be understood as not displaying the second page, for example, the second page can be closed, suspended or minimized. By hiding the second page and displaying the first page, the first page can be quickly displayed.
[0070] In some embodiments, the preset process is a translation process.
[0071] The translation process may be to translate the first language corresponding to the first target content on the first page into the second language corresponding to the second target content. For example, the first language corresponding to the first target content is English, and the second language corresponding to the second target content is Chinese. It can be understood that the first language corresponding to the first target content and the second language corresponding to the second target content are not specifically limited here and can be set according to actual conditions.
[0072] Display the first page, obtain the first target content on the first page, translate the first target content to obtain the second target content, display the second page corresponding to the second target content, display the first page in response to a preset trigger operation on the second page, and update the content displayed on the first page according to the preset trigger operation. This allows the user to translate the first target content of the first page to obtain the second target content when browsing the first page, and when it is necessary to return to the first page to continue viewing other content, display the first page in response to the preset trigger operation on the second page, and update the content displayed on the first page according to the preset trigger operation, thereby avoiding the user from triggering the first page again to view other content when returning to the first page, thereby reducing the number of page triggers, accelerating the page switching rate, improving the page switching efficiency, saving computer operating resources, and improving the computer computing rate.
[0073] In one embodiment, the first page includes a global translation control and a local translation control; obtaining the first target content on the first page includes: in response to triggering the global translation control, obtaining all the content of the first page, and using the all the content as the first target content; in response to triggering the local translation control, obtaining the selected content on the first page, and using the selected content as the first target content.
[0074] In this embodiment, the first page includes a global translation control and a local translation control, the global translation control is used to instruct the electronic device to obtain the entire content of the first page as the first target content after being triggered; the local translation control is used to instruct the electronic device to obtain the local content of the first page as the first target content after being triggered. Optionally, the local translation control instructs the electronic device to obtain the content selected by the user on the first page after being triggered, wherein the user can select the entire content on the first page.
[0075] In this embodiment, by setting a global translation control and a local translation control, the entire content or local content of the first page can be quickly determined, thereby quickly acquiring the first target content, which is conducive to speeding up the speed of obtaining the second target content, thereby quickly displaying the second page corresponding to the second target content, and improving the speed of page display and switching.
[0076] In some embodiments, after updating the content displayed on the first page according to the preset trigger operation, the step of returning to execute the step of acquiring the first target content on the first page.
[0077] In one example, a first page is displayed, first target content on the first page is obtained, in response to triggering an information processing control on the first page, preset processing is performed on the first target content to obtain second target content, a second page corresponding to the second target content is displayed, in response to a trigger operation on the second page, the first page is displayed, and the content displayed on the first page is updated according to the preset trigger operation, the user reselects the first target content on the first page, the electronic device obtains the first target content, preset processing is performed on the first target content to obtain second target content, and a second page corresponding to the second target content is displayed, in response to the preset trigger operation on the second page, the first page is displayed, and the content displayed on the first page is updated according to the preset trigger operation, the first target content is obtained again on the updated first page, and so on, and the operation is repeated until the content displayed on the first page can no longer be updated or the first page is exited.
[0078] In this embodiment, after updating the content displayed on the first page according to the preset trigger operation, returning to execute the step of obtaining the first target content on the first page, the updated content in the first page can be continuously translated, and the second page corresponding to the second target content obtained by the translation process can be displayed for the user to view, thereby improving the intelligence of the translation and the efficiency of interaction with the user.
[0079] In some embodiments, in response to a preset trigger operation on a second page, a first page is displayed, and the content displayed on the first page is updated according to the preset trigger operation, including: in response to a trigger operation of a sliding control on the second page, the first page is displayed, and the content displayed on the first page is updated according to the trigger operation of the sliding control on the second page; or, in response to a preset sliding gesture operation on the second page, the first page is displayed, and the content displayed on the first page is updated according to the preset sliding gesture operation on the second page.
[0080] In this embodiment, responding to a preset trigger operation on the second page includes responding to a trigger operation on a sliding control of the second page, or responding to a preset sliding gesture operation on the second page. Optionally, the second page is provided with a sliding control, and in response to a trigger operation on the sliding control of the second page, the first page is displayed, and the content displayed on the first page is updated according to the trigger operation on the sliding control of the second page. Exemplarily, the sliding control may be a scrolling control provided on the side of the screen.
[0081] Optionally, in response to a preset sliding gesture operation on the second page, the first page is displayed, and the content displayed on the first page is updated according to the preset sliding gesture operation on the second page.
[0082] In the above embodiment, the preset trigger operation includes a trigger operation on the sliding control of the second page or a preset sliding gesture operation on the second page. Through the user's preset trigger operation on the second page, the first page can be accurately displayed according to the user's wishes, and the content displayed on the first page can be updated according to the preset trigger operation on the second page, thereby improving the interaction efficiency with the user and the accuracy of displaying the first page.
[0083] In one embodiment, after displaying the second page corresponding to the second target content, the method further includes:
[0084] Start timing; in response to a preset trigger operation on the second page, display the first page, and update the content displayed on the first page according to the preset trigger operation, including: in response to the timing duration reaching the preset duration, display the first page, and update the content displayed on the first page according to the timing duration reaching the preset duration.
[0085] In this embodiment, in response to a preset trigger operation on the second page, the first page is displayed, and the content displayed on the first page is updated according to the preset trigger operation. The preset trigger operation includes a timing duration reaching a preset duration. The second page corresponding to the second target content is displayed, the timing is started, and in response to the timing duration reaching the preset duration, the first page is displayed, and the content displayed on the first page is updated according to the timing duration reaching the preset duration. The preset duration is used to indicate that the second target content in the second page can be browsed by the user within the preset duration. When the second page corresponding to the second target content is displayed, the timing is started, and when the timing duration reaches the preset duration, the first page is displayed, and according to the preset trigger operation when the timing duration reaches the preset duration, the content displayed on the first page is updated.
[0086] Optionally, when the second page corresponding to the second target content is displayed, timing is started. If the timing duration does not reach the preset duration, in response to a preset sliding gesture operation on the second page, the first page is displayed, and the content displayed on the first page is updated according to the preset sliding gesture operation.
[0087] Optionally, when the second page corresponding to the second target content is displayed, timing is started, and when the timing duration reaches a first preset duration, in response to a long press trigger on the second page, timing is restarted, and when the timing duration reaches the second preset duration, in response to the timing duration reaching the preset duration, the first page is displayed, and the content displayed on the first page is updated according to the timing duration reaching the preset duration.
[0088] The information display method in this embodiment automatically counts time through an electronic device. When the timing reaches a preset time, the first page is automatically displayed and the content displayed on the first page is updated, which can enhance the intelligence of page switching and improve the efficiency of page switching.
[0089] In one embodiment, the method further includes: saving the second target content to a cache.
[0090] In this embodiment, after the first target content is processed by a preset process to obtain the second target content, the second target content is saved in a cache.
[0091] In one embodiment, after acquiring the first target content on the first page, the method further includes:
[0092] Search the cache for second target content corresponding to the first target content; if the second target content corresponding to the first target content is found in the cache, obtain the second target content from the cache; if the second target content corresponding to the first target content is not found in the cache, perform preset processing on the first target content to obtain the second target content.
[0093] In this embodiment, after obtaining the first target content on the first page, the second target content corresponding to the first target content is first searched from the cache. If the second target content corresponding to the first target content is found in the cache, the second target content is obtained from the cache; if the second target content corresponding to the first target content is not found in the cache, the first target content is pre-processed to obtain the second target content. Optionally, in the first target content, the second target content corresponding to a part of the first target content may be obtained from the cache, and the second target content corresponding to another part of the first target content may be obtained by pre-processing the first target content.
[0094] In this embodiment, the second target content corresponding to the first target content is searched from the cache; if the second target content corresponding to the first target content is found in the cache, the second target content is obtained from the cache, which can speed up the acquisition of the second target content, thereby quickly displaying the second page corresponding to the second target content, thereby improving the efficiency of page switching.
[0095] In some embodiments, the method further includes: in response to a preset return operation on the second page, displaying a parent page corresponding to the first page.
[0096] The electronic device responds to the preset return operation on the second page by displaying the parent page corresponding to the first page, thereby exiting the display of the content displayed on the first page, indicating that the user exits browsing the content displayed on the first page. The preset return operation is a preset return operation of the electronic device, and the preset return operation is, for example, swiping left from the right edge of the electronic device screen. Any page displayed on the electronic device can respond to the same preset return operation to return to the parent page of the current page.
[0097] In this embodiment, in response to a preset return operation on the second page, the parent page corresponding to the first page is displayed, so that in response to the preset return operation in the second page, the user can directly return to the parent page of the first page, thereby speeding up the page switching speed and improving the page switching efficiency.
[0098] In one embodiment, Figure 3 As shown, the information display method includes the following steps 302 to 318.
[0099] Step 302: display the first page.
[0100] Step 304: in response to triggering the global translation control in the first page, all the content displayed on the first page is obtained, and all the content displayed on the first page is used as the first target content.
[0101] Step 306: in response to triggering the information processing control on the first page, the first target content is translated to obtain the second target content.
[0102] Step 308: Display a second page corresponding to the second target content.
[0103] Step 310, in response to a preset sliding gesture operation on the second page, hide the second page, display the first page, and update the content displayed on the first page.
[0104] Step 312: In response to a lift event for the first page, obtain first content corresponding to the first page.
[0105] Step 314: Obtain the second content corresponding to the first page at a preset time interval.
[0106] Step 316: When the similarity between the first content and the second content is greater than a preset similarity, determine that the change of the content corresponding to the first page is no longer changed.
[0107] Step 318: Translate the first target content to obtain the second target content.
[0108] The information display method in the above embodiment can realize the corresponding display of the first page by responding to a trigger of the second page, and updating the content displayed on the first page according to the preset sliding gesture operation, which is equivalent to executing two steps of operation through a trigger operation instruction, thereby reducing the number of triggers on the second page, improving the efficiency of page switching, improving the efficiency of user operation, and at the same time reducing the processing complexity of the computer and improving the computer operation speed. In addition, in response to the user's lifting event of the first page, by determining that the change of the content corresponding to the first page is no longer changing, the first target content is automatically translated, thereby improving the intelligence of displaying the second page, further improving the efficiency of page switching, and the efficiency of interaction with the user.
[0109] In one example, if Figure 4 As shown, the processing flow of the information display method is: the user opens an application on an electronic device to browse application information, the electronic device displays page A, obtains the information content of page A, responds to the information processing control on page A or the first preset gesture operation trigger, performs preset processing on the information content of page A, obtains the preset processed content, displays page B corresponding to the preset processed content, responds to the second preset gesture operation trigger on page B, displays the updated content of page A, the user can choose to continue to view other information on page A, the electronic device responds to the triggering of the sliding control of page A, and slides and updates the content of page A; page B registers a global gesture listener, and when it detects that the user's finger leaves the screen, performs content consistency detection, and when the content of page A no longer changes, obtains the current content of page A, automatically performs preset processing on the current content of page A, and then displays page B corresponding to the preset processed content, and loops according to the above steps until there is no content that can be updated in the browsed page A or stops when exiting page A.
[0110] The above information display method can improve the switching speed between page A and page B, thereby improving the page switching efficiency and the interaction efficiency between the user and the electronic device.
[0111] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0112] Based on the same inventive concept, the embodiment of the present application also provides an information display device for implementing the above-mentioned information display method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in one or more information display device embodiments provided below can refer to the limitations on the information display method above, and will not be repeated here.
[0113] In one embodiment, Figure 5 As shown, an information display device is provided, including: a target content acquisition module 502, a second page display module 504 and a first page display module 506, wherein:
[0114] The target content acquisition module 502 is used to display a first page and acquire first target content on the first page;
[0115] A second page display module 504 is used to perform preset processing on the first target content to obtain a second target content and display a second page corresponding to the second target content;
[0116] The first page display module 506 is used to display the first page in response to a preset trigger operation on the second page, and update the content displayed on the first page according to the preset trigger operation.
[0117] In one embodiment, the second page display module 504 is further used to: in response to triggering the information processing control on the first page, perform preset processing indicated by the information processing control on the first target content to obtain second target content.
[0118] In one embodiment, the second page display module 504 is also used to: in response to a lift event for the first page, obtain the first content corresponding to the first page; at a preset time interval, obtain the second content corresponding to the first page; based on the first content and the second content, determine the change of the content corresponding to the first page; when it is determined that the change of the content corresponding to the first page is no longer changing, perform preset processing on the first target content to obtain the second target content.
[0119] In one embodiment, the second page display module 504 is further used to: obtain the similarity between the first content and the second content; when the similarity between the first content and the second content is greater than a preset similarity, determine that the change of the content corresponding to the first page is no longer changed.
[0120] In one embodiment, the first page display module 506 is further configured to: hide the second page in response to a preset trigger operation on the second page.
[0121] In one embodiment, the first page includes a global translation control and a local translation control; the target content acquisition module 502 is further used to:
[0122] In response to triggering the global translation control, all contents of the first page are obtained, and the all contents are used as the first target content; in response to triggering the local translation control, selected contents on the first page are obtained, and the selected contents are used as the first target content.
[0123] In one embodiment, the first page display module 506 is further configured to: after updating the content displayed on the first page according to the preset trigger operation, return to the step of acquiring the first target content on the first page.
[0124] In one embodiment, the first page display module 506 is further configured to: display the first page in response to a triggering operation on the sliding control of the second page, and update the content displayed on the first page according to the triggering operation on the sliding control of the second page;
[0125] Or, in response to a preset sliding gesture operation on the second page, the first page is displayed, and the content displayed on the first page is updated according to the preset sliding gesture operation on the second page.
[0126] In one embodiment, the device further comprises a content detection module, which is used to start timing after the second page corresponding to the second target content is displayed;
[0127] The first page display module 506 is further used to: in response to the timing duration reaching a preset duration, display the first page, and update the content displayed on the first page according to the preset trigger operation.
[0128] In one embodiment, the device further includes a content saving module, configured to save the second target content to a cache.
[0129] In one embodiment, the device also includes a preset processing content search module, which is used to search for second target content corresponding to the first target content from the cache after obtaining the first target content on the first page; if the second target content corresponding to the first target content is found in the cache, the second target content is obtained from the cache; if the second target content corresponding to the first target content is not found in the cache, the first target content is preset processed to obtain the second target content.
[0130] In one embodiment, the device further includes a page return module, configured to: in response to a preset return operation on the second page, display a parent page corresponding to the first page.
[0131] Each module in the above information display device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0132] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an information display method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0133] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0134] The embodiment of the present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, the processors execute the steps of the information display method.
[0135] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the information display method.
[0136] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0137] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0138] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0139] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An information display method, characterized in that: include: Display a first page, and obtain first target content on the first page; Performing preset processing on the first target content to obtain second target content, and displaying a second page corresponding to the second target content; In response to a preset trigger operation on the second page, the first page is displayed, and content displayed on the first page is updated according to the preset trigger operation.
2. The method according to claim 1, characterized in that The performing preset processing on the first target content to obtain the second target content includes: In response to triggering the information processing control on the first page, the first target content is subjected to a preset process indicated by the information processing control to obtain a second target content.
3. The method according to claim 1, characterized in that The performing preset processing on the first target content to obtain the second target content includes: In response to a lift event for the first page, acquiring first content corresponding to the first page; After a preset time interval, obtain the second content corresponding to the first page; Determining, based on the first content and the second content, changes in content corresponding to the first page; When it is determined that the change of the content corresponding to the first page is no longer changing, the first target content is processed in a preset manner to obtain a second target content.
4. The method according to claim 3, characterized in that The determining, based on the first content and the second content, a change in content corresponding to the first page includes: Obtaining a similarity between the first content and the second content; When the similarity between the first content and the second content is greater than a preset similarity, it is determined that the change of the content corresponding to the first page is no longer changed.
5. The method according to claim 1, characterized in that The method further comprises: In response to a preset trigger operation on the second page, hiding the second page.
6. The method according to claim 1, characterized in that The preset process is a translation process.
7. The method according to claim 6, characterized in that The first page includes a global translation control and a local translation control; and obtaining the first target content on the first page includes: In response to triggering the global translation control, acquiring all contents of the first page, and using the all contents as the first target content; In response to triggering the local translation control, the selected content on the first page is acquired, and the selected content is used as the first target content.
8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: After updating the content displayed on the first page according to the preset trigger operation, return to the step of acquiring the first target content on the first page.
9. The method according to any one of claims 1 to 7, wherein in response to a preset trigger operation on the second page, displaying the first page and updating the content displayed on the first page according to the preset trigger operation comprises: In response to a triggering operation on the sliding control of the second page, displaying the first page, and updating the content displayed on the first page according to the triggering operation on the sliding control of the second page; Or, in response to a preset sliding gesture operation on the second page, the first page is displayed, and the content displayed on the first page is updated according to the preset sliding gesture operation on the second page.
10. The method according to any one of claims 1 to 7, characterized in that After displaying the second page corresponding to the second target content, the method further includes: Start the timer; The step of displaying the first page in response to a preset trigger operation on the second page, and updating content displayed on the first page according to the preset trigger operation, includes: In response to the timing duration reaching a preset duration, the first page is displayed, and the content displayed on the first page is updated according to the timing duration reaching the preset duration.
11. The method according to any one of claims 1 to 7, characterized in that The method further comprises: The second target content is saved in a cache.
12. The method according to claim 11, characterized in that After acquiring the first target content on the first page, the method further includes: searching the cache for second target content corresponding to the first target content; If a second target content corresponding to the first target content is found in the cache, acquiring the second target content from the cache; If the second target content corresponding to the first target content is not found in the cache, a step of performing preset processing on the first target content to obtain the second target content is performed.
13. The method according to claim 1, characterized in that The method further comprises: In response to a preset return operation on the second page, a parent page corresponding to the first page is displayed.
14. An information display device, characterized in that: include: A target content acquisition module, used to display a first page and acquire first target content on the first page; A second page display module, configured to perform preset processing on the first target content, obtain second target content, and display a second page corresponding to the second target content; The first page display module is used to display the first page in response to a preset trigger operation on the second page, and update the content displayed on the first page according to the preset trigger operation.
15. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 13.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.