CN113296771A - Page display method, device, equipment and computer readable medium - Google Patents

Page display method, device, equipment and computer readable medium Download PDF

Info

Publication number
CN113296771A
CN113296771A CN202110519389.0A CN202110519389A CN113296771A CN 113296771 A CN113296771 A CN 113296771A CN 202110519389 A CN202110519389 A CN 202110519389A CN 113296771 A CN113296771 A CN 113296771A
Authority
CN
China
Prior art keywords
text
display
local
attribute
style data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110519389.0A
Other languages
Chinese (zh)
Inventor
孙国栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202110519389.0A priority Critical patent/CN113296771A/en
Publication of CN113296771A publication Critical patent/CN113296771A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The embodiment of the disclosure discloses a page display method, a page display device, electronic equipment and a computer readable medium. One embodiment of the method comprises: receiving rich text data issued by a server for text elements in a page to be displayed, wherein the rich text data comprises integral style data and local style data, and the local style data corresponds to action range information; setting the public attribute of the text element and the local attribute of the text element according to the overall style data, the local style data and the corresponding action range information; assigning values to the created text controls according to the public attributes and the local attributes to display the text elements; and for the non-text elements in the page to be displayed, acquiring executable codes corresponding to the non-text elements from the local to display the non-text elements. This embodiment achieves a balance between development effort volume and protocol lightweight.

Description

Page display method, device, equipment and computer readable medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a page display method, a page display device, page display equipment and a computer readable medium.
Background
Pages contain various types of elements such as pictures, text, buttons, and the like. The text has multiple formats, and different texts may have different attributes such as color, size, line spacing, and the like. The related page display technology can set the format by setting the properties of various display controls. In other technologies, all elements in a server page are organized according to a predetermined protocol, and a client receives data and then analyzes and displays the data.
However, when the format setting is performed in the above manner, there are often technical problems as follows:
when the setting is performed by setting the properties of a plurality of display controls, a page usually includes a large number of controls, each of which has a plurality of properties. During development, each attribute of each control is set one by one, development workload is large, repeatability is high, and a large amount of manpower and material resources are wasted. In addition, the large amount of code causes the installation package of the client to be large, and thus, more storage space is occupied. And the mode that all elements are issued by the server leads to complicated protocol and time-consuming analysis due to numerous elements (pictures, buttons, characters and the like).
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Some embodiments of the present disclosure propose page display methods, apparatuses, devices and computer readable media to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a page display method, including: receiving rich text data issued by a server for text elements in a page to be displayed, wherein the rich text data comprises integral style data and local style data, and the local style data corresponds to action range information; setting the public attribute of the text element and the local attribute of the text element according to the overall style data, the local style data and the corresponding action range information; assigning values to the created text controls according to the public attributes and the local attributes to display the text elements; and for the non-text elements in the page to be displayed, acquiring executable codes corresponding to the non-text elements from the local to display the non-text elements.
In a second aspect, some embodiments of the present disclosure provide a page display apparatus, the apparatus comprising: the receiving unit is configured to receive rich text data issued by a server for text elements in a page to be displayed, the rich text data comprises overall style data and local style data, and the local style data corresponds to action range information; the setting unit is configured to set the public attribute of the text element and the local attribute of the text element according to the overall style data, the local style data and the corresponding action range information; the display unit is configured to assign values to the created text controls according to the public attributes and the local attributes so as to display the text elements; and the display unit is further configured to locally acquire executable codes corresponding to the non-text elements for the non-text elements in the page to be displayed so as to display the non-text elements.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following advantages: different elements in the page are displayed in different ways to avoid the defects of a single way. Therefore, the problems of large development workload and large installation package volume caused by paying attention to setting of each attribute of the control can be solved. In addition, only for the text elements, the data issued by the server side needs to be received, so that the organization and the analysis protocol can be agreed only for the text elements, the protocol can be lightened, and the analysis time is saved. Therefore, balance between the development workload and protocol light weight can be realized.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is a schematic illustration of one application scenario of a page display method of some embodiments of the present disclosure;
FIG. 2 is a flow diagram of some embodiments of a page display method according to the present disclosure;
FIG. 3 is an exemplary diagram of rich text data of a page display method according to some embodiments of the present disclosure;
FIG. 4 is a flow diagram of further embodiments of a page display method according to the present disclosure;
FIG. 5 is a schematic structural diagram of some embodiments of a page display apparatus according to the present disclosure;
FIG. 6 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram of one application scenario of a page display method of some embodiments of the present disclosure.
In the application scenario of fig. 1, the execution subject of the page display method may be the smartphone 101. The page to be displayed may be any page, such as an item detail page, including a picture 102, buttons 103, text 104, and text 105. The text 104 and the text 105 have different formats such as font size, font style, and the like. Wherein, the text 104 and the text 105 are both text elements, and the picture 102 and the button 103 belong to non-text elements.
On the basis, the smart phone 101 may receive rich text data issued by a server. Wherein the rich text data includes overall style data and local style data. The local style data corresponds to coverage information. The overall style data may be used to represent a uniform format of all text in the page, and the local style data may be used to represent a format of a portion of the text. For example, the entire style data may be "regular script", and the partial style data may be "14-word, 8-word". The scope information corresponding to the local style data may be "(1, 5), (6, 17)". Wherein, (1,5) indicates that the action range is from the first character to the fifth character, and (6,17) has similar meanings. And then, setting the public attribute of the text element and the local attribute of the text element according to the overall style data, the local style data and the corresponding action range information. And then, assigning values to the created text control according to the public attributes and the local attributes to display the text elements, wherein the display effect is as shown in fig. 1. For the non-text elements (picture 102, button 103) in the page to be displayed, the smartphone 101 obtains the executable code corresponding to the non-text elements from the local to display the non-text elements, and the display effect is as shown in fig. 1.
The execution main body 101 may be hardware or software. When the execution main body is hardware, the execution main body can be implemented as a distributed cluster consisting of a plurality of servers or terminal devices, and can also be implemented as a single server or a single terminal device. When the execution body is embodied as software, it may be installed in the above-listed hardware devices. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
With continued reference to FIG. 2, a flow 200 of some embodiments of a page display method according to the present disclosure is shown. The page display method comprises the following steps:
step 201, for text elements in a page to be displayed, receiving rich text data issued by a server, where the rich text data includes whole style data and local style data, and the local style data corresponds to coverage information.
In some embodiments, the executing agent of the page display method (e.g., the smartphone shown in fig. 1) may receive rich text data from the server. The rich text data is data for displaying a text with a format. Wherein the rich text data includes overall style data and local style data. The overall style data may be used to characterize a uniform format of all text in a page. In practice, text in multiple formats is often included in each page. Although the text is in different formats, there are some common attributes. For example, the properties of line spacing, maximum number of lines of a string, etc. are generally uniform throughout the page. The local style data may be used to characterize the format of portions of text. For example, different text colors, font sizes, fonts, etc. have different local attributes. Since the local style data does not act on all texts, the local style data needs to have corresponding scope information for characterizing which texts the local style data acts on. Fig. 3 shows an example of rich text data. In the figure, reference numeral 301 denotes overall style data, which is used to specify that the global line spacing is "10" and the maximum line number is "2". The marks 302 and 305 are local style data. Optionally, the marker 302 is character string specifying information for specifying the pattern of the symbol "". Reference numeral 303 designates information for character positions. A mark 304 is character type specifying information for specifying the style of text of type "1". Marker 305 is a regular expression.
In some optional implementations of some embodiments, the scope information includes at least one of: character string specifying information, character type specifying information, character position specifying information, and a regular expression for specifying the scope of action. The character string specifying information may be used to specify a specific character string (e.g., a specifying symbol "rajy") among the character strings. The character type specifying information may be used to specify a specific type of character (e.g., specify a numeric type character). The character position specifying information is used to specify a character at a specific position (e.g., a character specifying a certain line). Optionally, the information of each scope of action may be mutually exclusive or compatible. Each scope information may correspond to a priority. Therefore, the problem that conflict occurs when different action range information corresponds to overlapped contents can be solved.
Step 202, setting the public attribute of the text element and the local attribute of the text element according to the overall style data, the local style data and the corresponding action range information.
In some embodiments, the execution body may set the common attribute of the text element and the local attribute of the text element according to the overall style data, the local style data, and the corresponding scope information. Specifically, the common attribute of the text element may be set according to the overall style data. And setting the local attribute of the text element according to the local style data and the corresponding action range information. For example, the entire style data may be a "regular script", and the partial style data may be a "14 th word, 8 th word". The scope information corresponding to the local style data may be "(1, 5), (6, 17)". At this time, all texts may be set to "regular script" as a whole. The first to fifth characters are set to "14 th word", and the sixth to seventeenth characters are set to "8 th word". In practice, the attribute value may be set by setting a field of the preset convention, for example, the setting font size may be: "fontSize": "20". Wherein fontSize is a field for characterizing the size of the font size. Or it may be: fontSize ═ 20.
And step 203, assigning values to the created text control according to the public attributes and the local attributes so as to display the text elements.
In some embodiments, the execution agent may assign a value to the created text control based on the common attribute and the local attribute pair. For example, the background color may be set by: background color ═ UIColor whiteColor.
Optionally, the type of parameters required for different systems may vary. Thus, for those fields in step 202, the type of parameters needed to invoke the system method may be translated from those fields, and the system method implementation settings may be invoked.
And 204, acquiring executable codes corresponding to the non-text elements from the local to display the non-text elements in the page to be displayed.
In some embodiments, for non-text elements (e.g., pictures, buttons, etc.) in a page to be displayed, corresponding executable code may be retrieved locally. The non-text elements are displayed by executing the executable code. The executable code corresponding to these non-textual elements may be code contained in an installation package for the application.
Some embodiments of the present disclosure display different elements in a page in different ways to avoid the drawbacks of a single way. Generally, there are more text elements of a page, and relatively fewer non-text elements. Therefore, for the text elements, the data issued by the server side is received, so that the problems of large development workload and large installation package volume caused by paying attention to setting each attribute of the control can be avoided. In addition, only for the text elements, the data issued by the server side needs to be received, so that the organization and the analysis protocol can be agreed only for the text elements, the protocol can be lightened, and the analysis time is saved. Therefore, balance between the development workload and protocol light weight can be realized.
With further reference to FIG. 4, a flow 400 of further embodiments of a page display method is shown. The process 400 of the page display method includes the following steps:
step 401, for the text elements in the page to be displayed, receiving rich text data issued by the server, where the rich text data includes whole style data and local style data, and the local style data corresponds to the coverage information.
And 402, setting the public attribute of the text element and the local attribute of the text element according to the overall style data, the local style data and the corresponding action range information.
In some embodiments, specific implementations of steps 401-402 and corresponding technical effects thereof may refer to those embodiments corresponding to fig. 2, and are not described herein again.
And step 403, receiving the text display configuration information issued by the server.
In some embodiments, the execution main body may further receive text display configuration information sent by the server. The text display configuration information may include text display position information, maximum text display width and height, and the like.
And 404, assigning values to the created text control according to the public attributes, the local attributes and the text display configuration information so as to display the text elements.
In some cases, the execution agent may first assign a value to the created text control based on the common and local attributes. On the basis, whether the attribute value of the text control needs to be modified or not is determined according to the text display configuration information. For example, the initial size of the text element may first be determined based on the common attribute, the local attribute. If the initial size is determined to be greater than the text size threshold in the text display configuration information, the text size threshold is determined to be the actual size of the text element. On this basis, the actual size is passed to the text control for display of the text element. If the initial size is less than or equal to the text size threshold in the text display configuration information, the display may be performed directly according to the initial size.
Step 405, for the non-text elements in the page to be displayed, obtaining the executable codes corresponding to the non-text elements from the local to display the non-text elements.
In some embodiments, the specific implementation of step 405 and the technical effect thereof may refer to step 204 in those embodiments corresponding to fig. 2, and are not described herein again.
As can be seen from fig. 4, compared with the description of some embodiments corresponding to fig. 2, the process 400 of the page display method in some embodiments corresponding to fig. 4 restricts the width and height of the text through the text display configuration information, so that the display size of the text can be effectively controlled.
With further reference to fig. 5, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a page display apparatus, which correspond to those shown in fig. 2, and which may be particularly applied in various electronic devices.
As shown in fig. 5, the page display apparatus 500 of some embodiments includes: a data receiving unit 501, a setting unit 502, and a display unit 503. The data receiving unit 501 is configured to receive rich text data issued by a server for text elements in a page to be displayed, where the rich text data includes whole style data and local style data, and the local style data corresponds to coverage information. The setting unit 502 is configured to set the common attribute of the text element and the local attribute of the text element according to the overall style data and the local style data and the corresponding scope information, respectively. The display unit 503 is configured to assign values to the created text controls according to the common attributes and the local attributes to display the text elements. The display unit 503 is further configured to, for a non-text element in the page to be displayed, locally acquire executable code corresponding to the non-text element to display the non-text element.
In some optional implementations of some embodiments, the scope information includes at least one of: character string specifying information, character type specifying information, character position specifying information, and a regular expression for specifying the scope of action.
In some optional implementations of some embodiments, the apparatus further comprises: the configuration information receiving unit is used for receiving the text display configuration information issued by the server; and the display unit 503 is further configured to: and assigning the established text control according to the public attribute, the local attribute and the text display configuration information so as to display the text element.
In some optional implementations of some embodiments, the apparatus 500 further comprises: an initial size determining unit configured to determine an initial size of the text element according to the common attribute and the local attribute; an actual size determination unit configured to determine a text size threshold as an actual size of the text element in response to determining that the initial size is greater than the text size threshold in the text display configuration information; a transfer unit configured to transfer the actual size to a text control to display the text element.
It will be understood that the elements described in the apparatus 500 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 500 and the units included therein, and are not described herein again.
Referring now to fig. 6, a block diagram of an electronic device (e.g., the terminal device of fig. 1) 600 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device in some embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving rich text data issued by a server for text elements in a page to be displayed, wherein the rich text data comprises integral style data and local style data, and the local style data corresponds to action range information; setting the public attribute of the text element and the local attribute of the text element according to the overall style data, the local style data and the corresponding action range information; assigning values to the created text controls according to the public attributes and the local attributes to display the text elements; and for the non-text elements in the page to be displayed, acquiring executable codes corresponding to the non-text elements from the local to display the non-text elements.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a data receiving unit, a setting unit, and a display unit. The names of the units do not form a limitation on the units themselves in some cases, for example, a receiving unit may also be described as a "unit that receives rich text data sent by a server".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A page display method includes:
receiving rich text data issued by a server for text elements in a page to be displayed, wherein the rich text data comprises integral style data and local style data, and the local style data corresponds to action range information;
setting the public attribute of the text element and the local attribute of the text element according to the overall style data, the local style data and the corresponding action range information;
assigning values to the created text control according to the public attributes and the local attributes so as to display the text elements;
and for the non-text elements in the page to be displayed, locally acquiring executable codes corresponding to the non-text elements to display the non-text elements.
2. The method of claim 1, wherein the scope information comprises at least one of:
character string specifying information, character type specifying information, character position specifying information, and a regular expression for specifying the scope of action.
3. The method of claim 1, wherein the method further comprises:
receiving text display configuration information issued by the server; and
the assigning the created text control according to the public attribute and the local attribute to display the text element includes:
and assigning a value to the created text control according to the public attribute, the local attribute and the text display configuration information so as to display the text element.
4. The method of claim 3, wherein assigning a value to the created text control for display of the text element according to the common attributes, the local attributes, and the text display configuration information comprises:
determining the initial size of the text element according to the public attribute and the local attribute;
in response to determining that the initial size is greater than a text size threshold in the text display configuration information, determining the text size threshold as an actual size of the text element;
passing the actual size to the text control for display of the text element.
5. A page display apparatus comprising:
the data receiving unit is configured to receive rich text data issued by a server for text elements in a page to be displayed, wherein the rich text data comprises overall style data and local style data, and the local style data corresponds to action range information;
a setting unit configured to set a common attribute of the text element and a local attribute of the text element according to the overall style data and the local style data and corresponding scope information, respectively;
a display unit configured to assign a value to the created text control according to the common attribute and the local attribute to display the text element;
the display unit is further configured to locally acquire, for a non-text element in the page to be displayed, an executable code corresponding to the non-text element to display the non-text element.
6. The apparatus of claim 5, wherein the scope information comprises at least one of:
character string specifying information, character type specifying information, character position specifying information, and a regular expression for specifying the scope of action.
7. The apparatus of claim 5, wherein the apparatus further comprises:
the configuration information receiving unit is used for receiving the text display configuration information issued by the server; and
the display unit is further configured to:
and assigning a value to the created text control according to the public attribute, the local attribute and the text display configuration information so as to display the text element.
8. The apparatus of claim 7, wherein the apparatus further comprises:
an initial size determining unit configured to determine an initial size of the text element according to the common attribute and the local attribute;
an actual size determination unit configured to determine the text size threshold as an actual size of the text element in response to determining that the initial size is greater than a text size threshold in the text display configuration information;
a transfer unit configured to transfer the actual size to the text control to display the text element.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-4.
CN202110519389.0A 2021-05-12 2021-05-12 Page display method, device, equipment and computer readable medium Pending CN113296771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110519389.0A CN113296771A (en) 2021-05-12 2021-05-12 Page display method, device, equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110519389.0A CN113296771A (en) 2021-05-12 2021-05-12 Page display method, device, equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN113296771A true CN113296771A (en) 2021-08-24

Family

ID=77321576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110519389.0A Pending CN113296771A (en) 2021-05-12 2021-05-12 Page display method, device, equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN113296771A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116070053A (en) * 2023-03-29 2023-05-05 杭州实在智能科技有限公司 Cross-platform RPA browser data acquisition method and system for information creation system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116070053A (en) * 2023-03-29 2023-05-05 杭州实在智能科技有限公司 Cross-platform RPA browser data acquisition method and system for information creation system
CN116070053B (en) * 2023-03-29 2023-06-30 杭州实在智能科技有限公司 Cross-platform RPA browser data acquisition method and system for information creation system

Similar Documents

Publication Publication Date Title
CN113031946B (en) Method and device for rendering page component
CN111459364B (en) Icon updating method and device and electronic equipment
CN112684968A (en) Page display method and device, electronic equipment and computer readable medium
CN111273830A (en) Data display method and device, electronic equipment and computer readable medium
CN111309304A (en) Method, device, medium and electronic equipment for generating IDL file
EP4134904A1 (en) Image special effect configuration method, image recognition method, apparatuses, and electronic device
CN110069186B (en) Method and equipment for displaying operation interface of application
CN112800363A (en) Page display method and device, electronic equipment and computer readable medium
CN113296771A (en) Page display method, device, equipment and computer readable medium
CN111756953A (en) Video processing method, device, equipment and computer readable medium
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN111754600A (en) Poster image generation method and device and electronic equipment
CN111177634A (en) Multi-language supporting file content loading method, device, equipment and medium
CN112307393A (en) Information issuing method and device and electronic equipment
CN113553123A (en) Data processing method and device, electronic equipment and storage medium
CN111338827B (en) Method and device for pasting form data and electronic equipment
CN114626332A (en) Content display method and device and electronic equipment
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN112445478A (en) Graphic file processing method, device, equipment and medium
CN112148417A (en) Page adjusting method and device, electronic equipment and computer readable medium
CN113961280A (en) View display method and device, electronic equipment and computer-readable storage medium
CN110865810A (en) Resource multiplexing method and device, electronic equipment and computer readable storage medium
CN111240718A (en) Theme updating method and device, electronic equipment and medium
CN111399730A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111787043A (en) Data request method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination