CN111026983B - Method, device, medium and electronic equipment for realizing hyperlink - Google Patents

Method, device, medium and electronic equipment for realizing hyperlink Download PDF

Info

Publication number
CN111026983B
CN111026983B CN201911070943.0A CN201911070943A CN111026983B CN 111026983 B CN111026983 B CN 111026983B CN 201911070943 A CN201911070943 A CN 201911070943A CN 111026983 B CN111026983 B CN 111026983B
Authority
CN
China
Prior art keywords
hyperlink
information
expression
formula
calculation result
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
Application number
CN201911070943.0A
Other languages
Chinese (zh)
Other versions
CN111026983A (en
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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201911070943.0A priority Critical patent/CN111026983B/en
Publication of CN111026983A publication Critical patent/CN111026983A/en
Application granted granted Critical
Publication of CN111026983B publication Critical patent/CN111026983B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The disclosure provides a method, a device, a medium and electronic equipment for realizing hyperlinks. The method comprises the following steps: obtaining a formula hyperlink expression; analyzing the formula hyperlink expression to obtain expression element information; wherein the expression element information includes: formula information or hyperlink object information; creating a corresponding first inheritance class instance according to the formula information; wherein, the first inheritance class is an inheritance class of an operation class and comprises a calculation function corresponding to the formula information; acquiring a calculation result corresponding to the formula information based on the calculation function; and acquiring a conventional hyperlink expression according to the calculation result and the hyperlink object information. According to the method and the device for setting the hyperlink information, the hyperlink of the formula is realized in the mode that the hyperlink information is set through the calculation result of the formula, the diversity of front-end information display is increased, and the use experience of a user is improved.

Description

Method, device, medium and electronic equipment for realizing hyperlink
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to a method, an apparatus, a medium, and an electronic device for implementing hyperlinks.
Background
Hyperlinks, which are essentially part of a web page, are elements that allow us to connect with other web pages or sites. After all the web pages are linked together, a website can be truly formed. By hyperlinks is meant a connection from one web page to a target, which may be another web page, a different location on the same web page, a picture, an email address, a file, or even an application. While the object used for hyperlinking in a web page may be a piece of text or a picture. When the browser clicks on the text or picture that has been linked, the linked object will be displayed on the browser and opened or run depending on the type of object.
In cells of a web page form, hyperlinks are typically entered or inserted into the cells. For example, a "www.feishu.cn" hyperlink is inserted in a cell.
In actual demand, a formula hyperlink is required. The formula hyperlink is a formula through which a calculation result can be obtained; meanwhile, the calculation result also has the function of hyperlink.
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.
The disclosure aims to provide a method, a device, a medium and an electronic device for realizing hyperlinks, which can solve at least one technical problem. The specific scheme is as follows:
according to a first aspect of the present disclosure, there is provided a method of implementing hyperlinks, comprising:
obtaining a formula hyperlink expression;
analyzing the formula hyperlink expression to obtain expression element information; wherein the expression element information includes: formula information or hyperlink object information;
creating a corresponding first inheritance class instance according to the formula information; wherein, the first inheritance class is an inheritance class of an operation class and comprises a calculation function corresponding to the formula information;
acquiring a calculation result corresponding to the formula information based on the calculation function;
acquiring a conventional hyperlink expression according to the calculation result and the hyperlink object information; wherein the conventional hyperlink expression comprises the following steps: the calculation result as display information and the hyperlink object information as hyperlink information.
According to a second aspect of the present disclosure, there is provided an apparatus for implementing hyperlinks, comprising:
the system comprises a formula hyperlink expression obtaining unit, a formula hyperlink expression obtaining unit and a formula hyperlink expression obtaining unit, wherein the formula hyperlink expression obtaining unit is used for obtaining a formula hyperlink expression;
the expression element information obtaining unit is used for analyzing the formula hyperlink expression and obtaining expression element information; wherein the expression element information includes: formula information or hyperlink object information;
a first inheritance class instance unit is created and is used for creating a corresponding first inheritance class instance according to the formula information; wherein, the first inheritance class is an inheritance class of an operation class and comprises a calculation function corresponding to the formula information;
the calculation result obtaining unit is used for obtaining a calculation result corresponding to the formula information based on the calculation function;
a conventional hyperlink expression obtaining unit, configured to obtain a conventional hyperlink expression according to the calculation result and the hyperlink object information; wherein the conventional hyperlink expression comprises the following steps: the calculation result as display information and the hyperlink object information as hyperlink information.
According to a third aspect of the disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of implementing hyperlinks according to any of the first aspects.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising: one or more processors; storage means for storing one or more programs which when executed by the one or more processors cause the one or more processors to implement the method of implementing hyperlinks as claimed in any of the first aspects.
Compared with the prior art, the scheme of the embodiment of the disclosure has at least the following beneficial effects:
the disclosure provides a method, a device, a medium and electronic equipment for realizing hyperlinks. The method comprises the following steps: obtaining a formula hyperlink expression; analyzing the formula hyperlink expression to obtain expression element information; wherein the expression element information includes: formula information or hyperlink object information; creating a corresponding first inheritance class instance according to the formula information; wherein, the first inheritance class is an inheritance class of an operation class and comprises a calculation function corresponding to the formula information; acquiring a calculation result corresponding to the formula information based on the calculation function; acquiring a conventional hyperlink expression according to the calculation result and the hyperlink object information; wherein the conventional hyperlink expression comprises the following steps: the calculation result as display information and the hyperlink object information as hyperlink information.
According to the method and the device for setting the hyperlink information, the hyperlink of the formula is realized in the mode that the hyperlink information is set through the calculation result of the formula, the diversity of front-end information display is increased, and the use experience of a user is improved.
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. In the drawings:
FIG. 1 illustrates a flow chart of a method of implementing hyperlinks in accordance with an embodiment of the present disclosure;
FIG. 2 illustrates a block diagram of elements of an apparatus for implementing hyperlinks in accordance with an embodiment of the present disclosure;
fig. 3 illustrates a schematic diagram of an electronic device connection structure according to an embodiment 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 have been shown in the accompanying drawings, it is to 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, but are provided to provide a more thorough and complete understanding of the present disclosure. 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 understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
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.
Alternative embodiments of the present disclosure are described in detail below with reference to the drawings.
The first embodiment provided for in this disclosure is an embodiment of a method of implementing hyperlinks.
Embodiments of the present disclosure are described in detail below with reference to fig. 1, where fig. 1 is a flowchart of a method for implementing hyperlinks provided by embodiments of the present disclosure.
Example 1
Step S101, a formula hyperlink expression is acquired.
In actual demand, a formula hyperlink is required. The formula hyperlink is a formula through which a calculation result can be obtained; meanwhile, the calculation result also has the function of hyperlink.
The formula hyperlink expression is used for describing the expression of the formula hyperlink through a preset fixed format. Wherein the formula hyperlink expression is composed of a plurality of expression element information. The expression element information includes: formula information or hyperlink object information. The hyperlink object information refers to target information to which the hyperlink points. For example, the hyperlink object information is "www.test.com"; the formula information "sum (a, b, c, d)"; the formula hyperlink expression is: hyperLINK1 ("www.test.com", sum (a, b, c, d)), where HyperLINK1 is a marker string of a formula HYPERLINK expression
And S102, analyzing the formula hyperlink expression to obtain expression element information.
And analyzing the formula hyperlink expression, namely decomposing the formula hyperlink expression into a plurality of expression element information according to the composition rule of the formula hyperlink expression.
Step S103, creating a corresponding first inheritance class instance according to the formula information.
In the disclosed embodiment, the operation class is a default class. All classes associated with formula information inherit from the same operational class.
Wherein the first inheritance class is an inheritance class of an operation class and comprises a calculation function corresponding to the formula information. The first inheritance class instance is an application of a class created for specific formula information.
The disclosed embodiments provide two specific embodiments for step S103:
in one embodiment, the creating the corresponding first inheritance class instance according to the formula information specifically includes the following steps:
step S103-11, creating a corresponding first inheritance class instance according to the function expression type in the formula information.
The specific embodiments of the disclosure classify according to characteristic information (or operator) of function operation in formula information, and obtain the type of function expression in the formula information. For example, feature information SUM (SUM of values in a specified range), AVERAGE (AVERAGE of values in a specified range), and COUNT (COUNT) of a function operation are set types; feature information DGET (extracting a single record satisfying a specified condition), MAX (return maximum value) and MIN (return minimum value) of the function operation are of a single type; the feature information LTRIM (with the null character on the left side of the string removed), RTRIM (with the null character on the right side of the string removed), LOWERCHAR (UPPERCHAR to UPPERCHAR) of the function operation is a character type; the feature information LOG (natural logarithm), ABS (absolute value), SQRT (square root) of the function operation are mathematical types.
In another embodiment, the creating the corresponding first inheritance class instance according to the formula information specifically includes the following steps:
step S103-21, creating a corresponding first inheritance class instance according to the output data type of the function expression in the formula information.
For example, the output data types of feature information SUM (SUM of values in a specified range), AVERAGE (AVERAGE of values in a specified range), COUNT (COUNT), dge (extract individual records satisfying specified conditions), MAX (return maximum value), and MIN (return minimum value) of the function operation are digital types; the output data types of the feature information LTRIM (with the blank character on the left side of the character string removed), RTRIM (with the blank character on the right side of the character string removed), LOWERCHAR (UPPERCHAR (LOWERCHAR to UPPERCHAR) are character types; the output data type of the feature information BOOL (converted to boolean) of the function operation is boolean.
Step S104, obtaining a calculation result corresponding to the formula information based on the calculation function.
For example, the formula information "sum (10, 11, 12, 13)", the calculation function is n=10+11+12+13, and the calculation result is 46.
And step S105, acquiring a conventional hyperlink expression according to the calculation result and the hyperlink object information.
Conventional hyperlink expressions refer to commonly used hyperlink expressions. For example, hyper (link, text), which is a logo string of a conventional HYPERLINK expression.
The conventional hyperlink expression comprises the following steps: the calculation result as display information and the hyperlink object information as hyperlink information.
For example, continuing with the example above, the calculation result is 46, the HYPERLINK object information is "www.test.com", and then the HYPERLINK is "www.test.com", 46.
The embodiment of the present disclosure further provides specific implementation manners of three application scenarios after step S105:
firstly, in the specific implementation manners of three application scenarios, the obtaining the formula hyperlink expression specifically includes the following steps:
in step S101-1, a formula hyperlink expression sent by a front-end object is obtained.
Application scenario one:
after the conventional hyperlink expression is obtained according to the calculation result and the hyperlink object information, the method further comprises the following steps:
and step S106a, returning the conventional hyperlink expression to the front-end object.
The default rendering information of the front-end object will be adopted after the conventional hyperlink expression is returned in this step.
The drawing information refers to display information of a conventional hyperlink expression. Comprising the following steps: font information, color information, and paragraph information.
And (2) an application scene II:
after the conventional hyperlink expression is obtained according to the calculation result and the hyperlink object information, the method further comprises the following steps:
step S106b, corresponding first drawing information is obtained according to the function expression type in the formula information.
Wherein the first rendering information is associated with the regular hyperlink expression.
Step S107b, returning the regular hyperlink expression and the first drawing information to the front-end object.
According to the application scene disclosed by the invention, different drawing information is returned according to different function expression types, so that the recognition degree of different function expression types is improved, and the user experience is also improved.
And (3) an application scene III:
after the conventional hyperlink expression is obtained according to the calculation result and the hyperlink object information, the method further comprises the following steps:
and step S106c, obtaining corresponding second drawing information according to the output data type of the function expression in the formula information.
Wherein the second rendering information is associated with the regular hyperlink expression;
and step S107c, returning the conventional hyperlink expression and the second drawing information to the front-end object.
According to the application scene, different drawing information is returned according to the output data types of different function expressions, so that the recognition degree of different output data types is improved, and the user experience is also improved.
Example two
Step S101, a formula hyperlink expression is acquired.
In actual demand, a formula hyperlink is required. The formula hyperlink is a formula through which a calculation result can be obtained; meanwhile, the calculation result also has the function of hyperlink.
The formula hyperlink expression is used for describing the expression of the formula hyperlink through a preset fixed format. Wherein the formula hyperlink expression is composed of a plurality of expression element information. The expression element information includes: formula information or hyperlink object information or operation class information.
A number of different classes of operations are provided in embodiments of the present disclosure. In the formula hyperlink expression, the operation class information may designate a corresponding operation class from a plurality of operation classes according to actual applications. Compared with the first embodiment, which adopts the default operation class, the embodiment of the disclosure increases the selection of the operation class, thereby improving the diversity of the display result.
The hyperlink object information refers to target information to which the hyperlink points.
For example, the hyperlink object information is "www.test.com"; the formula information "sum (a, b, c, d)"; the operation class includes: the method comprises the steps of assigning operation classes as spInfo2 classes, namely four classes of spInfo1, spInfo2, spInfo3 and spInfo 4; the formula hyperlink expression is: hyperLINK2 ("www.test.com", spInfo2, sum (a, b, c, d)), where HyperLINK2 is the tag string of the formula HYPERLINK expression
And S102, analyzing the formula hyperlink expression to obtain expression element information.
And analyzing the formula hyperlink expression, namely decomposing the formula hyperlink expression into a plurality of expression element information according to the composition rule of the formula hyperlink expression.
Step S103, creating a corresponding second inheritance class instance according to the formula information.
In the disclosed embodiment, the operation class is a specified class. All classes associated with formula information inherit from the same specified operational class. For example, continuing with the example above, the class of operations is designated as the spInfo2 class.
Wherein the second inheritance class is an inheritance class of a specified operation class, and comprises a calculation function corresponding to the formula information. The second inheritance class instance is an application of the class created for the specific formula information.
The disclosed embodiments provide two specific embodiments for step S103:
in one embodiment, the creating the corresponding second inheritance class instance according to the formula information specifically includes the following steps:
and step S103-11, creating a corresponding second inheritance class instance according to the function expression type in the formula information.
The specific embodiments of the disclosure classify according to characteristic information (or operator) of function operation in formula information, and obtain the type of function expression in the formula information. For example, feature information SUM (SUM of values in a specified range), AVERAGE (AVERAGE of values in a specified range), and COUNT (COUNT) of a function operation are set types; feature information DGET (extracting a single record satisfying a specified condition), MAX (return maximum value) and MIN (return minimum value) of the function operation are of a single type; the feature information LTRIM (with the null character on the left side of the string removed), RTRIM (with the null character on the right side of the string removed), LOWERCHAR (UPPERCHAR to UPPERCHAR) of the function operation is a character type; the feature information LOG (natural logarithm), ABS (absolute value), SQRT (square root) of the function operation are mathematical types.
In another embodiment, the creating the corresponding second inheritance class instance according to the formula information specifically includes the following steps:
step S103-21, creating a corresponding second inheritance class instance according to the output data type of the function expression in the formula information.
For example, the output data types of feature information SUM (SUM of values in a specified range), AVERAGE (AVERAGE of values in a specified range), COUNT (COUNT), dge (extract individual records satisfying specified conditions), MAX (return maximum value), and MIN (return minimum value) of the function operation are digital types; the output data types of the feature information LTRIM (with the blank character on the left side of the character string removed), RTRIM (with the blank character on the right side of the character string removed), LOWERCHAR (UPPERCHAR (LOWERCHAR to UPPERCHAR) are character types; the output data type of the feature information BOOL (converted to boolean) of the function operation is boolean.
Step S104, obtaining a calculation result corresponding to the formula information based on the calculation function.
For example, the formula information "sum (10, 11, 12, 13)", the calculation function is n=10+11+12+13, and the calculation result is 46.
And step S105, acquiring a conventional hyperlink expression according to the calculation result and the hyperlink object information.
Conventional hyperlink expressions refer to commonly used hyperlink expressions. For example, hyper (link, text), which is a logo string of a conventional HYPERLINK expression.
The conventional hyperlink expression comprises the following steps: the calculation result as display information and the hyperlink object information as hyperlink information.
For example, continuing with the example above, the calculation result is 46, the HYPERLINK object information is "www.test.com", and then the HYPERLINK is "www.test.com", 46.
The embodiment of the present disclosure further provides specific implementation manners of three application scenarios after step S105:
firstly, in the specific implementation manners of three application scenarios, the obtaining the formula hyperlink expression specifically includes the following steps:
in step S101-1, a formula hyperlink expression sent by a front-end object is obtained.
And application scene IV:
after the conventional hyperlink expression is obtained according to the calculation result and the hyperlink object information, the method further comprises the following steps:
and step S106a, returning the conventional hyperlink expression to the front-end object.
The default rendering information of the front-end object will be adopted after the conventional hyperlink expression is returned in this step.
The drawing information refers to display information of a conventional hyperlink expression. Comprising the following steps: font information, color information, and paragraph information.
Application scenario five:
after the conventional hyperlink expression is obtained according to the calculation result and the hyperlink object information, the method further comprises the following steps:
step S106b, corresponding first drawing information is obtained according to the function expression type in the formula information.
Wherein the first rendering information is associated with the regular hyperlink expression.
Step S107b, returning the regular hyperlink expression and the first drawing information to the front-end object.
According to the application scene disclosed by the invention, different drawing information is returned according to different function expression types, so that the recognition degree of different function expression types is improved, and the user experience is also improved.
Application scene six:
after the conventional hyperlink expression is obtained according to the calculation result and the hyperlink object information, the method further comprises the following steps:
and step S106c, obtaining corresponding second drawing information according to the output data type of the function expression in the formula information.
Wherein the second rendering information is associated with the regular hyperlink expression;
and step S107c, returning the conventional hyperlink expression and the second drawing information to the front-end object.
According to the application scene, different drawing information is returned according to the output data types of different function expressions, so that the recognition degree of different output data types is improved, and the user experience is also improved.
According to the method and the device for displaying the front-end information, the formula hyperlink is realized in the mode that the hyperlink information is set through the calculation result of the formula, the diversity of the front-end information display is increased, and the use experience of a user is improved.
Corresponding to the first embodiment provided by the present disclosure, the present disclosure also provides a second embodiment, namely an apparatus for implementing hyperlinks. Since the second embodiment is substantially similar to the first embodiment, the description is relatively simple, and the relevant portions will be referred to the corresponding descriptions of the first embodiment. The device embodiments described below are merely illustrative.
Fig. 2 illustrates an embodiment of an apparatus for implementing hyperlinks provided by the present disclosure. Fig. 2 is a block diagram of a unit of an apparatus for implementing hyperlinks provided in an embodiment of the present disclosure.
Referring to fig. 2, the disclosure provides an apparatus for implementing hyperlinks, including: the get formula hyperlink expression unit 201, the get expression element information unit 202, the create first inheritance class instance unit 203, the get calculation result unit 204, and the get regular hyperlink expression unit 205.
An acquire formula hyperlink expression unit 201 for acquiring a formula hyperlink expression;
the expression element information obtaining unit 202 is configured to parse the formula hyperlink expression and obtain expression element information; wherein the expression element information includes: formula information or hyperlink object information;
a first inheritance class instance creating unit 203, configured to create a corresponding first inheritance class instance according to the formula information; wherein, the first inheritance class is an inheritance class of an operation class and comprises a calculation function corresponding to the formula information;
an obtaining calculation result unit 204, configured to obtain a calculation result corresponding to the formula information based on the calculation function;
a conventional hyperlink expression acquisition unit 205, configured to acquire a conventional hyperlink expression according to the calculation result and the hyperlink object information; wherein the conventional hyperlink expression comprises the following steps: the calculation result as display information and the hyperlink object information as hyperlink information.
Optionally, in the creating a first inheritance class instance unit 203, it includes:
and the first creation first inheritance class instance subunit is used for creating a corresponding first inheritance class instance according to the function expression type in the formula information.
Optionally, in the creating a first inheritance class instance unit 203, it includes:
and a second creation first inheritance class instance subunit, configured to create a corresponding first inheritance class instance according to the output data type of the function expression in the formula information.
Optionally, the expression element information further includes: and calculating class information.
Optionally, in the obtaining formula hyperlink expression unit 201, it includes:
the first acquisition formula hyperlink expression subunit is used for acquiring a formula hyperlink expression sent by the front-end object;
in the apparatus, further comprising:
and the first return unit is used for returning the conventional hyperlink expression to the front-end object.
Optionally, in the obtaining formula hyperlink expression unit 201, it includes:
the second acquisition formula hyperlink expression subunit is used for acquiring a formula hyperlink expression sent by the front-end object;
in the apparatus, further comprising:
the first drawing information obtaining unit is used for obtaining corresponding first drawing information according to the function expression type in the formula information; wherein the first rendering information is associated with the regular hyperlink expression;
and a second returning unit for returning the normal hyperlink expression and the first drawing information to the front-end object.
Optionally, in the obtaining formula hyperlink expression unit 201, it includes:
a third obtaining formula hyperlink expression subunit, configured to obtain a formula hyperlink expression sent by the front-end object;
in the apparatus, further comprising:
the second drawing information obtaining unit is used for obtaining corresponding second drawing information according to the output data type of the function expression in the formula information; wherein the second rendering information is associated with the regular hyperlink expression;
and a third returning unit for returning the regular hyperlink expression and the second drawing information to the front-end object.
According to the method and the device for displaying the front-end information, the formula hyperlink is realized in the mode that the hyperlink information is set through the calculation result of the formula, the diversity of the front-end information display is increased, and the use experience of a user is improved.
An embodiment of the present disclosure provides a third embodiment, namely an electronic device, where the electronic device is configured to implement a method for hyperlinking, and the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the one processor to enable the at least one processor to perform the method of implementing hyperlinks as described in the first embodiment.
The present disclosure provides a fourth embodiment, namely a computer storage medium implementing hyperlinks, the computer storage medium storing computer-executable instructions executable to implement the method of implementing hyperlinks as described in the first embodiment.
Referring now to fig. 3, a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the 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), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 3, the electronic device may include a processing means (e.g., a central processor, a graphics processor, etc.) 301 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
In general, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 308 including, for example, magnetic tape, hard disk, etc.; and communication means 309. The communication means 309 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 3 shows an electronic device 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.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via a communication device 309, or installed from a storage device 308, or installed from a ROM 302. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing means 301.
It should be noted that the computer readable medium described in 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 the context of this 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 the present disclosure, however, the computer-readable signal medium may include 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 implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText TransferProtocol ), 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.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, 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 involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
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.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
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 persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (8)

1. A method of implementing hyperlinks, comprising:
obtaining a formula hyperlink expression;
analyzing the formula hyperlink expression to obtain expression element information; wherein the expression element information includes: formula information or hyperlink object information;
creating a corresponding first inheritance class instance according to the formula information; wherein, the first inheritance class is an inheritance class of an operation class and comprises a calculation function corresponding to the formula information;
acquiring a calculation result corresponding to the formula information based on the calculation function;
acquiring a conventional hyperlink expression according to the calculation result and the hyperlink object information; wherein the conventional hyperlink expression comprises the following steps: the calculation result as display information and the hyperlink object information as hyperlink information;
the obtaining the formula hyperlink expression includes:
acquiring a formula hyperlink expression sent by a front-end object;
after the conventional hyperlink expression is obtained according to the calculation result and the hyperlink object information, the method further comprises the following steps:
acquiring corresponding first drawing information according to a function expression type in the formula information, wherein the first drawing information is associated with the conventional hyperlink expression, and returning the conventional hyperlink expression and the first drawing information to the front-end object; or alternatively, the process may be performed,
and acquiring corresponding second drawing information according to the output data type of the function expression in the formula information, wherein the second drawing information is associated with the conventional hyperlink expression, and returning the conventional hyperlink expression and the second drawing information to the front-end object.
2. The method of claim 1, wherein creating a corresponding first inheritance class instance from the formula information comprises:
and creating a corresponding first inheritance class instance according to the function expression type in the formula information.
3. The method of claim 1, wherein creating a corresponding first inheritance class instance from the formula information comprises:
and creating a corresponding first inheritance class instance according to the output data type of the function expression in the formula information.
4. The method of claim 1, wherein the expression element information further comprises: and calculating class information.
5. The method of any of claims 1-4, wherein the obtaining a formula hyperlink expression comprises:
acquiring a formula hyperlink expression sent by a front-end object;
after the conventional hyperlink expression is obtained according to the calculation result and the hyperlink object information, the method further comprises the following steps:
the regular hyperlink expression is returned to the front-end object.
6. An apparatus for implementing hyperlinks, comprising:
the system comprises a formula hyperlink expression obtaining unit, a formula hyperlink expression obtaining unit and a formula hyperlink expression obtaining unit, wherein the formula hyperlink expression obtaining unit is used for obtaining a formula hyperlink expression;
the expression element information obtaining unit is used for analyzing the formula hyperlink expression and obtaining expression element information; wherein the expression element information includes: formula information or hyperlink object information;
a first inheritance class instance unit is created and is used for creating a corresponding first inheritance class instance according to the formula information; wherein, the first inheritance class is an inheritance class of an operation class and comprises a calculation function corresponding to the formula information;
the calculation result obtaining unit is used for obtaining a calculation result corresponding to the formula information based on the calculation function;
a conventional hyperlink expression obtaining unit, configured to obtain a conventional hyperlink expression according to the calculation result and the hyperlink object information; wherein the conventional hyperlink expression comprises the following steps: the calculation result as display information and the hyperlink object information as hyperlink information;
the formula hyperlink expression obtaining unit is also used for obtaining a formula hyperlink expression sent by the front-end object;
the device further comprises:
a first drawing information obtaining unit, configured to obtain corresponding first drawing information according to a function expression type in the formula information, where the first drawing information is associated with the conventional hyperlink expression, and a second returning unit, configured to return the conventional hyperlink expression and the first drawing information to the front-end object; or alternatively, the process may be performed,
and a second drawing information obtaining unit, configured to obtain corresponding second drawing information according to an output data type of a function expression in the formula information, where the second drawing information is associated with the conventional hyperlink expression, and a third returning unit, configured to return the conventional hyperlink expression and the second drawing information to the front-end object.
7. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1 to 5.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which when executed by the one or more processors cause the one or more processors to implement the method of any of claims 1 to 5.
CN201911070943.0A 2019-11-05 2019-11-05 Method, device, medium and electronic equipment for realizing hyperlink Active CN111026983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911070943.0A CN111026983B (en) 2019-11-05 2019-11-05 Method, device, medium and electronic equipment for realizing hyperlink

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911070943.0A CN111026983B (en) 2019-11-05 2019-11-05 Method, device, medium and electronic equipment for realizing hyperlink

Publications (2)

Publication Number Publication Date
CN111026983A CN111026983A (en) 2020-04-17
CN111026983B true CN111026983B (en) 2023-08-08

Family

ID=70200851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911070943.0A Active CN111026983B (en) 2019-11-05 2019-11-05 Method, device, medium and electronic equipment for realizing hyperlink

Country Status (1)

Country Link
CN (1) CN111026983B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008181526A (en) * 1996-05-06 2008-08-07 Microsoft Corp Method of solving selected hyperlink using soft hyperlink
US7467349B1 (en) * 2004-12-15 2008-12-16 Amazon Technologies, Inc. Method and system for displaying a hyperlink at multiple levels of prominence based on user interaction
CN102541946A (en) * 2010-12-31 2012-07-04 百度在线网络技术(北京)有限公司 Method and equipment for determining recommendation degree of hyperlink based on recommendation attribute of hyperlink
CN103136281A (en) * 2011-12-05 2013-06-05 英顺源(上海)科技有限公司 Web search result display system and method thereof
CN106202079A (en) * 2015-04-30 2016-12-07 阿里巴巴集团控股有限公司 Information getting method, device and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9892096B2 (en) * 2014-03-06 2018-02-13 International Business Machines Corporation Contextual hyperlink insertion
CN107451137A (en) * 2016-05-30 2017-12-08 联想(北京)有限公司 A kind of information processing method and the first electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008181526A (en) * 1996-05-06 2008-08-07 Microsoft Corp Method of solving selected hyperlink using soft hyperlink
US7467349B1 (en) * 2004-12-15 2008-12-16 Amazon Technologies, Inc. Method and system for displaying a hyperlink at multiple levels of prominence based on user interaction
CN102541946A (en) * 2010-12-31 2012-07-04 百度在线网络技术(北京)有限公司 Method and equipment for determining recommendation degree of hyperlink based on recommendation attribute of hyperlink
CN103136281A (en) * 2011-12-05 2013-06-05 英顺源(上海)科技有限公司 Web search result display system and method thereof
CN106202079A (en) * 2015-04-30 2016-12-07 阿里巴巴集团控股有限公司 Information getting method, device and system

Also Published As

Publication number Publication date
CN111026983A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN112184738B (en) Image segmentation method, device, equipment and storage medium
CN111784712B (en) Image processing method, device, equipment and computer readable medium
CN110516159B (en) Information recommendation method and device, electronic equipment and storage medium
CN111459364B (en) Icon updating method and device and electronic equipment
CN112287206A (en) Information processing method and device and electronic equipment
CN111597107B (en) Information output method and device and electronic equipment
CN110765752B (en) Test question generation method and device, electronic equipment and computer readable storage medium
CN111738316A (en) Image classification method and device for zero sample learning and electronic equipment
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
CN111797822A (en) Character object evaluation method and device and electronic equipment
CN111708680A (en) Error reporting information analysis method and device, electronic equipment and storage medium
CN113807056B (en) Document name sequence error correction method, device and equipment
CN113204557B (en) Electronic form importing method, device, equipment and medium
CN111026983B (en) Method, device, medium and electronic equipment for realizing hyperlink
CN111338827B (en) Method and device for pasting form data and electronic equipment
CN111258582B (en) Window rendering method and device, computer equipment and storage medium
CN111143355B (en) Data processing method and device
CN111027281B (en) Word segmentation method, device, equipment and storage medium
CN114416945A (en) Word cloud picture display method, device, equipment and medium
CN111738311A (en) Multitask-oriented feature extraction method and device and electronic equipment
CN116974684B (en) Map page layout method, map page layout device, electronic equipment and computer readable medium
CN111310031B (en) House source information display method, device, terminal and storage medium
CN111797932B (en) Image classification method, apparatus, device and computer readable medium
CN111797591B (en) Layout recovery method and device and electronic equipment
CN113032808B (en) Data processing method and device, readable medium and electronic equipment

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