Document display method and device and related equipment

By preloading the first-screen snapshot data of the document and utilizing the differentiated reading speed of the device's storage space, the problem of slow document opening speed in poor network conditions or with large data volume is solved, enabling fast display of the first screen content of the document and optimizing the user experience.

CN121636836APending Publication Date: 2026-03-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411230132.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

When network conditions are poor or the document data is large, existing technologies are slow to open documents, which affects the user experience.

Method used

By preloading the first-screen snapshot data of the document, the first-screen content of the document is quickly displayed, and then updated to the complete document content in subsequent updates, optimizing data loading by taking advantage of the different reading speeds of device storage space.

Benefits of technology

It significantly improves document opening speed and user experience, and reduces data loading time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121636836A_ABST
    Figure CN121636836A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a document display method and device and related equipment, and can be applied to the technical field of data processing. The method comprises the following steps: displaying a target document on a target page; in response to a document opening operation for the target document, displaying first document first screen content of the target document; the first-screen content of the first document is obtained based on first-screen snapshot data of a pre-loaded target document; the first screen snapshot data is obtained by performing snapshot cutting on first document content of the target document. By adopting the embodiment of the invention, the document opening speed can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to document display methods, apparatus and related equipment. Background Technology

[0002] For some documents that need to be obtained from network data, such as document W1 that can be operated collaboratively by multiple people, when a business object (such as user U1) opens document W1, the business terminal needs to request the backend server to obtain the complete data of document W1, and display the document content of document W1 based on the obtained complete data.

[0003] However, the inventors discovered in practice that if the document has a large amount of data or the current network conditions are poor, it will take a long time to load the complete data of document W1 when user U1 opens document W1, which will reduce the speed of opening the document. Summary of the Invention

[0004] This application provides a document display method, apparatus, and related devices that can display the first screen content of a document based on a pre-loaded first screen snapshot when the target document is opened, thereby helping to improve the document opening speed.

[0005] This application provides a document display method, the method including:

[0006] Display the target document on the target page;

[0007] In response to a document open operation for the target document, the first screen content of the target document is displayed; the first screen content is obtained based on the preloaded first screen snapshot data of the target document; the first screen snapshot data is obtained by cropping the first document content of the target document.

[0008] The first screen content of the first document is displayed on the document display page;

[0009] The method further includes:

[0010] In the document display page, the first document's initial screen content is updated and displayed as the second document's initial screen content; the second document's initial screen content is determined based on the second document content of the target document recorded in the document database; the second document content is the same as the first document content, or the second document content is obtained by updating the first document content.

[0011] The method further includes:

[0012] In the document display page, the first screen content of the second document is updated and displayed as the first screen content of the third document of the target document; the first screen content of the third document is determined based on the third document content of the target document recorded in the document server; the third document content is the same as the second document content, or the third document content is obtained by updating the content of the second document.

[0013] The step of displaying the target document on the target page includes:

[0014] The target document is displayed on the document list page of the first object; the document list page is used to display the documents that the first object has participated in collaborating on; the target document belongs to the documents that the first object has participated in collaborating on; the document list page belongs to the target page.

[0015] The step of displaying the target document on the target page includes:

[0016] The target document is displayed in the session page of the first object; the target document is a document received or sent by the first object; the session page belongs to the target page.

[0017] When displaying the target document on the target page, the method further includes:

[0018] When the preloading of the first-screen snapshot data of the target document is completed, the preloading completion identifier is displayed in the associated area of ​​the target document; the preloading completion identifier is used to indicate that the preloading of the first-screen snapshot data of the target document is completed.

[0019] The method is executed by a business device, which includes device storage space.

[0020] When displaying the target document on the target page, the method further includes:

[0021] Retrieve the first document content of the target document from the document server;

[0022] Based on the content of the first document, a snapshot is cropped to obtain the first-screen snapshot data of the target document;

[0023] The first screen snapshot data is preloaded into the device storage space of the business device.

[0024] The step of cropping the snapshot based on the content of the first document to obtain the first-screen snapshot data of the target document includes:

[0025] The content of the first document is subjected to structural transformation processing to obtain first document structure transformation data with the target data structure; the first document structure transformation data includes operation information, and the operation information includes at least: operation type information, operation location information, changed content information, and operation object information;

[0026] Obtain the first-screen view model information associated with the first-screen content of the target document, and determine the number of snapshot operations corresponding to the operation information to be preloaded based on the first-screen view model information and the first document structure transformation data;

[0027] Operation information matching the number of snapshot operations is extracted from the first document structure conversion data, and the extracted operation information is determined as the first screen snapshot data.

[0028] The method is executed by the business device, and the first screen snapshot data is stored in the device storage space of the business device.

[0029] The step of displaying the first screen content of the target document in response to a document open operation on the target document includes:

[0030] In response to a document open operation for the target document, the first-screen snapshot data of the target document is read from the device storage space;

[0031] Perform a validity check on the read first-screen snapshot data to obtain the snapshot verification result;

[0032] When the snapshot verification result indicates that the first screen snapshot data has been successfully verified, the first screen content of the target document is rendered based on the read first screen snapshot data.

[0033] The step of validating the read first-screen snapshot data to obtain the snapshot verification result includes:

[0034] Retrieve the number of snapshot operations associated with the first-screen snapshot data of the target document from the device's storage space;

[0035] The number of read operations for the first screen snapshot data is determined based on the number of operation information in the first screen snapshot data.

[0036] The number of snapshot operations and the number of read operations are compared to obtain the operation count comparison result.

[0037] If the operation count comparison result indicates that the number of snapshot operations and the number of read operations are consistent, then a snapshot verification result is determined to indicate that the first screen snapshot data verification was successful.

[0038] The step of validating the read first-screen snapshot data to obtain the snapshot verification result includes:

[0039] The operation information is determined from the read first-screen snapshot data;

[0040] If the data structure of the operation information is the target data structure, then a snapshot verification result is determined to indicate the success of the first screen snapshot data verification.

[0041] The device storage space includes a first storage space and a second storage space; the read speed of the first storage space is higher than that of the second storage space.

[0042] The step of reading the first-screen snapshot data of the target document from the device storage space in response to a document open operation for the target document includes:

[0043] In response to a document open operation for the target document, the first screen snapshot data of the target document is read from the first storage space;

[0044] If the first-screen snapshot data of the target document is not read in the first storage space, then the first-screen snapshot data of the target document is read from the second storage space.

[0045] The method is executed by the business device, and the document database is deployed on the business device;

[0046] The step of updating the first document's initial screen content to the second document's initial screen content on the document display page includes:

[0047] Obtain the second document content of the target document from the document database in the business device;

[0048] The content of the second document is subjected to structural transformation processing to obtain the second document structure-transformed data with the target data structure;

[0049] In the document display page, the second document first screen content of the target document is rendered based on the second document structure transformation data.

[0050] Wherein, updating the first screen content of the second document to the first screen content of the third document of the target document on the document display page includes:

[0051] Obtain the third document content of the target document from the document server, and store it in the document database based on the third document content of the target document;

[0052] The content of the third document is subjected to structural transformation processing to obtain the third document structure transformation data with the target data structure;

[0053] In the document display page, the third document first screen content of the target document is rendered based on the third document structure transformation data.

[0054] The method further includes:

[0055] The snapshot is cropped based on the content of the third document to obtain the first-screen snapshot update data of the target document, and the first-screen snapshot data is updated based on the first-screen snapshot update data.

[0056] One embodiment of this application provides a document display device, the device comprising:

[0057] The document display module is used to display the target document on the target page;

[0058] The first-screen content display module is used to respond to a document opening operation for the target document and display the first-screen content of the target document. The first-screen content is obtained based on the preloaded first-screen snapshot data of the target document. The first-screen snapshot data is obtained by cropping the first-screen content of the target document.

[0059] The document display device also includes: a third primary screen content display module;

[0060] The third primary screen content display module is specifically used for:

[0061] In the document display page, the first screen content of the second document is updated and displayed as the first screen content of the third document of the target document; the first screen content of the third document is determined based on the third document content of the target document recorded in the document server; the third document content is the same as the second document content, or the third document content is obtained by updating the content of the second document.

[0062] The document display module is specifically used for:

[0063] The target document is displayed on the document list page of the first object; the document list page is used to display the documents that the first object has participated in collaborating on; the target document belongs to the documents that the first object has participated in collaborating on; the document list page belongs to the target page.

[0064] The document display module is specifically used for:

[0065] The target document is displayed in the session page of the first object; the target document is a document received or sent by the first object; the session page belongs to the target page.

[0066] The document display module is also used for:

[0067] When the preloading of the first-screen snapshot data of the target document is completed, the preloading completion identifier is displayed in the associated area of ​​the target document; the preloading completion identifier is used to indicate that the preloading of the first-screen snapshot data of the target document is completed.

[0068] The method is executed by a business device, which includes device storage space.

[0069] The document display device also includes: a snapshot generation module;

[0070] The snapshot generation module is specifically used for:

[0071] Retrieve the first document content of the target document from the document server;

[0072] Based on the content of the first document, a snapshot is cropped to obtain the first-screen snapshot data of the target document;

[0073] The first screen snapshot data is preloaded into the device storage space of the business device.

[0074] The snapshot generation module is specifically used for:

[0075] The content of the first document is subjected to structural transformation processing to obtain first document structure transformation data with the target data structure; the first document structure transformation data includes operation information, and the operation information includes at least: operation type information, operation location information, changed content information, and operation object information;

[0076] Obtain the first-screen view model information associated with the first-screen content of the target document, and determine the number of snapshot operations corresponding to the operation information to be preloaded based on the first-screen view model information and the first document structure transformation data;

[0077] Operation information matching the number of snapshot operations is extracted from the first document structure conversion data, and the extracted operation information is determined as the first screen snapshot data.

[0078] The first screen content display module is specifically used for:

[0079] The step of displaying the first screen content of the target document in response to a document open operation on the target document includes:

[0080] In response to a document open operation for the target document, the first-screen snapshot data of the target document is read from the device storage space;

[0081] Perform a validity check on the read first-screen snapshot data to obtain the snapshot verification result;

[0082] When the snapshot verification result indicates that the first screen snapshot data has been successfully verified, the first screen content of the target document is rendered based on the read first screen snapshot data.

[0083] The first screen content display module is specifically used for:

[0084] Retrieve the number of snapshot operations associated with the first-screen snapshot data of the target document from the device's storage space;

[0085] The number of read operations for the first screen snapshot data is determined based on the number of operation information in the first screen snapshot data.

[0086] The number of snapshot operations and the number of read operations are compared to obtain the operation count comparison result.

[0087] If the operation count comparison result indicates that the number of snapshot operations and the number of read operations are consistent, then a snapshot verification result is determined to indicate that the first screen snapshot data verification was successful.

[0088] The first screen content display module is specifically used for:

[0089] The operation information is determined from the read first-screen snapshot data;

[0090] If the data structure of the operation information is the target data structure, then a snapshot verification result is determined to indicate the success of the first screen snapshot data verification.

[0091] The device storage space includes a first storage space and a second storage space; the read speed of the first storage space is higher than that of the second storage space.

[0092] The first screen content display module is specifically used for:

[0093] In response to a document open operation for the target document, the first screen snapshot data of the target document is read from the first storage space;

[0094] If the first-screen snapshot data of the target document is not read in the first storage space, then the first-screen snapshot data of the target document is read from the second storage space.

[0095] The method is executed by the business device, and the document database is deployed on the business device;

[0096] The second primary screen content display module is specifically used for:

[0097] Obtain the second document content of the target document from the document database in the business device;

[0098] The content of the second document is subjected to structural transformation processing to obtain the second document structure-transformed data with the target data structure;

[0099] In the document display page, the second document first screen content of the target document is rendered based on the second document structure transformation data.

[0100] The third screen content display module is specifically used for:

[0101] Obtain the third document content of the target document from the document server, and store it in the document database based on the third document content of the target document;

[0102] The content of the third document is subjected to structural transformation processing to obtain the third document structure transformation data with the target data structure;

[0103] In the document display page, the third document first screen content of the target document is rendered based on the third document structure transformation data.

[0104] The snapshot generation module is also used for:

[0105] The snapshot is cropped based on the content of the third document to obtain the first-screen snapshot update data of the target document, and the first-screen snapshot data is updated based on the first-screen snapshot update data.

[0106] One aspect of this application provides a computer-readable storage medium storing a computer program adapted to be loaded and executed by a processor, so that a computer device having the processor performs the method provided in this application.

[0107] One embodiment of this application provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method provided in this application embodiment.

[0108] In this embodiment of the application, when opening a target document, the first screen content of the document is displayed based on the preloaded document first screen snapshot data. The amount of data in the first screen snapshot data is less than the full document content, and the first screen snapshot data can be preloaded into the business device, which can quickly read the first screen snapshot data from the business device. This can greatly improve the speed of displaying the first screen content of the target document, thereby improving the speed of opening the target document. Attached Figure Description

[0109] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0110] Figure 1 This is a schematic diagram of the structure of a data processing system provided in an embodiment of this application;

[0111] Figure 2 This is a schematic diagram of a document display method provided in an embodiment of this application;

[0112] Figure 3 This is a flowchart illustrating a document display method provided in an embodiment of this application;

[0113] Figure 4 This is a schematic diagram illustrating the effect of a view model provided in an embodiment of this application;

[0114] Figure 5 This is a schematic diagram of a preloading process provided in an embodiment of this application;

[0115] Figure 6 This is a schematic diagram illustrating the effect of a target page provided in an embodiment of this application;

[0116] Figure 7 This is a schematic diagram of a scenario for an alternative document display method provided in an embodiment of this application;

[0117] Figure 8 This is a flowchart illustrating a document display method provided in an embodiment of this application;

[0118] Figure 9 This is a schematic diagram of a first-screen snapshot data generation process provided in an embodiment of this application;

[0119] Figure 10 This is a schematic diagram of a first-screen snapshot preloading process provided in an embodiment of this application;

[0120] Figure 11This is a schematic diagram of a document display process provided in an embodiment of this application;

[0121] Figure 12 This is a schematic diagram of the structure of a document display device provided in an embodiment of this application;

[0122] Figure 13 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0123] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0124] Please see Figure 1 , Figure 1 This is a schematic diagram of the structure of a data processing system provided in an embodiment of this application. For example... Figure 1 As shown, the data processing system may include terminal devices (such as device 11a, device 12a, and device 13a) and server 100a. It is understood that... Figure 1 The number of terminal devices and servers shown is merely illustrative; any number of terminal devices and servers can be used as needed. Terminal devices (such as devices 11a, 12a, and 13a) can communicate with servers via a network (i.e., through a medium providing a communication link via wired, wireless communication links, or fiber optic cables, etc.) to transmit data.

[0125] It is understandable that a client can run on a terminal device (such as device 12a), which can be a program providing local services to users (also called business objects or operation objects). Server 100a can be the server corresponding to the client, and a program running on server 100a can provide resources, service data, and other services to the client. It is understandable that the client running on the terminal device can also be called an application client, business client, etc. For example, the client running on the terminal device can be an office application client, and the document content can be viewed through the office application client. This document can be a collaborative document, for example, when user U1 opens document W1, the terminal device can display the document content obtained from the server. It is understandable that the server can receive document operations from multiple business objects on document W1 and update the document content of document W1 based on these document operations.

[0126] It is understood that terminal devices (such as device 11a) may include, but are not limited to, mobile phones, computers, smart voice interaction devices, smart home appliances, vehicle terminals, aircraft, smart speakers, etc., without limitation. Server 100a may be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms, without limitation.

[0127] Please see Figure 2 , Figure 2 This is a schematic diagram illustrating a document display method provided in an embodiment of this application. For example... Figure 2 As shown, page 201a is a target page used to display a list of documents associated with a business object (such as user U1). This page 201a can display a list of documents for which the business object has collaborative permissions (such as viewing and editing permissions). For example, the document list may include document W1, document W2, document W3, etc. Each document in the document list can be displayed in the form of document list options. Each document list option area can display the document name, the document's editing time, etc. For example, the document list options for document W1 are shown below. Figure 2 As shown in 204a, the document name of document W1 can be found in [reference needed]. Figure 2 As shown in 203a, the editing time of document W1 can be found in [reference 203a]. Figure 2 As shown in 205a, that is, the editing time t1.

[0128] Furthermore, in response to a document open operation for document W1 (step S21a), page 202a is displayed. This document operation can be clicking any location within the area corresponding to the document list option of document W1. Page 202a can be a document display page used to display the document content of document W1. It should be understood that this document display page can be a page used to display the document content of a document. As can be seen, page 202a can display the initial content of document W1, such as the title of document W1, and the content of each paragraph of document W1, such as paragraphs D1, D2, and D3. The initial content of document W1 can be determined based on the initial snapshot data pre-loaded into the service device, thereby enabling fast loading of the document's initial content and improving the speed of opening the document.

[0129] In this embodiment, each time a document is opened, the rendering data of the first screen is calculated, and this lightweight data is converted into a snapshot (i.e., first screen snapshot data) and stored in memory and disk to prepare for the next document opening. When the user opens the document again, the first screen snapshot data is quickly retrieved, and the first screen content of the document is rendered and displayed on the screen based on the first screen snapshot data. Simultaneously, in this embodiment, when displaying a document on a page displaying a document list page or document session page, or other pages displaying document entry points, the rendering data of the document's first page (i.e., the first screen snapshot content) is pre-retrieved and stored through relevant calculations. Therefore, when the document is opened, the first screen content of the document is displayed based on the pre-retrieved (also known as pre-loaded) first screen snapshot data, significantly improving the speed of the document's first opening. This application, by implementing a strategy of storing the snapshot data of the document's first screen locally and a data pre-retrieval (also known as pre-loading) technique, achieves real-time loading of collaborative documents (i.e., target documents), thereby significantly optimizing document opening speed and collaboration efficiency.

[0130] It should be noted that this application may display prompt interfaces, pop-ups, or output voice prompts before and during the collection of user data. These prompt interfaces, pop-ups, or voice prompts are used to inform the user that their data is being collected. This ensures that the application only begins the steps for collecting user data after receiving confirmation from the user regarding the prompt interface or pop-up; otherwise (i.e., without user confirmation), the steps for collecting user data end, meaning no user data is collected. In other words, all user data collected in this application is collected with the user's consent and authorization, and the collection, use, and processing of related user data must comply with relevant national and regional laws, regulations, and standards.

[0131] It is understood that the aforementioned cloud servers can be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The aforementioned terminal devices include, but are not limited to, mobile phones, computers, intelligent voice interaction devices, smart home appliances, in-vehicle terminals, aircraft, smart speakers, and other smart home appliances.

[0132] It is understood that the above scenarios are merely examples and do not constitute a limitation on the application scenarios of the technical solutions provided in the embodiments of this application. The technical solutions of this application can also be applied to other scenarios. For example, as those skilled in the art will know, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0133] Further, please see Figure 3 , Figure 3 This is a flowchart illustrating a document display method provided in an embodiment of this application. The method can be executed by a service device, for example, the service device is... Figure 1 The device 11a shown. The method may include at least the following steps S101-S102.

[0134] S101. Display the target document on the target page.

[0135] The target document can be a document that can be collaboratively processed by multiple people, and can also be called a collaborative document, shared document, web document, etc. It should be understood that the document type of the target document can be text, table, or presentation type; there are no restrictions here.

[0136] It should be understood that the target document can be a document that the business object corresponding to the business device can collaborate on; that is, the business object corresponding to the business device can have collaboration permissions for the target document. It is understood that the collaboration permissions here can at least include viewing permissions, meaning the business object corresponding to the business device can open and view the target document. Optionally, the collaboration permissions here can also include editing permissions for the target document, meaning the business object corresponding to the business device can edit the target document. It should be understood that the editing and viewing permissions of the business object can be granted by the target document's management object (such as the creator of the target document or an object authorized by the creator to manage the document). For ease of description, the business object corresponding to the business device can be referred to as the first object.

[0137] The target page can be a page used to display the target document. It is understood that the target document can be displayed on this target page in the form of a document link, document message card, document list option, etc., and this is not limited here.

[0138] Optionally, displaying the target document on the target page may include the following steps: displaying the target document on the first object's document list page; the document list page is used to display documents that the first object has participated in collaborating on; the target document belongs to the documents that the first object has participated in collaborating on; and the document list page belongs to the target page.

[0139] The first object can be the business object corresponding to the business device. This document list page can be a page used to display the documents that the first object has collaborated on. It should be understood that the documents displayed on this document list page can also be understood as historical documents that the first object has collaborated on; specifically, the target document belongs to the documents that the first object has collaborated on. On this document list page, each document that the first object has collaborated on can be displayed as a document list option; that is, the target document can be displayed as a document list option.

[0140] Optionally, displaying the target document on the target page may include the following steps: displaying the target document in the session page of the first object; the target document is a document received or sent by the first object; the session page belongs to the target page.

[0141] It should be understood that this conversation page can be a page for conversations between a first object and business objects different from the first object. It should be understood that this conversation page can be a page for one-on-one conversations between the first object and a second object (a business object related to the first object), or it can be a page for group conversations established with multiple business objects; there is no limitation here. It should be understood that within this conversation page, the first object can receive or send documents, and therefore, the conversation page can display the documents received or sent by the first object; that is, the conversation page can display the target document. Within this conversation page, all documents received or sent by the first object can be displayed in the form of document message cards or document links; that is, the target document can be displayed in the form of document message cards or document links.

[0142] It should be understood that, in the embodiments of this application, when displaying a target document on a target page, the first-screen snapshot data of the target document can be preloaded so that when the first object opens the target document, the business device can quickly render and display the first-screen content of the target document based on the preloaded first-screen snapshot data. Since the amount of data in the first-screen snapshot data is relatively small compared to the full document content, and the first-screen snapshot data can be preloaded into the business device, the speed of reading the first-screen snapshot data is relatively fast, thereby greatly improving the speed of displaying the first-screen content of the target document, and thus improving the speed of opening the target document.

[0143] Specifically, the method is executed by a business device, which includes device storage space. When displaying the target document on the target page, this application embodiment further includes the following steps: obtaining the first document content of the target document from the document server; further, performing snapshot cropping based on the first document content to obtain the first screen snapshot data of the target document; further, preloading the first screen snapshot data to the device storage space of the business device.

[0144] The device storage space can be the storage space used to store data within the business device. This device storage space can include a first storage space and a second storage space, with the first storage space having a higher read speed than the second storage space. For example, the first storage space can be the memory in the business device, and the second storage space can be the disk in the business device. Memory is where computers (such as business devices) use to temporarily store and quickly access data, while the disk is one of the most common auxiliary storage devices in computers (such as business devices), mainly used for long-term data storage. Memory has a higher read speed than the disk, but the disk is a storage space used for temporary storage; once the business device loses power, the data stored in memory will be lost.

[0145] It should be understood that the document server can be a server used to provide services for the target document, such as the aforementioned server 100a. The document server can receive document operations from various business objects targeting the target document, and update the target document based on these operations. This allows the document server to obtain the latest document content of the target document, enabling the business terminals of various business objects to pull the latest document content from the document server for loading. This maximizes the timeliness of the retrieved initial snapshot data, thereby improving the timeliness of the initial content displayed when the target document is opened, based on the initial snapshot data.

[0146] It should be understood that the first document content can be the document content used to determine the first-screen snapshot data of the target document. It should be understood that obtaining the first document content from the document server can include: the business device sending a document content retrieval request for the target document to the document server, so that the document server, upon receiving the document content retrieval request, retrieves the first document content of the target document and returns the retrieved first document content to the business device; the business device receiving the first document content returned by the document server.

[0147] Understandably, after obtaining the first document content of the target document from the document server, the business device can store the first document content in the document database of the business device, so that when the business device opens the target document later, it can read the complete document content corresponding to the target document from the document database.

[0148] It should be understood that preloading the initial screen snapshot data to the device storage space of the business device allows the initial screen snapshot data to be stored in both the first and second storage spaces. Subsequently, the initial screen snapshot data can be preferentially retrieved from the first storage space, which has a faster read speed, thereby improving the speed of opening the target document. Furthermore, the initial screen snapshot data stored in the second storage space ensures that the business device does not need to reload after a power outage; instead, it can directly retrieve the initial screen snapshot data from the second storage space, or pull the initial screen snapshot data stored in the second storage space to the first storage space for retrieval. This avoids repeatedly preloading the initial screen snapshot data and reduces resource waste.

[0149] It is understood that, in the embodiments of this application, snapshot cropping based on the content of the first document may include: performing structural transformation processing on the content of the first document to obtain first document structural transformation data of the first document content, and then performing cropping processing on the first document structural transformation data to obtain the first screen snapshot data of the target document.

[0150] The first document structure conversion data can be obtained by performing structure conversion processing on the content of the first document. This first document structure conversion data can be data possessing the target data structure. The first document structure conversion data can include operation information of the target document, and the number of operation information items included in the first document structure conversion data can be at least one; that is, the first document structure conversion data can be composed of at least one operation information item corresponding to the target document. It is understood that performing structure conversion processing on the content of the first document can include serializing the content of the first document to obtain the first document structure conversion data. Here, serialization processing can be a process of converting the data structure into a format that can be stored or transmitted. For example, serialization processing can be performed using the ProtoBuffer protocol (a serialization processing method).

[0151] It should be understood that each operation information may include at least: operation type information, operation location information, changed content information, and operation object information. The operation type information can indicate the type of document operation performed on the target document by a business object with editing permissions. For example, the operation type could be adding text content, adjusting text formatting, etc., without limitation. The operation location information can indicate the location of the operation being performed. For example, the operation location could indicate the location of the view model where the document operation is performed. For instance, the operation location could be the location of the second third-level view model in the target document. A detailed introduction to the third-level view model will be provided later. The changed content information can indicate the content changed by the performed document operation. For example, in an operation of adding text content, the changed content information could be the added text content; similarly, in an operation of adjusting text formatting, the changed content information could be the content of the text whose formatting was adjusted. The operation object information can be the object information of the business object performing the document operation. For example, the object information could be the unique identifier and object name of the business object performing the document operation. Optionally, each operation information may also include information such as operation time. This operation time can be the start or end time of the document operation, and there is no limitation here. It is understood that the various operation information items in the document structure transformation data can be arranged sequentially according to the order of their corresponding operation position information.

[0152] In this context, the view model can be a component used to connect the view and model data. The view and model data are bidirectionally bound through the view model (i.e., ViewModel). When displaying the target document, the document content can be displayed based on the view model. Since there is a bidirectional data binding between the model and the view, changes to the model data corresponding to the view model trigger a view refresh. Furthermore, users (such as the first object) can interact with the displayed view, and the data changes based on these interactions are synchronized in the model data. It is understood that, in this embodiment, the model data corresponding to each view model can be determined based on the view model indicated by the operation location, which determines the view model corresponding to the operation information in the document structure transformation data. This determines the model data corresponding to each view model, thereby generating a view model based on the document structure transformation data, and rendering and displaying the document content based on the generated view model.

[0153] Understandably, the view model of a target document can be multi-level. For example, the view model of a target document can include a first-level view model, which can include one or more sub-view models. These sub-view models can be referred to as second-level view models. Furthermore, a second-level view model can include one or more sub-view models, which can be referred to as a third-level view model, and so on. The view model of a target document can include view models with even more levels.

[0154] For example, see Figure 4 , Figure 4 This is a schematic diagram illustrating the effect of a view model provided in an embodiment of this application. For example... Figure 4 As shown, page 401a can be a document display page used to display document content. The view model used to display the document content of the target document can be found in [reference needed]. Figure 4 As shown in 402a, the view model can be a first-level view model. Furthermore, view model 402a can have two sub-view models, namely... Figure 4 The subview models shown in 403a and 404a can be secondary view models. Furthermore, in... Figure 4 The secondary view model shown in 403a can include multiple sub-view models, which can be called a tertiary view model. For example, the tertiary view model can include, Figure 4 The view models shown in 405a, 406a, 407a and 408a are as follows.

[0155] For example, the data structure (i.e., the target data structure) for any operation information in the first document structure transformation data can be referenced as follows:

[0156]

[0157]

[0158] It should be understood that the first document structure conversion data may include one or more operation information. The first document structure conversion data is cropped to obtain the first screen snapshot data of the target document. This can be the operation information used to crop the content that can be displayed on the first screen of the target document. This allows the content to be displayed on the first screen of the document based on the first screen snapshot data when the target document is opened. In other words, the cropped first screen snapshot data matches the content that can be displayed on the first screen of the target document.

[0159] Specifically, obtaining the first-screen snapshot data of the target document by snapshot cropping based on the content of the first document may include the following steps: performing structural transformation processing on the content of the first document to obtain first document structure transformation data with the target data structure; the first document structure transformation data includes operation information, which at least includes: operation type information, operation location information, changed content information, and operation object information; further, obtaining the first-screen view model information associated with the first-screen content of the target document, and determining the number of snapshot operations corresponding to the operation information to be preloaded based on the first-screen view model information and the first document structure transformation data; further, cropping operation information matching the number of snapshot operations from the first document structure transformation data, and determining the cropped operation information as the first-screen snapshot data.

[0160] For details regarding the transformation of the first document structure data, please refer to the above descriptions; they will not be repeated here.

[0161] It should be understood that the snapshot operation data volume can be the amount of operation information needed to determine the amount of data to be cropped in the first-screen snapshot. It should also be understood that the first-screen view model information can be used to indicate the view model to be displayed on the first screen of the target document.

[0162] It is understandable that the initial view model information of the target document can be determined based on the display size of the business device and the operation information in the first document structure transformation data of the target document. It should be understood that the amount of content that can be displayed on the initial screen of the target document can vary for different screen sizes; a larger screen size allows for more content to be displayed on the initial screen, and vice versa. It should also be understood that the data corresponding to each view model can be determined based on the operation position information in the first document structure transformation data. Furthermore, the display height of each view model can be determined based on the data corresponding to each view model. Then, based on the height of the display screen and the display height of each view model, the view model displayed on the initial screen can be determined. Finally, based on the information of the determined view model (such as the view model's identifier), the initial screen view model information can be determined.

[0163] Furthermore, based on the first screen view model information and the first document structure transformation data, determining the number of snapshot operations corresponding to the operation information to be preloaded may include: based on the first document structure transformation data, determining the operation information corresponding to the view model indicated by each first screen view model information, and then determining the number of determined operation information as the number of snapshot operations.

[0164] It should be understood that the operation information that matches the number of snapshot operations is the operation information corresponding to the number of previous snapshot operations in the first document structure transformation data. For example, the first document structure transformation data may include 20 operation information. If the number of snapshot operations is 5, then the first 5 operation information in the first document structure transformation data can be determined as the operation information that matches the number of snapshot operations. Then, the first 5 operation information in the first document change operations can be cropped out, and the cropped first 5 operation information in the first document change operations can be determined as the first screen snapshot data of the target document.

[0165] It should be understood that, in some cases, the content of the first screen of a document is the complete content of the document. Therefore, the number of snapshot operations determined based on the first screen view model information can be equal to the first document structure conversion data, and thus the first document structure conversion data can be directly determined as the document's first screen snapshot data. That is, extracting operation information matching the number of snapshot operations from the first document structure conversion data and determining the extracted operation information as the first screen snapshot data can include: if the number of snapshot operations is equal to the number of operation information in the first document structure conversion data, then the operation information in the first document structure conversion data is determined as the first screen snapshot data; if the number of snapshot operations is greater than the number of operation information in the first document structure conversion data, then the operation information matching the number of snapshot operations is extracted from the first document structure conversion data, and the extracted operation information is determined as the first screen snapshot data.

[0166] For example, see Figure 5 , Figure 5 This is a schematic diagram of a preloading process provided in an embodiment of this application. Figure 5 As shown, the business device can display the target document (such as...) on the target page. Figure 5 As shown in 501a), further, the service device can send a document content retrieval request for the target document to the document server (e.g., ...). Figure 5 (As shown in 502a). Furthermore, the document server can obtain the document content of the target document (such as...). Figure 5 As shown in 503a), and returns the document content of the target document (such as...) to the service device. Figure 5 (As shown in 504a). Furthermore, the service device can perform snapshot cropping based on the acquired document content to obtain the first-screen snapshot data (such as...). Figure 5 As shown in 505a), the method for snapshot cropping can be referred to the relevant description above, and will not be repeated here. Furthermore, the service device can store the first-screen snapshot data in the service device's device storage space (e.g., ...). Figure 5 (as shown in 506a).

[0167] Optionally, when displaying the target document on the target page, this application embodiment may further include the following steps: when the preloading of the first-screen snapshot data of the target document is completed, display a preloading completion identifier in the associated area of ​​the target document; the preloading completion identifier is used to indicate that the preloading of the first-screen snapshot data of the target document is completed.

[0168] It should be understood that the preload completion identifier can be an identifier used to indicate that preload is complete, and the preload completion identifier can be text or an image used to prompt the business object that the first screen snapshot data preload is complete, without any limitation here.

[0169] The associated area for the target document can be any area associated with the target document used to display the preloading completion indicator. For example, when the target page is a document list page, the associated area can be any area in the document list options corresponding to the target document, or any area associated with the document list options; there is no limitation here. Similarly, when the target page is a session page, the associated area can be any area in the document message card corresponding to the target document, or any area associated with the document message card; there is no limitation here.

[0170] It is understood that, in the embodiments of this application, the preloading operation of the first screen snapshot of the target document may be to prompt the business object whether the first screen snapshot data of the target document has been preloaded through a preloading completion identifier, or it may not be to prompt the business object whether the first screen snapshot of the target document has been preloaded through any user-visible identifier. There is no limitation here.

[0171] For example, see Figure 6 , Figure 6 This is a schematic diagram illustrating the effect of a target page provided in an embodiment of this application. For example... Figure 6 As shown, page 601a can be a document list page, which can include multiple documents. When the preloading of any document is complete, a preloading completion indicator can be displayed in the associated area corresponding to the document list option of the preloaded document. For example, when the preloading of document W1 is complete, a preloading completion indicator can be displayed as shown below. Figure 6 The preload completion indicator is shown in 602a. Page 603a can be a session page where document W1 sent by business object A1 can be displayed. If the preload of the received document W1 is complete on this session page, a preload completion indicator can be displayed in the associated area of ​​the document message card for document W1. For example, it can display... Figure 6 The preload completion identifier shown in 604a is as follows.

[0172] Optionally, in this embodiment, a preloading animation can be displayed in the associated area to indicate that the first-screen snapshot data of the target document is being preloaded. For example, the preloading animation could be a rotating circle animation. Optionally, a preloading progress animation can also be displayed in the associated area to indicate the progress of the preloading of the first-screen snapshot data of the target document. This preloading progress animation can be displayed synchronously with the current progress of fetching the first-screen snapshot data. For example, the preloading progress animation could indicate that first-screen snapshot data calculation is in progress, first-screen snapshot data storage is in progress, etc. Optionally, when indicating that first-screen snapshot data storage is in progress, the storage progress can be determined based on the stored and unstored first-screen snapshot data, and the storage progress of the first-screen snapshot data can be synchronously displayed through the preloading progress animation. The storage progress here can be represented by percentage changes, color changes, progress bar changes, etc., and is not limited here.

[0173] S102. In response to a document open operation for the target document, display the first screen content of the target document; the first screen content is obtained based on the preloaded first screen snapshot data of the target document; the first screen snapshot data is obtained by cropping the first document content of the target document.

[0174] It should be understood that the document open operation can be an operation used to open the target document, that is, an operation used to trigger the display of the document content of the target document. It should also be understood that the document open operation can be a touch operation on the target document, such as clicking on the target document. For example, when the target page is a document list page, the document open operation can be a click operation on any location within the area where the document list options of the target document are located. Similarly, when the target page is a conversation page, the document open operation can be a click operation on any location within the area where the document message card of the target document is located.

[0175] For example, see Figure 7 , Figure 7 This is a schematic diagram illustrating a scenario of an alternative document display method provided in an embodiment of this application. For example... Figure 7 As shown, page 701a is the session page of the first object (such as user U1), i.e., a target page. This page 701a can display document W1 sent by the second object (a business object associated with the first object). The received document W1 can be displayed in the form of document message cards, for example, the document message card of document W1 can be like... Figure 7As shown in 703a, the document message card can display information such as the document name of document W1 and a preview image of document W1. Further, in response to a document open operation for document W1 (step S71a), page 702a is displayed. For example, the document open operation can be an operation of clicking any location within the area where the document message card is located. This page 702a can be a document display page used to display the document content of document W1. It should be understood that this document display page can be a page used to display the document content of the document. As can be seen, page 202 can display the document content of document W1, such as the title of document W1 and the content of each paragraph of document W1, such as paragraph D1, paragraph D2, and paragraph D3.

[0176] It is understandable that the first screen content of the first document can be obtained based on the first screen snapshot data of the preloaded target document. The first screen snapshot data is obtained by cropping the first document content of the target document. The specific determination process can be referred to the relevant description above, and will not be repeated here.

[0177] It is understood that, in the embodiments of this application, displaying the first screen content of the target document can be: generating a view model of the first screen based on the operation information in the obtained first screen snapshot data, and rendering the first screen content of the first document based on the view model of the first screen.

[0178] Specifically, this method is executed by the business device, and the first-screen snapshot data is stored in the device storage space of the business device. Therefore, displaying the first-screen content of the target document in response to a document open operation for the target document may include the following steps: Reading the first-screen snapshot data of the target document from the device storage space in response to a document open operation for the target document; further, performing a validity check on the read first-screen snapshot data to obtain a snapshot verification result; further, when the snapshot verification result indicates that the first-screen snapshot data has been successfully verified, rendering the first-screen content of the target document based on the read first-screen snapshot data.

[0179] As can be seen from the above description, the first screen snapshot data can be stored in the device storage space of the business device. For an introduction to the device storage space, please refer to the relevant description above, which will not be repeated here.

[0180] It should be understood that the snapshot verification result can be the result of validating the read first-screen snapshot data. Validity verification can be used to check the completeness and format correctness of the read first-screen snapshot data. Specifically, verifying the completeness of the read first-screen snapshot data involves checking whether the number of operation information entries in the read first-screen snapshot data matches the number of snapshot operations corresponding to the first-screen snapshot data. If they match, the read first-screen snapshot data is complete; otherwise, it is incomplete. For example, when preloading the first-screen snapshot data to the device storage space, if the business device loses power or malfunctions, the first-screen snapshot data may not be fully loaded. Therefore, validating the completeness of the first-screen snapshot data ensures that the device storage space stores complete first-screen snapshot data, avoiding incomplete loading of the first-screen content. Verifying the format correctness of the read first-screen snapshot data involves checking if the data structure of the read first-screen snapshot data matches the target data structure. If it matches the target data structure, the format of the read first-screen snapshot data is correct; otherwise, the format of the read first-screen snapshot data is incorrect. For example, in some cases, if the business equipment malfunctions, the format of the first-screen snapshot data may be incorrect.

[0181] Specifically, performing a validity check on the read first-screen snapshot data to obtain a snapshot verification result may include the following steps: obtaining the number of snapshot operations associated with the first-screen snapshot data of the target document from the device storage space; further, determining the number of read operations on the read first-screen snapshot data based on the number of operation information in the read first-screen snapshot data; further, comparing the number of snapshot operations and the number of read operations to obtain an operation number comparison result; further, if the operation number comparison result indicates that the number of snapshot operations and the number of read operations are consistent, then determining a snapshot verification result to indicate that the first-screen snapshot data verification was successful.

[0182] The description of the number of snapshot operations can be found above and will not be repeated here. It should be understood that the number of snapshot operations can be stored in association with the first-screen snapshot data stored in the device's storage space. Therefore, when reading the first-screen snapshot data, the number of snapshot operations can be read synchronously to verify whether the read first-screen snapshot data is complete.

[0183] Understandably, the number of read operations can be the number of operation information entries in the first screen snapshot data.

[0184] The operation count comparison result can be used to indicate the result of comparing the number of snapshot operations with the number of read operations. This comparison result can indicate that the number of snapshot operations and read operations are the same, or it can indicate that the number of snapshot operations and read operations are not the same.

[0185] Furthermore, if the operation count comparison result indicates that the number of snapshot operations and the number of read operations are inconsistent, then the snapshot verification result used to indicate that the first screen snapshot data verification was unsuccessful is determined, and subsequently, the first screen content of the first document cannot be displayed based on the read first screen snapshot data.

[0186] Specifically, performing a validity check on the read first-screen snapshot data to obtain a snapshot verification result may include the following steps: determining the operation information from the read first-screen snapshot data; further, if the data structure of the operation information is the target data structure, then determining the snapshot verification result used to indicate the successful verification of the first-screen snapshot data.

[0187] The description of the target data structure can be found in the above description. It is understood that when there are multiple operation information entries in the first-screen snapshot data, it is necessary to determine the snapshot verification result used to indicate successful verification of the first-screen snapshot data, provided that the data structure of each operation information entry in the first-screen snapshot data is the target data structure.

[0188] Understandably, if the data structure of the operation information is not the target data structure, then the snapshot verification result used to indicate the failure of the first screen snapshot data verification is determined.

[0189] It should be understood that, in the embodiments of this application, when the operation quantity comparison result indicates that the number of snapshot operations and the number of read operations are consistent, and the data structure of the operation information is the target data structure, the snapshot verification result used to indicate the successful verification of the first screen snapshot data can be determined. In other words, it is necessary to determine that the first screen snapshot data read is successfully verified when it is determined that the data is complete and the format is correct.

[0190] It is understandable that, based on the above description, the read speed of the first storage space is higher than that of the second storage space. Therefore, the first screen snapshot data can be read from the first storage space first. Only when the first screen snapshot data is not available in the first storage space will the first screen snapshot data be read from the second storage space.

[0191] Specifically, the device storage space includes a first storage space and a second storage space; the read speed of the first storage space is higher than that of the second storage space; therefore, in response to a document opening operation for a target document, reading the first screen snapshot data of the target document from the device storage space may include the following steps: in response to a document opening operation for a target document, reading the first screen snapshot data of the target document from the first storage space; if the first screen snapshot data of the target document is not read from the first storage space, then reading the first screen snapshot data of the target document from the second storage space.

[0192] The descriptions of the first and second storage spaces can be found above and will not be repeated here.

[0193] It should be understood that if the initial snapshot data is not read from the first storage space, it indicates that the initial snapshot data of the target document was not preloaded (for example, the target document is opened directly on the target page before it has been preloaded), or the initial snapshot data preloaded in the first storage space has been cleared. For instance, in some cases, after the initial snapshot data is pre-fetched (i.e., preloaded) in the device storage space, if the business device loses power, the initial snapshot data stored in the first storage space of the business device is cleared. In this case, opening the target document will not be able to retrieve the initial snapshot data from the first storage space, and thus the initial snapshot data can be read from the second storage space.

[0194] It should be understood that if the first screen snapshot data of the target document is read in the first storage space, the first screen content of the target document can be displayed based on the read first screen snapshot data.

[0195] It should be understood that if the first-screen snapshot data of the target document is read from the second storage space, the first-screen content of the target document can be displayed based on the read first-screen snapshot data. Conversely, if the first-screen snapshot data of the target document is not read from the second storage space, it indicates that the first-screen snapshot data of the target document was not preloaded, and therefore the first-screen content of the first document cannot be displayed based on the first-screen snapshot data.

[0196] When opening a target document, the first screen content of the document is displayed based on a preloaded first screen snapshot data. The amount of data in this first screen snapshot data is smaller than the full document content, and this first screen snapshot data can be preloaded into the business device. The first screen snapshot data can be quickly read from the business device, which can greatly improve the speed of displaying the first screen content of the target document, thereby improving the speed of opening the target document.

[0197] Further, please see Figure 8 , Figure 8This is a flowchart illustrating a document display method provided in an embodiment of this application. The method can be executed by a service device, for example, the service device is... Figure 1 The device 11a shown. The method may include at least the following steps S201-S204.

[0198] S201. Display the target document on the target page.

[0199] S202. In response to a document open operation for the target document, display the first screen content of the target document; the first screen content is obtained based on the preloaded first screen snapshot data of the target document; the first screen snapshot data is obtained by cropping the first document content of the target document.

[0200] It should be understood that steps S201-S202 can be referred to the relevant descriptions of steps S101-S102, and will not be repeated here.

[0201] It is understood that, in this embodiment of the application, the document processing logic in the business terminal may include processing logic on the view layer and the data layer. The view layer can be used to process the page's view display logic; for example, the view layer can be a Flutter layer. The data layer can be used for data processing; for example, the data processing logic can be in C++ language. Therefore, the process of generating the first-screen snapshot data can be referred to in the following sequence diagram.

[0202] Please see Figure 9 , Figure 9 This is a schematic diagram illustrating a first-screen snapshot data generation process provided in an embodiment of this application. For example... Figure 9As shown, firstly, the data layer in the business device can send a document content retrieval request for the target document to the document server (step 901a). The timing of this content retrieval request can be when the target document is displayed on the target page, when the target document is opened, or when a change is detected in the target document after it has been opened, triggering the first-screen snapshot data generation process. The document server can return the first document content to the data layer of the business device (step 902a), which can be the document content used to generate the first-screen snapshot data of the target document. Then, the data layer of the business device can notify the view layer to update the document content of the target document (step 903a), and the view layer can then obtain the first-screen view model information (step 904a). It is understood that the method for obtaining this first-screen view model information can refer to the relevant descriptions above. Furthermore, the view layer can instruct the data layer to calculate the number of snapshot operations for the target document (step 905a). The data layer can then perform snapshot cropping based on the updated document content to obtain the first-screen snapshot update data (step 906a). The view layer can then store the first-screen snapshot update data in the device storage space (step 907a). It is understandable that the business device can simultaneously save the first-screen snapshot data in memory (i.e., the first storage space) and disk (i.e., the second storage space). The first-screen snapshot data in memory is faster than that on disk. However, the first-screen snapshot data in memory is volatile and its lifecycle is tied to the view layer's engine (the engine used for view processing). When the view layer's engine is destroyed, the first-screen snapshot data stored in memory is also destroyed.

[0203] It's understandable that document processing logic in business devices can also include native layer processing logic. The native layer can be used to implement the document list processing logic and is responsible for operating system adaptation. Therefore, when preloading the first screen snapshot data from the document list page, it can be implemented by combining the native layer and the data processing layer.

[0204] For example, see Figure 10 , Figure 10 This is a schematic diagram illustrating a process for preloading a first-screen snapshot, as provided in an embodiment of this application. Figure 10As shown, the native layer in the business device can determine the target document from the document list on the document list page (step 1001a), such as by using the latest document to be submitted from the document list as the target document. Then, the native layer can notify the data layer to preload the target document (step 1002a). Further, the data layer in the business device can send a request to the document server to retrieve the document content of the target document (step 1003a), and then the document server can return the first document content of the target document to the data layer of the business device (step 1004a). Further, the data layer performs data transformation processing on the first document content to obtain the first document structure transformation data (step 1005a), and then determines the number of snapshot operations (step 1006a). The method for determining the number of snapshot operations can be referred to the relevant descriptions above, and will not be repeated here. Then, the first screen snapshot data is obtained by cropping from the first document structure conversion data (step 1007a), and the first screen snapshot data is saved to the device storage space (step 1008a). Furthermore, the preloading result can be synchronized to the native layer (step S1009a), and the preloading result can be used to indicate whether the preloading of the target document is complete.

[0205] S203. On the document display page, the first screen content of the first document is updated and displayed as the first screen content of the second document of the target document; the first screen content of the second document is determined based on the second document content of the target document recorded in the document database; the second document content is the same as the first document content, or the second document content is obtained by updating the content of the first document.

[0206] The document display page can be a page used to display the document content of the target document. It should be understood that the content of the first screen of the aforementioned first document can be displayed based on this document display page.

[0207] The second document's initial screen content can be determined based on the second document content of the target document recorded in the document database. It should be understood that this second document content is the document content of the target document recorded in the document database. It should also be understood that this second document content can be the same as or different from the first document content used to generate the initial screen snapshot data. It is understood that if, after generating the initial screen snapshot data based on the first document content, none of the business objects with collaboration permissions for the target document adjust the target document, then the second document content is the same as the first document content; if, after generating the initial screen snapshot data based on the first document content, a business object with collaboration permissions for the target document adjusts the target document (i.e., updates the document content of the target document) and pulls the updated target document into the document database, but does not generate new initial screen snapshot data based on the updated target document pulled into the document database, then the second document content (i.e., the document content of the target document currently recorded in the document database) is different from the first document content (i.e., the document content of the target document used to generate the current initial screen snapshot data), and the second document content is obtained by updating the content of the first document content. Therefore, updating the first screen content of the first document to display the first screen content of the second document of the target document, the first screen content displayed on the document display page may or may not have changed, and there is no limitation here.

[0208] Specifically, this method is executed by the business device, and the document database is deployed on the business device. Therefore, updating the first screen content of the first document to the second screen content of the target document on the document display page can include the following steps: obtaining the second document content of the target document from the document database in the business device; further, performing a structural transformation on the second document content to obtain second document structure transformation data with the target data structure; and further, rendering the second document's first screen content of the target document based on the second document structure transformation data on the document display page.

[0209] The document database can be a database deployed on the business device. It should be understood that reading the second document content from the document database is slower than reading the initial snapshot data from the device's storage space. However, the second document content read from the document database is the complete document content of the target document. Therefore, by loading the second document content, the first object can view the complete document content of the target document on the document display page.

[0210] The second document structure transformation data can be the data obtained by performing structure transformation processing on the content of the second document. It should be understood that performing structure transformation processing on the content of the second document to obtain second document structure transformation data with the target data structure can refer to the relevant description above for performing structure transformation processing on the content of the first document to obtain first document structure transformation data with the target data structure, which will not be repeated here.

[0211] It should be understood that, in the document display page, the second document first screen content of the target document rendered based on the second document structure transformation data may include: generating a first screen view model corresponding to the second document content based on the second structure transformation data, and rendering and displaying the second document first screen content based on the generated first screen view model.

[0212] It should be understood that before the first screen content of the second document is displayed based on the second document content, the first object cannot view the complete document content on the document display page. Therefore, by loading the second document content, the first object can view the complete document content on the document display page.

[0213] S204. On the document display page, the first screen content of the second document is updated and displayed as the first screen content of the third document of the target document; the first screen content of the third document is determined based on the third document content of the target document recorded in the document server; the third document content is the same as the second document content, or the third document content is obtained by updating the content of the second document.

[0214] The content of the first screen of the third document can be the content of the first screen determined based on the third document content of the target document recorded in the document server. It should be understood that the third document content is the document content of the target document recorded in the document server, and the third document content can be the latest document content of the target document.

[0215] It should be understood that the content of the third document can be the same as or different from the content of the second document. Specifically, if, after the content of the second document is retrieved from the back-end document server to the document database, none of the business objects with collaboration permissions for the target document adjust the target document, then the content of the third document is the same as the content of the second document. However, if, after the content of the second document is retrieved from the back-end document server to the document database, all business objects with collaboration permissions for the target document adjust the target document (i.e., update the content of the target document), and the updated target document is not retrieved to the document database, then the third document content obtained at this time (i.e., when opening the target document) (i.e., the document content of the target document currently recorded in the document server) is different from the second document content (i.e., the document content of the target document currently recorded in the document database), and the third document content is obtained after updating the content of the second document. Therefore, updating the first screen content of the second document to display as the first screen content of the third document of the target document, the first screen content displayed on the document display page can be changed or unchanged; this is not limited here.

[0216] Specifically, updating the first screen content of the second document to the first screen content of the third document of the target document on the document display page can include the following steps: obtaining the third document content of the target document from the document server and storing it in the document database based on the third document content of the target document; further, performing structural transformation processing on the third document content to obtain third document structural transformation data with the target data structure; further, rendering the first screen content of the third document of the target document based on the third document structural transformation data on the document display page.

[0217] It should be understood that fetching third document content from the backend server is slower than reading the first-screen snapshot data from the device document database. However, the second document content read from the document database is the complete and up-to-date content of the target document. Therefore, by loading the third document content, the first object can view the complete content of the latest target document on the document display page.

[0218] The third document structure transformation data can be the data obtained by performing structure transformation processing on the content of the third document. It should be understood that performing structure transformation processing on the content of the third document to obtain third document structure transformation data with the target data structure can refer to the relevant description of performing structure transformation processing on the content of the first document to obtain first document structure transformation data with the target data structure, which will not be repeated here.

[0219] It should be understood that, in the document display page, the third document first screen content of the target document rendered based on the third document structure transformation data may include: generating a first screen view model corresponding to the third document content based on the third structure transformation data, and rendering and displaying the third document first screen content based on the generated first screen view model.

[0220] It should be understood that before the first screen content of the third document is displayed based on the third document content, the first object cannot view the latest document content on the document display page, but rather the document content previously retrieved from the document database. Therefore, by loading the third document content, the first object can view the latest complete document content on the document display page.

[0221] It should be understood that, in the embodiments of this application, in response to a document opening operation for a target document, the steps of reading the first screen snapshot data from the device storage space, reading the second document content from the document database, and requesting the third document content from the document server can be executed simultaneously. However, since the speed of reading the first screen snapshot data from the device storage space is higher than the speed of reading the second document content from the document database, and the speed of reading the second document content from the document database is higher than the speed of requesting the third document content from the document server, and structural conversion processing is required after the second and third document content are obtained, when opening the target document, the first document first screen content is displayed earlier than the second document first screen content, and earlier than the third document first screen content. Therefore, when opening the target document, the first document first screen content can be displayed first, thereby quickly displaying the document content of the target document. Then, based on the second document first screen content, the first document first screen content can be updated, thereby quickly loading the complete content of the target document. Then, based on the third document first screen content, the second document first screen content can be updated, thereby ensuring that the latest complete document content is finally loaded. Optionally, in this embodiment, after displaying the first document's initial screen content of the target document, the first document's initial screen content can be updated and displayed as the third document's initial screen content on the document display page. That is, when opening the target document, it is not necessary to retrieve the second document content from the document database. After displaying the first document's initial screen content generated based on the initial screen snapshot data, the initial screen content can be displayed directly based on the latest document content (i.e., the third document content) retrieved from the document server.

[0222] It is understandable that after retrieving the third document content from the document server, the third document content can be used to update the document content of the target document in the document database. That is, the second document content of the target document in the document database is updated with the third document content, which means updating the document content in the document database to the latest document content.

[0223] Understandably, after obtaining the content of a third document, new initial snapshot data of the target document can be generated based on this content, and the initial snapshot data in the device's storage space can be updated accordingly. This ensures that each time a document is opened, the latest document snapshot data is generated based on the latest document content obtained from the document server, and the document snapshot data stored in the device's storage space is updated, so that the document's initial content can be displayed based on the new document snapshot data the next time the document is opened. Similarly, after opening a document, while displaying its content, the latest status of the document content obtained from the document server can be monitored in real time. When the document is closed, the latest document snapshot data can also be generated based on the latest document content obtained from the document server, and the document snapshot data stored in the device's storage space can be updated, so that the document's initial content can be displayed based on the updated document snapshot data the next time the document is opened.

[0224] Specifically, the embodiments of this application may also include the following steps: performing snapshot cropping based on the content of the third document to obtain the first-screen snapshot update data of the target document, and updating the first-screen snapshot data based on the first-screen snapshot update data.

[0225] The first-screen snapshot update data can be new first-screen snapshot data determined based on the content of the third document. Then, the first-screen snapshot data of the target document can be updated based on the determined first-screen snapshot update data, that is, the first-screen snapshot data in the device storage space of the business device is updated to the first-screen snapshot update data.

[0226] For example, see Figure 11 , Figure 11 This is a schematic diagram of a document display process provided in an embodiment of this application. For example... Figure 11 As shown, loading data for a target document can include three processes: loading document snapshot data, loading data from the document database, and loading network data (i.e., loading data from the document server).

[0227] First, the initial screen snapshot data is loaded, as detailed in steps S1101a-S1109a. Specifically, the first object can open the target document (step S1101a), and the view layer of the business device can notify the data layer to initialize the document environment (step S1102a), including the document database environment, network environment, user data (i.e., the data of the first object), etc. Then, the data layer completes the environment initialization (step S1103a). The view layer can read the first-screen snapshot data from the device storage space (step S1104a), and then perform a validity check on the read first-screen snapshot data (step S1105a). If the validity check of the read first-screen snapshot data is successful, the view layer can notify the data layer to load the first-screen snapshot data (step S1106a). Then, the data layer notifies the view layer to generate a view model (step S1107a), which can specifically be based on the first-screen snapshot data. The view layer can then render based on the generated view model (step S1108a), thereby displaying the first-screen content of the first document (step S1109a). In other words, when a user clicks on a document, the document environment can be initialized first. After the environment initialization is complete, the document snapshot (i.e., the document first-screen snapshot data) can be read immediately, which is equivalent to the change particles of the document's first screen. A complete document data can be represented by a set of Mutations. The first-screen snapshot data is the first-screen Mutation clipped from the Mutations of the complete document. When reading document snapshot data, it first reads from memory (i.e., the first storage space), and then from disk (i.e., the second storage space). After the first screen Mutation (i.e., the document's first screen snapshot data) is read, its correctness and completeness can be verified. If the verification passes, the C++ document engine (i.e., the data layer) transforms the first screen Mutation into the ViewModel required by the Flutter layer (i.e., the view layer). Finally, the Flutter layer (i.e., the view layer) renders the document to obtain the first screen content of the first document.

[0228] Further, loading data from the document database can be seen in steps S1110a-S1114a. Specifically, the view layer notifies the data layer to retrieve the second document content from the document database (step S1110a). Then, the data layer reads the complete second document content (step S1111a), converts the second document content into second document structure transformation data (step S1112a), and then the view layer can generate a view model based on the second document structure transformation data (step S1113a), thereby displaying the first screen content of the second document (step S1114a). In other words, the business device can call the interface of the C++ layer (i.e., the data layer) to retrieve the document data (i.e., the second document content) of the target document from the DataBase (i.e., the document database). The document data retrieved from the DataBase has two differences compared to the snapshot (i.e., the first screen snapshot data). First, the DataBase retrieves the complete document data, while the snapshot retrieves the document data of the first screen. Second, the DataBase retrieves the original document data, while the snapshot retrieves the data from the document structure transformation data obtained by transforming the original document data. After obtaining the raw data from the Database, the App performs serialization and ProtoBuffer protocol conversion (i.e., structure conversion processing) to finally obtain the complete Mutation of the document. Then, following the same process as above, the complete Mutation is transformed into the ViewModel required by the Flutter layer (i.e., the view layer) through the C++ document engine (i.e., the data layer), and the document is rendered by the Flutter layer (i.e., the view layer).

[0229] Further, loading data from the document server can be seen in steps S1115a-S1120a. Specifically, the data layer sends a document content retrieval request for the target document (step S1115a), then the document server returns the third document content (step S1116a), and the data layer converts the third document content into third document structure transformation data (step S1117a), and synchronizes the third document content to the document database (step S1118a). The view layer can then generate a view model based on the third document structure transformation data (step S1119a), thereby displaying the first screen content of the third document (step S1120a). In other words, while retrieving Database data, the business device can simultaneously request the network to obtain the latest document data, i.e., request the latest document content from the document server. The data returned by the document server is also the original document data. After obtaining the network data (i.e., the document content obtained from the document server), the data is first stored in the DataBase (i.e., the document database). At the same time, the raw data is transformed into the ViewModel (i.e., the view model) required by the Flutter layer (i.e., the view layer) in the same process as above, and the document is rendered by the Flutter layer.

[0230] In this embodiment, in addition to the conventional Database data (i.e., document data obtained from the document database) and network data (i.e., document data obtained from the document server), a document snapshot data source is added. Because the document snapshot data has undergone cropping, it is smaller in volume compared to the Database data, and the snapshot stores a higher-level data structure (i.e., the target data structure), reducing the time spent on data conversion based on the original data during rendering. Therefore, it significantly improves the document opening speed. Secondly, the document snapshot data is generated from actual document data, not screenshots or other similar data. Therefore, during the snapshot display stage, the document display effect is consistent with the Database data (i.e., data from the document database) and network data (i.e., data obtained from the document server) stages, and business objects can edit the displayed document content. Furthermore, this embodiment also pre-generates the first-screen snapshot data of the document before the user opens it, allowing for instant opening even on the first user visit, thereby improving the user experience.

[0231] In this embodiment of the application, when opening a target document, the first screen content of the document is displayed based on the preloaded document first screen snapshot data. The amount of data in the first screen snapshot data is less than the full document content, and the first screen snapshot data can be preloaded into the business device, which can quickly read the first screen snapshot data from the business device. This can greatly improve the speed of displaying the first screen content of the target document, thereby improving the speed of opening the target document.

[0232] Please see Figure 12 , Figure 12 This is a schematic diagram of the structure of a document display device provided in an embodiment of this application. For example... Figure 12 As shown, the document display device 1 can be a computer program (including program code) running on a business device (e.g., the terminal device 11a mentioned above), for example, the document display device 1 is an application software; it is understood that the document display device 1 can be used to execute the corresponding steps in the document display method provided in the embodiments of this application. Figure 12 As shown, the document display device 1 may include: a document display module 11 and a first screen content display module 12;

[0233] Document display module 11 is used to display the target document on the target page;

[0234] The first initial screen content display module 12 is used to display the first initial screen content of the target document in response to a document opening operation for the target document; the first initial screen content is obtained based on preloaded initial screen snapshot data of the target document; the initial screen snapshot data is obtained by cropping the first document content of the target document.

[0235] The first screen content of the first document is displayed on the document display page;

[0236] The document display device 1 also includes: a second primary screen content display module 13;

[0237] The second primary screen content display module 13 is specifically used for:

[0238] In the document display page, the first document's initial screen content is updated and displayed as the second document's initial screen content; the second document's initial screen content is determined based on the second document content of the target document recorded in the document database; the second document content is the same as the first document content, or the second document content is obtained by updating the first document content.

[0239] The document display device 1 also includes: a third primary screen content display module 14;

[0240] The third primary screen content display module 14 is specifically used for:

[0241] In the document display page, the first screen content of the second document is updated and displayed as the first screen content of the third document of the target document; the first screen content of the third document is determined based on the third document content of the target document recorded in the document server; the third document content is the same as the second document content, or the third document content is obtained by updating the content of the second document.

[0242] The document display module 11 is specifically used for:

[0243] The target document is displayed on the document list page of the first object; the document list page is used to display the documents that the first object has participated in collaborating on; the target document belongs to the documents that the first object has participated in collaborating on; the document list page belongs to the target page.

[0244] The document display module 11 is specifically used for:

[0245] The target document is displayed in the session page of the first object; the target document is a document received or sent by the first object; the session page belongs to the target page.

[0246] The document display module 11 is also used for:

[0247] When the preloading of the first-screen snapshot data of the target document is completed, the preloading completion identifier is displayed in the associated area of ​​the target document; the preloading completion identifier is used to indicate that the preloading of the first-screen snapshot data of the target document is completed.

[0248] The method is executed by a business device, which includes device storage space.

[0249] The document display device 1 also includes a snapshot generation module 15;

[0250] Snapshot generation module 15 is specifically used for:

[0251] Retrieve the first document content of the target document from the document server;

[0252] Based on the content of the first document, a snapshot is cropped to obtain the first-screen snapshot data of the target document;

[0253] The first screen snapshot data is preloaded into the device storage space of the business device.

[0254] The snapshot generation module 15 is specifically used for:

[0255] The content of the first document is subjected to structural transformation processing to obtain first document structure transformation data with the target data structure; the first document structure transformation data includes operation information, and the operation information includes at least: operation type information, operation location information, changed content information, and operation object information;

[0256] Obtain the first-screen view model information associated with the first-screen content of the target document, and determine the number of snapshot operations corresponding to the operation information to be preloaded based on the first-screen view model information and the first document structure transformation data;

[0257] Operation information matching the number of snapshot operations is extracted from the first document structure conversion data, and the extracted operation information is determined as the first screen snapshot data.

[0258] The first screen content display module 12 is specifically used for:

[0259] The step of displaying the first screen content of the target document in response to a document open operation on the target document includes:

[0260] In response to a document open operation for the target document, the first-screen snapshot data of the target document is read from the device storage space;

[0261] Perform a validity check on the read first-screen snapshot data to obtain the snapshot verification result;

[0262] When the snapshot verification result indicates that the first screen snapshot data has been successfully verified, the first screen content of the target document is rendered based on the read first screen snapshot data.

[0263] The first screen content display module 12 is specifically used for:

[0264] Retrieve the number of snapshot operations associated with the first-screen snapshot data of the target document from the device's storage space;

[0265] The number of read operations for the first screen snapshot data is determined based on the number of operation information in the first screen snapshot data.

[0266] The number of snapshot operations and the number of read operations are compared to obtain the operation count comparison result.

[0267] If the operation count comparison result indicates that the number of snapshot operations and the number of read operations are consistent, then a snapshot verification result is determined to indicate that the first screen snapshot data verification was successful.

[0268] The first screen content display module 12 is specifically used for:

[0269] The operation information is determined from the read first-screen snapshot data;

[0270] If the data structure of the operation information is the target data structure, then a snapshot verification result is determined to indicate the success of the first screen snapshot data verification.

[0271] The device storage space includes a first storage space and a second storage space; the read speed of the first storage space is higher than that of the second storage space.

[0272] The first screen content display module 12 is specifically used for:

[0273] In response to a document open operation for the target document, the first screen snapshot data of the target document is read from the first storage space;

[0274] If the first-screen snapshot data of the target document is not read in the first storage space, then the first-screen snapshot data of the target document is read from the second storage space.

[0275] The method is executed by the business device, and the document database is deployed on the business device;

[0276] The second primary screen content display module 13 is specifically used for:

[0277] Obtain the second document content of the target document from the document database in the business device;

[0278] The content of the second document is subjected to structural transformation processing to obtain the second document structure-transformed data with the target data structure;

[0279] In the document display page, the second document first screen content of the target document is rendered based on the second document structure transformation data.

[0280] The third primary screen content display module 14 is specifically used for:

[0281] Obtain the third document content of the target document from the document server, and store it in the document database based on the third document content of the target document;

[0282] The content of the third document is subjected to structural transformation processing to obtain the third document structure transformation data with the target data structure;

[0283] In the document display page, the third document first screen content of the target document is rendered based on the third document structure transformation data.

[0284] The snapshot generation module 15 is also used for:

[0285] The snapshot is cropped based on the content of the third document to obtain the first-screen snapshot update data of the target document, and the first-screen snapshot data is updated based on the first-screen snapshot update data.

[0286] Please see Figure 13 , Figure 13 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Figure 13 As shown, the computer device 1000 may include a processor 1001, a network interface 1004, and a memory 1005. Furthermore, the computer device 1000 may also include a user interface 1003 and at least one communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as at least one disk storage device. Optionally, the memory 1005 may also be at least one storage device located remotely from the processor 1001. Figure 13 As shown, the memory 1005, which is a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a device control application.

[0287] In such Figure 13 In the computer device 1000 shown, the network interface 1004 provides network communication functionality; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to execute the document display method described in any of the corresponding embodiments above, which will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated.

[0288] Furthermore, it should be noted that this application also provides a computer-readable storage medium storing computer programs executed by the aforementioned document display devices 1, 2, 3, and 4. The computer programs include program instructions, which, when executed by a processor, enable the execution of the document display methods described in the preceding embodiments; therefore, they will not be repeated here. Additionally, the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the embodiments of the computer-readable storage medium involved in this application, please refer to the description of the method embodiments of this application.

[0289] The aforementioned computer-readable storage medium can be the internal storage unit of the document display device or the computer device provided in any of the foregoing embodiments, such as the hard disk or memory of the computer device. The computer-readable storage medium can also be an external storage device of the computer device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on the computer device. Furthermore, the computer-readable storage medium can include both internal storage units and external storage devices of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.

[0290] Furthermore, it should be noted that this application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method provided in any of the preceding corresponding embodiments. Additionally, the beneficial effects of using the same method will not be repeated here. For technical details not disclosed in the embodiments of the computer program product or computer program involved in this application, please refer to the description of the method embodiments of this application.

[0291] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0292] The terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the term "comprising," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or device that includes a series of steps or units is not limited to the listed steps or modules, but may optionally include steps or modules not listed, or may optionally include other step units inherent to these processes, methods, apparatuses, products, or devices.

[0293] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0294] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A document display method characterized by, The method comprises: displaying a target document on a target page; in response to a document opening operation on the target document, displaying first document first-screen content of the target document; the first document first-screen content is obtained based on preloaded first-screen snapshot data of the target document; the first-screen snapshot data is obtained by snapshot cropping first document content of the target document.

2. The method of claim 1, wherein, The first document first-screen content is displayed on a document display page; The method further comprises: in the document display page, updating and displaying the first document first-screen content as second document first-screen content of the target document; the second document first-screen content is determined based on second document content of the target document recorded in a document database; the second document content is the same document content as the first document content, or the second document content is obtained by updating the content of the first document content.

3. The method of claim 2, wherein, The method further comprises: in the document display page, updating and displaying the second document first-screen content as third document first-screen content of the target document; the third document first-screen content is determined based on third document content of the target document recorded in a document server; the third document content is the same document content as the second document content, or the third document content is obtained by updating the content of the second document content.

4. The method of claim 1, wherein, The displaying of the target document on the target page comprises: displaying the target document on a document list page of a first object; the document list page is used to display documents for which the first object participates in collaboration; the target document belongs to the documents for which the first object participates in collaboration; the document list page belongs to the target page.

5. The method of claim 1, wherein, The displaying of the target document on the target page comprises: displaying the target document in a session page of a first object; the target document is a document received or sent by the first object; the session page belongs to the target page.

6. The method of claim 1, wherein, When displaying the target document on the target page, the method further comprises: when the preloading of the first-screen snapshot data of the target document is completed, displaying a preloading completion identifier in an associated area of the target document; the preloading completion identifier is used to indicate that the preloading of the first-screen snapshot data of the target document is completed.

7. The method of claim 1, wherein, The method is performed by a business device, and the business device comprises a device storage space; When displaying the target document on the target page, the method further comprises: obtaining first document content of the target document from a document server; based on the first document content, performing snapshot cropping to obtain first-screen snapshot data of the target document; preloading the first-screen snapshot data to the device storage space of the business device.

8. The method of claim 7, wherein, The method further comprises: performing structure conversion processing on the first document content to obtain first document structure conversion data with a target data structure; the first document structure conversion data comprises operation information, and the operation information at least comprises: operation type information, operation position information, change content information, and operation object information; Obtain the first-screen view model information associated with the first-screen content of the target document, and determine the number of snapshot operations corresponding to the operation information to be preloaded based on the first-screen view model information and the first document structure transformation data; Operation information matching the number of snapshot operations is extracted from the first document structure conversion data, and the extracted operation information is determined as the first screen snapshot data.

9. The method of claim 1, wherein, The method is executed by the business device, and the first screen snapshot data is stored in the device storage space of the business device. The step of displaying the first screen content of the target document in response to a document open operation on the target document includes: In response to a document open operation for the target document, the first-screen snapshot data of the target document is read from the device storage space; Perform a validity check on the read first-screen snapshot data to obtain the snapshot verification result; When the snapshot verification result indicates that the first screen snapshot data has been successfully verified, the first screen content of the target document is rendered based on the read first screen snapshot data.

10. The method of claim 9, wherein, The step of validating the read first-screen snapshot data to obtain the snapshot verification result includes: Retrieve the number of snapshot operations associated with the first-screen snapshot data of the target document from the device's storage space; The number of read operations for the first screen snapshot data is determined based on the number of operation information in the first screen snapshot data. The number of snapshot operations and the number of read operations are compared to obtain the operation count comparison result. If the operation count comparison result indicates that the number of snapshot operations and the number of read operations are consistent, then a snapshot verification result is determined to indicate that the first screen snapshot data verification was successful.

11. The method of claim 9, wherein, The step of validating the read first-screen snapshot data to obtain the snapshot verification result includes: The operation information is determined from the read first-screen snapshot data; If the data structure of the operation information is the target data structure, then a snapshot verification result is determined to indicate the success of the first screen snapshot data verification.

12. The method of claim 9, wherein, The device storage space includes a first storage space and a second storage space; the read speed of the first storage space is higher than that of the second storage space. The step of reading the first-screen snapshot data of the target document from the device storage space in response to a document open operation for the target document includes: In response to a document open operation for the target document, the first screen snapshot data of the target document is read from the first storage space; If the first-screen snapshot data of the target document is not read in the first storage space, then the first-screen snapshot data of the target document is read from the second storage space.

13. The method of claim 2, wherein, The method is executed by the business device, and the document database is deployed on the business device; The step of updating the first document's initial screen content to the second document's initial screen content on the document display page includes: Obtain the second document content of the target document from the document database in the business device; performing structural conversion processing on the second document content to obtain second document structural conversion data with a target data structure; rendering, in the document display page, second document first-screen content of the target document based on the second document structural conversion data.

14. The method of claim 3, wherein, The updating and displaying, in the document display page, of the second document first-screen content as third document first-screen content of the target document includes: obtaining third document content of the target document from the document server and storing the third document content of the target document into a document database based on the third document content of the target document; performing structural conversion processing on the third document content to obtain third document structural conversion data with the target data structure; rendering, in the document display page, third document first-screen content of the target document based on the third document structural conversion data.

15. The method of claim 14, wherein, The method further includes: performing snapshot clipping based on the third document content to obtain first-screen snapshot update data of the target document, and updating the first-screen snapshot data based on the first-screen snapshot update data.

16. A document display device characterized by comprising: The apparatus includes: a document display module configured to display a target document on a target page; a first first-screen content display module configured to display first document first-screen content of the target document in response to a document opening operation on the target document; the first document first-screen content is obtained based on preloaded first-screen snapshot data of the target document; the first-screen snapshot data is obtained by performing snapshot clipping on first document content of the target document.

17. A computer device, comprising: comprising a memory and a processor; the memory is connected to the processor, and the memory is configured to store a computer program; the processor is configured to call the computer program, so that the computer device executes the method in any one of claims 1-15.

18. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by the processor, so that the computer device with the processor executes the method in any one of claims 1-15.

19. A computer program product, characterised in that, comprising computer programs / instructions, which are executed by the processor to implement the method in any one of claims 1-15.