CN113296771B - Page display method, device, equipment and computer readable medium - Google Patents
Page display method, device, equipment and computer readable medium Download PDFInfo
- Publication number
- CN113296771B CN113296771B CN202110519389.0A CN202110519389A CN113296771B CN 113296771 B CN113296771 B CN 113296771B CN 202110519389 A CN202110519389 A CN 202110519389A CN 113296771 B CN113296771 B CN 113296771B
- Authority
- CN
- China
- Prior art keywords
- text
- local
- display
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000000875 corresponding effect Effects 0.000 claims abstract description 31
- 230000009471 action Effects 0.000 claims abstract description 15
- 238000004590 computer program Methods 0.000 claims description 9
- 230000014509 gene expression Effects 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 claims description 2
- 230000004044 response Effects 0.000 claims description 2
- 238000011161 development Methods 0.000 abstract description 6
- 239000013585 weight reducing agent Substances 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 6
- 238000009434 installation Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000003086 colorant Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Embodiments of the present disclosure disclose a page display method, apparatus, electronic device, and computer-readable medium. One embodiment of the method comprises the following steps: for text elements in a page to be displayed, receiving rich text data issued by a server, wherein the rich text data comprises integral style data and local style data, and the local style data corresponds to the information of an action range; setting common attributes of the text elements and local attributes of the text elements according to the whole style data, the local style data and the corresponding action range information respectively; assigning the created text control according to the public attribute and the local attribute to display the text element; and for the non-text element in the page to be displayed, acquiring the executable code corresponding to the non-text element from the local so as to display the non-text element. This embodiment achieves a balance between development effort and protocol weight reduction.
Description
Technical Field
Embodiments of the present disclosure relate to the field of computer technology, and in particular, to a page display method, apparatus, device, and computer readable medium.
Background
The page contains various types of elements such as pictures, text, buttons, etc. Text is in various formats, and different text may differ in various attributes such as color, size, line spacing, etc. Related page display techniques may be formatted by setting properties of various presentation controls. Other technologies are that all elements in a server page are organized according to a preset protocol, and after receiving data, a client analyzes and displays the data.
However, when the format setting is performed in the above manner, there are often the following technical problems:
when set in a manner that sets properties of multiple presentation controls, a page typically contains a large number of controls, each having multiple properties. When developing, each attribute of each control is set one by one, the development workload is large, the repeatability is high, and a large amount of manpower and material resources are wasted. In addition, a large code amount may cause the installation package of the client to be large, which may occupy more storage space. All elements are issued by the server, and a plurality of elements (pictures, buttons, characters and the like) lead to complex protocols and time-consuming analysis.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure 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, the method including: for text elements in a page to be displayed, receiving rich text data issued by a server, wherein the rich text data comprises integral style data and local style data, and the local style data corresponds to the information of an action range; setting common attributes of the text elements and local attributes of the text elements according to the whole style data, the local style data and the corresponding action range information respectively; assigning the created text control according to the public attribute and the local attribute to display the text element; and for the non-text element in the page to be displayed, acquiring the executable code corresponding to the non-text element from the local so as to display the non-text element.
In a second aspect, some embodiments of the present disclosure provide a page display device, the device including: the receiving unit is configured to receive rich text data sent by the server side 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 the information of an action range; a setting unit configured to set a common attribute of the text element and a local attribute of the text element according to the whole style data and the local style data, respectively, and the corresponding scope information; the display unit is configured to assign values to the created text controls according to the public attribute and the local attribute so as to display the text elements; and the display unit is further configured to obtain executable codes corresponding to the non-text elements from the local 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 causes the one or more processors to implement the method described in any of the implementations of the first aspect above.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
The above embodiments of the present disclosure have the following advantageous effects: the different elements in the page are displayed in different ways to avoid the defect of a single way. Therefore, the problems of large development workload and large installation package volume caused by taking notice of setting each attribute of the control can be avoided. In addition, since only the text elements need to be received, the data issued by the server side can be organized and analyzed only for the text elements, so that the protocol can be light and analysis time can be saved. Thus, the balance between the development work amount and the protocol weight can be realized.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components 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 chart of some embodiments of a page display method according to the present disclosure;
FIG. 3 is an exemplary schematic diagram of rich text data of a page display method according to some embodiments of the present disclosure;
FIG. 4 is a flow chart of other embodiments of a page display method according to the present disclosure;
FIG. 5 is a schematic diagram of the structure of some embodiments of a page display device 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 should be understood that the present 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 so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such 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 an 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 smart phone 101. The page to be displayed may be any page, such as an item detail page, including a picture 102, a button 103, text 104, text 105. Wherein the text 104 and text 105 differ in terms of font size, font style, etc. Wherein, text 104 and text 105 are text elements, and picture 102 and button 103 are non-text elements.
On the basis, the smart phone 101 can receive the rich text data sent by the server. Wherein the rich text data includes global style data and local style data. The local style data corresponds to the scope information. Wherein the global style data may be used to characterize the unified format of all text in the page and the local style data may be used to characterize the format of a portion of the text. For example, the whole style data may be "regular script", and the partial style data may be "No. 14, no. 8". The range information corresponding to the local pattern data may be "(1, 5), (6, 17)". Wherein (1, 5) represents the range of action from the first to the fifth character, and (6, 17) has similar meaning. Then, the common attribute of the text element and the local attribute of the text element are set according to the whole style data, the local style data and the corresponding action range information respectively. And then, assigning the created text control according to the public attribute and the local attribute to display the text element, wherein the display effect is shown in figure 1. For non-text elements (pictures 102, buttons 103) in the page to be displayed, the smart phone 101 obtains executable codes corresponding to the non-text elements locally to display the non-text elements, and the display effect is shown in fig. 1.
Note that, the execution body 101 may be hardware, or may be software. When the execution body is hardware, the execution body may be implemented as a distributed cluster formed by a plurality of servers or terminal devices, or may 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 device. It may be implemented as a plurality of software or software modules, for example, for providing distributed services, or as a single software or software module. The present invention 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 overall style data and local style data, and the local style data corresponds to the information of the scope of action.
In some embodiments, an executing body of the page display method (e.g., a smart phone shown in fig. 1) may receive rich text data from a server. Wherein the rich text data is data for displaying text with a format. Wherein the rich text data includes global style data and local style data. The overall style data may be used to characterize the unified format of all text in the page. In practice, text in multiple formats is often included in each page. These texts, although in different formats, have some common attributes. For example, attributes such as 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 the partial text. For example, the local properties of different text colors, font sizes, fonts, etc. are different. Since the local style data does not act on all texts, the local style data needs to correspond to the 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 pattern data, which designates a global line pitch as "10" and a maximum line number as "2". Reference numerals 302-305 in the figure are partial style data. Alternatively, the mark 302 is character string specification information for specifying the pattern of the symbol "". The mark 303 designates information for the character position. A reference numeral 304 is character type specification information for specifying a style of text of type "1". The marker 305 is a regular expression.
In some alternative implementations of some embodiments, the scope information includes at least one of: character string specification information, character type specification information, character position specification information, regular expressions for specifying an action range. Wherein the character string specification information may be used to specify a specific character string (e.g., specify a symbol ""). The character type specification information may be used to specify a specific type of character (e.g., to specify numeric type characters). The character position specification information is used to specify a character at a specific position (e.g., specify a character of a certain line). Optionally, the information of each action range can be mutually exclusive or compatible. Each item of scope information may correspond to a priority. Thus, the problem that conflicts occur when different scope information corresponds to overlapping content can be solved.
Step 202, setting the public attribute of the text element and the local attribute of the text element according to the whole style data, the local style data and the corresponding action range information respectively.
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 global style data and the local style data and the corresponding scope information, respectively. Specifically, the common attribute of the text element may be set according to the overall style data. And setting local attributes of the text elements according to the local style data and the corresponding action range information. For example, the whole style data may be "regular script" and the partial style data may be "No. 14, no. 8". The range information corresponding to the local pattern data may be "(1, 5), (6, 17)". At this time, all texts may be set as a whole as "regular script". The first to fifth characters are set to "No. 14", and the sixth to seventeenth characters are set to "No. 8". In practice, the attribute value of the field of the preset contract can be set, for example, the set word size can be: "fontSize": "20". Wherein fontSize is a field for characterizing the size of the word size. Or may also be: fontSize = 20.
And 203, assigning the created text control according to the public attribute and the local attribute to display the text element.
In some embodiments, the execution body may assign a value to the created text control based on the common attribute and the local attribute. For example, setting the background color may be performed by: label. Backgroudcolor= [ UIColor whiteColor ].
Alternatively, the type of parameters required for different systems may vary. Thus, for those fields in step 202, the parameter types required to invoke the system method may be translated based on those fields so that the system method may be invoked to effect the setting.
Step 204, for the non-text element in the page to be displayed, obtaining the executable code corresponding to the non-text element from the local to display the non-text element.
In some embodiments, for non-text elements (e.g., elements of a picture, button, etc.) in a page to be displayed, the 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-text elements may be code contained in an installation package of 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. In general, pages have more text elements, and relatively fewer non-text elements. Therefore, for the text element, the data issued by the server is received, so that the problems of large development workload and large installation package volume caused by taking notice of setting each attribute of the control can be avoided. In addition, since only the text elements need to be received, the data issued by the server side can be organized and analyzed only for the text elements, so that the protocol can be light and analysis time can be saved. Thus, the balance between the development work amount and the protocol weight can be realized.
With further reference to FIG. 4, a flow 400 of further embodiments of a page display method is shown. The page display method flow 400 includes the following steps:
step 401, for text elements in a page to be displayed, receiving rich text data issued by a server, where the rich text data includes overall style data and local style data, and the local style data corresponds to the information of the scope of action.
Step 402, setting the common attribute of the text element and the local attribute of the text element according to the whole style data and the local style data and the corresponding action range information respectively.
In some embodiments, the specific implementation of steps 401-402 and the corresponding technical effects may refer to those embodiments corresponding to fig. 2, and are not described herein.
Step 403, receiving text display configuration information issued by the server.
In some embodiments, the execution body may further receive text display configuration information sent by the server. The text display configuration information may include text display position information, maximum display width and height of text, and the like.
And step 404, assigning a value to the created text control to display the text element according to the public attribute, the local attribute and the text display configuration information.
In some facts, the execution body may first assign a value to the created text control based on a common attribute, a local attribute. On the basis, whether the attribute value of the text control needs to be modified is determined according to the text display configuration information. For example, the initial size of the text element may be first 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 can be performed directly according to the initial size.
Step 405, for the non-text element in the page to be displayed, obtaining the executable code corresponding to the non-text element from the local to display the non-text element.
In some embodiments, the specific implementation of step 405 and the technical effects thereof may refer to step 204 in those embodiments corresponding to fig. 2, which are not described herein.
As can be seen from fig. 4, compared with the description of some embodiments corresponding to fig. 2, the flow 400 of the page display method in some embodiments corresponding to fig. 4 constrains 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 method shown in the above figures, the present disclosure provides some embodiments of a page display device, which correspond to those method embodiments shown in fig. 2, and which are particularly applicable in various electronic apparatuses.
As shown in fig. 5, the page display device 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, for a text element in a page to be displayed, rich text data sent by a server, where the rich text data includes global style data and local style data, and the local style data corresponds to the scope information. The setting unit 502 is configured to set a common attribute of the text element and a local attribute of the text element according to the whole 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 for displaying the text elements according to the common attribute and the local attribute. The display unit 503 is further configured to obtain, for the non-text element in the page to be displayed, executable code corresponding to the non-text element locally to display the non-text element.
In some alternative implementations of some embodiments, the scope information includes at least one of: character string specification information, character type specification information, character position specification information, regular expressions for specifying an action range.
In some alternative implementations of some embodiments, the apparatus further comprises: the configuration information receiving unit is used for receiving text display configuration information issued by the server; and the display unit 503 is further configured to: and assigning the created text control to display the text element according to the public attribute, the local attribute and the text display configuration information.
In some alternative implementations of some embodiments, the apparatus 500 further includes: an initial size determining unit configured to determine an initial size of the text element based on the common attribute, the local attribute; a real size determining unit configured to determine a text size threshold as a real size of the text element in response to determining that the initial size is larger than the text size threshold in the text display configuration information; and the transmission unit is configured to transmit the actual size to the text control to display the text element.
It will be appreciated that the elements described in the apparatus 500 correspond to the various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting benefits described above with respect to the method are equally applicable to the apparatus 500 and the units contained therein, and are not described in detail herein.
Referring now to fig. 6, a schematic 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 devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, as well as stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to 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 required 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 through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic 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 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 6 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts 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 shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications device 609, or from storage device 608, or from ROM 602. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
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. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 present 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, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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, fiber optic cables, RF (radio frequency), and the like, 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 be interconnected with any form or medium of digital data communication (e.g., a communication 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 networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated 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: for text elements in a page to be displayed, receiving rich text data issued by a server, wherein the rich text data comprises integral style data and local style data, and the local style data corresponds to the information of an action range; setting common attributes of the text elements and local attributes of the text elements according to the whole style data, the local style data and the corresponding action range information respectively; assigning the created text control according to the public attribute and the local attribute to display the text element; and for the non-text element in the page to be displayed, acquiring the executable code corresponding to the non-text element from the local so as to display the non-text element.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts 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 means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes a data receiving unit, a setting unit, and a display unit. The names of these units do not limit the unit itself in some cases, and for example, the receiving unit may also be described as "a unit that receives the rich text data sent by the server".
The functions described above herein 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: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being 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 technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.
Claims (10)
1. A page display method, comprising:
For text elements in a page to be displayed, receiving rich text data issued by a server, wherein the rich text data comprises integral style data and local style data, and the local style data corresponds to the information of an action range;
setting public attributes of the text elements and local attributes of the text elements according to the whole style data, the local style data and corresponding action range information respectively;
assigning a value to the created text control according to the public attribute and the local attribute so as to display the text element;
And for the non-text element in the page to be displayed, locally acquiring an executable code corresponding to the non-text element to display the non-text element.
2. The method of claim 1, wherein the scope information comprises at least one of:
Character string specification information, character type specification information, character position specification information, regular expressions for specifying an action range.
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 comprises the following steps:
And assigning the created text control to display the text element according to the public attribute, the local attribute and the text display configuration information.
4. The method of claim 3, wherein the assigning the created text control to display the text element according to the common attribute, the local attribute, and the text display configuration information comprises:
Determining the initial size of the text element according to the public attribute and the local attribute;
Responsive 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;
and transmitting the actual size to the text control to display the text element.
5. A page display device, comprising:
The data receiving unit is configured to receive rich text data issued by a server side 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 the information of an action range;
A setting unit configured to set a common attribute of the text element and a local attribute of the text element according to the whole style data and the local style data and the corresponding scope information, respectively;
A display unit configured to assign values to the created text controls according to the public attribute and the local attribute to display the text elements;
The display unit is further configured to obtain executable codes corresponding to the non-text elements from local for the non-text elements in the page to be displayed so as to display the non-text elements.
6. The apparatus of claim 5, wherein the scope information comprises at least one of:
Character string specification information, character type specification information, character position specification information, regular expressions for specifying an action range.
7. The apparatus of claim 5, wherein the apparatus further comprises:
The configuration information receiving unit is used for receiving text display configuration information issued by the server; and
The display unit is further configured to:
And assigning the created text control to display the text element according to the public attribute, the local attribute and the text display configuration information.
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, the local attribute;
A real size determining unit configured to determine the text size threshold as a real size of the text element in response to determining that the initial size is larger than a text size threshold in the text display configuration information;
And the transmission unit is configured to transmit the actual size to the text control so as 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, causes the one or more processors to implement the method of any of claims 1-4.
10. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110519389.0A CN113296771B (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 CN113296771B (en) | 2021-05-12 | 2021-05-12 | Page display method, device, equipment and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113296771A CN113296771A (en) | 2021-08-24 |
CN113296771B true CN113296771B (en) | 2024-09-20 |
Family
ID=77321576
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110519389.0A Active CN113296771B (en) | 2021-05-12 | 2021-05-12 | Page display method, device, equipment and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113296771B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116070053B (en) * | 2023-03-29 | 2023-06-30 | 杭州实在智能科技有限公司 | Cross-platform RPA browser data acquisition method and system for information creation system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20100129588A (en) * | 2009-06-01 | 2010-12-09 | 엘지전자 주식회사 | Image display device and operating method for the same |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2300991B (en) * | 1995-05-15 | 1997-11-05 | Andrew Macgregor Ritchie | Serving signals to browsing clients |
CN103559184B (en) * | 2013-07-29 | 2017-03-01 | 北京九恒星科技股份有限公司 | The display packing of forms pages and device |
US10360288B2 (en) * | 2017-01-25 | 2019-07-23 | International Business Machines Corporation | Web page design snapshot generator |
CN111124564A (en) * | 2019-11-25 | 2020-05-08 | 深圳市融壹买信息科技有限公司 | Method and device for displaying user interface |
-
2021
- 2021-05-12 CN CN202110519389.0A patent/CN113296771B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20100129588A (en) * | 2009-06-01 | 2010-12-09 | 엘지전자 주식회사 | Image display device and operating method for the same |
Also Published As
Publication number | Publication date |
---|---|
CN113296771A (en) | 2021-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112684968A (en) | Page display method and device, electronic equipment and computer readable medium | |
US11861381B2 (en) | Icon updating method and apparatus, and electronic device | |
CN111367516A (en) | Application interface generation method and device and electronic equipment | |
CN111273830A (en) | Data display method and device, electronic equipment and computer readable medium | |
CN111177634A (en) | Multi-language supporting file content loading method, device, equipment and medium | |
CN111324834B (en) | Method, device, electronic equipment and computer readable medium for image-text mixed arrangement | |
CN113553123B (en) | Data processing method, device, electronic equipment and storage medium | |
CN113296771B (en) | Page display method, device, equipment and computer readable medium | |
EP4134904A1 (en) | Image special effect configuration method, image recognition method, apparatuses, and electronic device | |
CN112558933B (en) | Component rendering method and device, readable medium and electronic equipment | |
CN111338827B (en) | Method and device for pasting form data and electronic equipment | |
CN111783010B (en) | Webpage blank page monitoring method, device, terminal and storage medium | |
CN110489326B (en) | IDS-based HTTPAPI debugging method device, medium and equipment | |
CN110069186B (en) | Method and equipment for displaying operation interface of application | |
CN109669720B (en) | Chain type asynchronous request processing method and device based on Promise and electronic equipment | |
CN110618811B (en) | Information presentation method and device | |
CN113961280A (en) | View display method and device, electronic equipment and computer-readable storage medium | |
CN111752644A (en) | Interface simulation method, device, equipment and storage medium | |
WO2023151572A1 (en) | Landing page processing method and apparatus | |
CN113220293B (en) | Page display method, page display device, electronic equipment and computer readable medium | |
CN112445478B (en) | Graphic file processing method, device, equipment and medium | |
CN110427584A (en) | Page generation method, device, electronic equipment and computer readable storage medium | |
CN111338621B (en) | Method, apparatus, electronic device and computer readable medium for displaying data | |
CN112346728B (en) | Device adaptation method, apparatus, device and computer readable medium | |
CN110865810A (en) | Resource multiplexing method and device, electronic equipment and computer readable storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |