Page display method and device, electronic equipment and storage medium

By receiving access requests and obtaining business code and target text information, the multilingual project code bloated and slow loading speed is solved, and fast loading and efficient maintenance are achieved.

CN120216061APending Publication Date: 2025-06-27BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311811964.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

When developing multilingual front-end projects, text of multiple languages ​​is embedded in the development code, resulting in bloated code, slow loading speed, and affecting the user experience.

Method used

By receiving access requests, the business code and target text information of the page to be displayed are obtained, the text information is loaded according to the user's language type needs, the target text information and the business code are separated, and the text information processing tool is used to display the page to be displayed.

Benefits of technology

Improves the loading speed of the page to be displayed, improves user access experience, reduces user churn, and simplifies project maintenance and saves developers' maintenance time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120216061A_ABST
    Figure CN120216061A_ABST
Patent Text Reader

Abstract

The invention relates to a page display method and device, electronic equipment and a storage medium. The page display method comprises the following steps: receiving an access request, wherein the access request is used for accessing a to-be-displayed page; service codes and target text information of the to-be-displayed page are obtained, the service codes are used for achieving service functions in the to-be-displayed page, and the target text information represents text information corresponding to the language type of the to-be-displayed page; and displaying the to-be-displayed page based on the business code and the target text information. According to the method, the text information is loaded according to the language type requirement of the user, the loading speed of the to-be-displayed page can be increased, the speed of accessing the to-be-displayed page by the user is increased, the access experience of the user can be improved, user loss is reduced, the target text information is separated from the service code, the project is easier to maintain, and the user experience is improved. And the project maintenance time of developers can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and in particular, to a page display method, apparatus, electronic device, and storage medium. Background Art

[0002] When developing a front-end display page, the text to be displayed on the display page is usually embedded in the development code and coupled with the development code. However, for overseas front-end multilingual projects, multiple language types of text need to be provided in the display page. If the number of language types involved is large and the number of texts is also large, the code after the entire project is packaged will be extremely bloated and huge. The increase in code volume will cause the loading speed of the display interface at the user end to slow down, seriously affecting the user's page browsing experience and resulting in user loss. Summary of the Invention

[0003] To overcome the problems in the related art, the present disclosure provides a page display method, apparatus, electronic device, and storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a page display method is provided. The method includes:

[0005] Receiving an access request for accessing a page to be displayed;

[0006] Obtaining service code and target text information of the page to be displayed, where the service code is used to implement service functions in the page to be displayed, and the target text information represents text information corresponding to the language type of the page to be displayed;

[0007] Based on the service code and the target text information, displaying the page to be displayed.

[0008] In an exemplary embodiment, the obtaining service code and target text information of the page to be displayed includes:

[0009] Obtaining the service code;

[0010] Based on version identification information in a preset directory of the service code, obtaining the target text information.

[0011] In an exemplary embodiment, the obtaining the target text information based on version identification information in a preset directory of the service code includes:

[0012] Obtaining at least one text information corresponding to the version identification information, where each text information in the at least one text information corresponds to a language type;

[0013] Selecting the target text information from the at least one text information.

[0014] In an exemplary embodiment, displaying the page to be displayed based on the service code and the target text information includes:

[0015] Using a text information processing tool, matching the target text information with the service function, and displaying the page to be displayed.

[0016] In an exemplary embodiment, before receiving the access request, the method further includes:

[0017] Obtaining the service code and copywriting information of the page to be displayed, and the version identification information of the copywriting information;

[0018] Adding the version identification information to a preset directory of the service code through an update instruction in the service code.

[0019] In an exemplary embodiment, the method further includes:

[0020] Encapsulating the copywriting information into at least one text information according to the language type, and each text information in the at least one text information corresponds to a language type.

[0021] In an exemplary embodiment, the copywriting information corresponding to different version identification information is different.

[0022] According to a second aspect of the embodiments of the present disclosure, there is provided a page display device, including:

[0023] A receiving module, configured to receive an access request for accessing a page to be displayed;

[0024] An obtaining module, configured to obtain the service code and target text information of the page to be displayed, where the service code is used to implement the service function in the page to be displayed, and the target text information represents the text information corresponding to the language type of the page to be displayed;

[0025] A display module, configured to display the page to be displayed based on the service code and the target text information.

[0026] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:

[0027] A processor;

[0028] A memory for storing instructions executable by the processor;

[0029] Wherein, the processor is configured to execute the method described in the first aspect of the embodiments of the present disclosure.

[0030] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in the first aspect of the embodiments of the present disclosure.

[0031] Adopting the above method of the present disclosure has the following beneficial effects: Loading text information according to the user's language type requirements can improve the loading speed of the page to be displayed, accelerate the user's access speed to the page to be displayed, enhance the user's access experience, reduce user churn, and furthermore, separating the target text information from the business code makes the project easier to maintain and can save the project maintenance time of developers.

[0032] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.

[0034] Figure 1 is a flowchart of a page display method shown according to an exemplary embodiment;

[0035] Figure 2 is a flowchart of a page display method shown according to an exemplary embodiment;

[0036] Figure 3 is a flowchart of a page display method shown according to an exemplary embodiment;

[0037] Figure 4 is a block diagram of a page display device shown according to an exemplary embodiment;

[0038] Figure 5 is a block diagram of an electronic device shown according to an exemplary embodiment. DETAILED DESCRIPTION

[0039] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0040] In an exemplary embodiment of the present disclosure, to overcome the problem of slow loading of multi-language projects in the related art, a page display method is provided, including: receiving an access request for accessing a page to be displayed; obtaining the business code and target text information of the page to be displayed, where the business code is used to implement the business functions in the page to be displayed, and the target text information represents the text information corresponding to the language type of the page to be displayed; and displaying the page to be displayed based on the business code and the target text information. This method loads text information according to the user's language type requirements, can improve the loading speed of the page to be displayed, accelerate the user's access speed to the page to be displayed, can improve the user's access experience, reduce user churn, and furthermore, the separation of the target text information and the business code makes the project easier to maintain and can save the project maintenance time of developers.

[0041] In an exemplary embodiment of the present disclosure, a page display method is provided, Figure 1 which is a flowchart of a page display method shown according to an exemplary embodiment, as Figure 1 shown, and includes the following steps:

[0042] Step S101: Receive an access request for accessing a page to be displayed;

[0043] Step S102: Obtain the business code and target text information of the page to be displayed, where the business code is used to implement the business functions in the page to be displayed, and the target text information represents the text information corresponding to the language type of the page to be displayed;

[0044] Step S103: Display the page to be displayed based on the business code and the target text information.

[0045] The method in the embodiment of the present disclosure is applied to an electronic device, including electronic devices with a display function such as a smart phone, a tablet, a personal computer, a smart wearable device, and a vehicle-mounted computer.

[0046] In step S101, the page to be displayed represents the page that the user wants to view, which can be any display page in the electronic device, such as the desktop display of the electronic device, any display interface of an application program in the electronic device, etc. The page to be displayed provides display texts in multiple language types. The language type of the texts in the page to be displayed is determined according to the user's settings. For example, a language type option is added in the system settings of the electronic device, and the user can select the system language type through this option. Any display page in the system uses the system language type. The user can also select the language type of a certain application program through this option, so that this application program uses a different language type from other application programs. The access request represents a request for accessing the page to be displayed, that is, a request for loading and displaying the page to be displayed. For example, when the page to be displayed is the system desktop of the electronic device, after successfully unlocking the screen, the system desktop needs to be displayed, so an access request is received after successfully unlocking the screen. Another example is that when the page to be displayed is the display page corresponding to a certain button, an access request is received when it is detected that the user clicks the button.

[0047] In step S102, the service code is used to implement the service functions in the page to be displayed. The service functions include the functions of each button or other display icons in the page to be displayed. For example, the service function of the play button on the music playing page is to play music, and the service function of the next button is to switch to play the next music. Another example is that the service function of the submit button on the information editing page is to save the information edited by the user. The target text information represents the text information corresponding to the language type of the page to be displayed. The language type of the page to be displayed is determined according to the language type setting. The text information includes all the text information in the page to be displayed. For example, "Play" on the play button of the music playing page, "Next" on the next button, and "Submit" on the submit button. If the text information is the information in a picture, the picture including the text information is also used as the text information. When an access request is received, the service code and the target text information of the page to be displayed are respectively obtained from the server or the cache. When obtaining the target text information, if the page to be displayed provides text information corresponding to multiple language types, the target text information is selected from the text information corresponding to multiple language types. For example, the page to be displayed provides text information corresponding to two language types, namely Chinese and English, and the language type set by the user is Chinese, then the text information corresponding to Chinese is selected, that is, the target text information is obtained.

[0048] In step S103, the service code and the target text information are loaded. The service functions in the page to be displayed are implemented through the service code, and the text prompts corresponding to the service functions or other text contents are displayed through the target text information, so that the page to be displayed can be displayed.

[0049] In an exemplary embodiment of the present disclosure, when an access request for accessing a page to be displayed is received, the service code of the page to be displayed and the target text information corresponding to the language type of the page to be displayed are obtained, and the page to be displayed is displayed based on the service code and the target text information. Loading text information according to the user's language type requirement can improve the loading speed of the page to be displayed, avoid the problem of slow loading speed caused by excessive text information content, accelerate the user's access speed to the page to be displayed, improve the user's access experience, reduce user churn, and, separately obtaining the target text information and the service code means that the target text information and the service code are separated, which can avoid the problem of difficult maintenance caused by coupling the target text information and the service code together, making the project easier to maintain and saving the project maintenance time of developers.

[0050] In an exemplary embodiment of the present disclosure, a page display method is provided. Figure 2 It is a flowchart of a page display method shown according to an exemplary embodiment, as Figure 2 shown, and includes the following steps:

[0051] Step S201, receive an access request, where the access request is used to access a page to be displayed;

[0052] Step S202, obtain the service code;

[0053] Step S203, based on the version identification information in the preset directory of the service code, obtain the target text information;

[0054] Step S204, use a text information processing tool to match the target text information with the service function and display the page to be displayed.

[0055] Among them, for the specific implementation manner of step S201, refer to step S101, which will not be elaborated here.

[0056] In step S202, the access request includes the domain name information of the page to be displayed. According to the domain name information in the access request, a domain name resolution request is sent to the server. The server resolves the domain name to obtain an IP address and sends the IP address to the electronic device. The electronic device obtains the service code of the page to be displayed through the received IP address.

[0057] In step S203, the version identification information represents the information used to identify the version of the text information. The version identification information can be represented in any form. For example, different versions can be represented by Arabic numerals, or different versions can be represented by words, etc. The version of the text information is determined according to the version update or version rollback requirements. For example, in version 1.0, the text information "submit" is included. Subsequently, a new cancel business function is added. Then, "cancel" needs to be added in version 2.0. If it is subsequently found that there is an abnormality in the newly added cancel business function, at this time, it is necessary to roll back to version 1.0. The preset directory of the business code represents the location in the business code where the text information is stored. Since the version identification information corresponds to the text information of different versions, the version identification information is stored in the preset directory of the business code. Therefore, when the business code is loaded, the version identification information is obtained from the preset directory, and then the target text information is selected from the text information corresponding to the version identification information, and then the selected target text information is loaded, so that the target text information corresponding to the current version can be loaded.

[0058] In some embodiments, obtaining the target text information based on the version identification information in the preset directory of the business code includes:

[0059] Obtaining at least one text information corresponding to the version identification information, where each text information in the at least one text information corresponds to a language type;

[0060] Selecting the target text information from the at least one text information.

[0061] Each version identification information corresponds to at least one text information, each text information corresponds to a language type, each text information of each language type corresponds to a file, and the number of text information in each version identification information can be the same or different. For example, in version 1.0, there are 6 text information of different language types, and in version 2.0, two different language types are added, including 8 text information of different language types. After obtaining the version identification information in the preset directory of the business code, at least one text information corresponding to the version identification information can be obtained, and then the text information corresponding to the language type of the page to be displayed is selected from the at least one text information, and the target text information can be obtained.

[0062] After a user accesses a page to be displayed, to improve the access speed for the next time, a Content Delivery Network (CDN) caches the business code and target text information of the page to be displayed that has been loaded. If different versions of text information are not marked with version identification information, after the text information is updated, if the CDN cache is not cleared before accessing the page to be displayed again, the cached text information will still be loaded, resulting in the text information on the displayed page not being updated in a timely manner. In addition, if there is a problem with the current version of the text information and it needs to be rolled back to another version, it is impossible to quickly and accurately roll back to the previous version. In this embodiment, the target text information is loaded through the version identification information in the preset directory of the business code. When the version has not changed, the loading speed can be improved by loading the cached target text information. When the version changes, such as version update or version rollback, the target text information of the corresponding version can also be loaded in a timely manner, thereby solving the problem of incorrect page display caused by CDN caching and the problem of multiple CDN back-to-origin.

[0063] In step S204, after obtaining the business code and target text information, when loading the business code and target text information, a text information processing tool, such as a copywriting processing library or a multilingual processing tool, is used to match the target text information with the business functions. For example, when the target text information is the text information corresponding to Chinese, the button with the submit business function is matched with "submit", that is, "submit" is placed on the submit button. Thus, by matching all the words in the target text information with all the business functions, the page to be displayed can be shown.

[0064] In an exemplary embodiment of the present disclosure, a page display method is provided. Figure 3 It is a flowchart of a page display method shown according to an exemplary embodiment, as Figure 3 shown, and includes the following steps:

[0065] Step S301, obtain the business code and copywriting information of the page to be displayed, and the version identification information of the copywriting information. The business code is used to implement the business functions in the page to be displayed;

[0066] Step S302, encapsulate the copywriting information into at least one text information according to the language type. Each text information in the at least one text information corresponds to one language type;

[0067] Step S303, add the version identification information to the preset directory of the business code through the update instruction in the business code;

[0068] Step S304, receive an access request, and the access request is used to access the page to be displayed;

[0069] Step S305: Obtain the business code and target text information of the page to be displayed, where the target text information represents the text information corresponding to the language type of the page to be displayed.

[0070] Step S306: Based on the business code and target text information, display the page to be displayed.

[0071] Among them, for the specific implementation manners of steps S304 - S306, refer to the specific implementation manners of steps S101 - S103, or refer to the specific implementation manners of steps S201 - S204, which will not be elaborated here.

[0072] In step S301, during the development stage of the page to be displayed, separate the business code and copywriting information from the code library of the page to be displayed, and use them as independent code libraries respectively. Then, use a code management tool to associate the business code and copywriting information to ensure normal page display, where the copywriting information represents all the text information of all language types that can be displayed on the page to be displayed. In one example, use the submodule function of the code management tool git to associate the business code and copywriting information, set relevant running configurations in the business code to enable the normal operation of the business code, and store the copywriting information in a preset directory of the business code to associate the business code and copywriting information.

[0073] When obtaining the copywriting information, also obtain the version identification information of the copywriting information. In one example, when using the code management tool git, the version identification information is the id of the copywriting information submission record. Obtain the id of the submission code record of the copywriting information code library through an interface, use the version identification information as the directory name of the preset directory in the business code, and store the copywriting information in the directory corresponding to the version identification information.

[0074] In step S302, any copywriting information classification tool can be used to encapsulate the copywriting information corresponding to each version identification information into at least one text information according to the language type, and each text information corresponds to one language type. For example, use a scaffolding tool for code compilation and packaging to separate the copywriting information into different files according to the language type, and store the encapsulated at least one text information in the directory corresponding to the version identification information.

[0075] In step S303, the update instruction represents the update command of the copywriting information. To facilitate subsequent loading or updating of the copywriting information, integrate the update instruction into the business code, and then the version identification information corresponding to the copywriting information can be automatically added to the preset directory of the business code through the update instruction.

[0076] In some embodiments, steps S301 - S303 represent the development process of the page to be displayed, and steps S304 - S306 represent the access process after the page to be displayed goes online. The development process and the access process can be executed by the same electronic device or by different electronic devices.

[0077] In an exemplary embodiment of the present disclosure, a page display device is provided. Figure 4 It is a block diagram of a page display device shown according to an exemplary embodiment. As Figure 4 shown, the page display device includes:

[0078] A receiving module 401, configured to receive an access request, where the access request is used to access the page to be displayed;

[0079] An obtaining module 402, configured to obtain the service code and the target text information of the page to be displayed. The service code is used to implement the service functions in the page to be displayed, and the target text information represents the text information corresponding to the language type of the page to be displayed;

[0080] A display module 403, configured to display the page to be displayed based on the service code and the target text information.

[0081] In an exemplary embodiment, the obtaining module 402 is further configured to:

[0082] Obtain the service code;

[0083] Based on the version identification information in the preset directory of the service code, obtain the target text information.

[0084] In an exemplary embodiment, the obtaining module 402 is further configured to:

[0085] Obtain at least one text information corresponding to the version identification information, and each text information in the at least one text information corresponds to a language type;

[0086] Select the target text information from the at least one text information.

[0087] In an exemplary embodiment, the display module 403 is further configured to:

[0088] Use a text information processing tool to match the target text information with the service function and display the page to be displayed.

[0089] In an exemplary embodiment, the page display device further includes a processing module 404, configured to:

[0090] Obtain the service code and the copywriting information of the page to be displayed, as well as the version identification information of the copywriting information;

[0091] Add the version identification information to the preset directory of the service code through the update instruction in the service code.

[0092] In an exemplary embodiment, the processing module 404 is further configured to:

[0093] Encapsulate the copywriting information into at least one text information according to the language type, and each text information in the at least one text information corresponds to one language type.

[0094] In an exemplary embodiment, the copywriting information corresponding to different version identification information is different.

[0095] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method, and will not be elaborated here.

[0096] Figure 5 It is a block diagram of an electronic device 500 shown according to an exemplary embodiment.

[0097] Refer to Figure 5 , the electronic device 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, a sensor component 514, and a communication component 516.

[0098] The processing component 502 generally controls the overall operation of the electronic device 500, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0099] The memory 504 is configured to store various types of data to support the operation of the electronic device 500. Examples of these data include instructions for any application or method operating on the electronic device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0100] The power supply component 506 provides power for various components of the electronic device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 500.

[0101] The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of the touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0102] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further includes a speaker for outputting audio signals.

[0103] The I / O interface 512 provides an interface between the processing component 502 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power-on button, and a lock button.

[0104] The sensor assembly 514 includes one or more sensors for providing an assessment of various aspects of the status of the electronic device 500. For example, the sensor assembly 514 can detect the on / off state of the electronic device 500, the relative positioning of components, such as the display and keypad of the electronic device 500. The sensor assembly 514 can also detect a change in the position of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, the orientation or acceleration / deceleration of the electronic device 500, and a change in the temperature of the electronic device 500. The sensor assembly 514 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0105] The communication component 516 is configured to facilitate communication between the electronic device 500 and other devices in a wired or wireless manner. The electronic device 500 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0106] In an exemplary embodiment, the electronic device 500 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described method.

[0107] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 504 including instructions, is also provided. The above instructions can be executed by the processor 520 of the electronic device 500 to complete the above-described method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0108] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute a page display method, and the method includes any of the above methods.

[0109] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and examples are only illustrative, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0110] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A page display method, characterized in that, The method includes: Receiving an access request for accessing a page to be displayed; Obtaining the service code and target text information of the page to be displayed, where the service code is used to implement the service function in the page to be displayed, and the target text information represents the text information corresponding to the language type of the page to be displayed; Based on the service code and the target text information, displaying the page to be displayed.

2. The method according to claim 1, wherein The obtaining the service code and target text information of the page to be displayed includes: Obtaining the service code; Based on the version identification information in the preset directory of the service code, obtaining the target text information.

3. The method according to claim 2, characterized in that, The obtaining the target text information based on the version identification information in the preset directory of the service code includes: Obtaining at least one text information corresponding to the version identification information, where each of the at least one text information corresponds to a language type; Selecting the target text information from the at least one text information.

4. The method according to claim 1, wherein The displaying the page to be displayed based on the service code and the target text information includes: Using a text information processing tool to match the target text information with the service function and display the page to be displayed.

5. The method according to claim 1, characterized in that Before receiving the access request, the method further includes: Obtaining the service code and copywriting information of the page to be displayed, and the version identification information of the copywriting information; Adding the version identification information to the preset directory of the service code through an update instruction in the service code.

6. The method according to claim 5, wherein The method further includes: Encapsulating the copywriting information into at least one text information according to the language type, where each of the at least one text information corresponds to a language type.

7. The method according to claim 5, characterized in that, The copywriting information corresponding to different version identification information is different.

8. A page display device, characterized in that, The device includes: A receiving module configured to receive an access request for accessing a page to be displayed; An obtaining module configured to obtain the service code and target text information of the page to be displayed, where the service code is used to implement the service function in the page to be displayed, and the target text information represents the text information corresponding to the language type of the page to be displayed; A display module configured to display the page to be displayed based on the service code and the target text information.

9. An electronic device, characterized in that, Includes: A processor; A memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the method according to any one of claims 1-7.

10. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to execute the method according to any one of claims 1-7.