CN115510349A - Browser version switching method, device, equipment and medium - Google Patents

Browser version switching method, device, equipment and medium Download PDF

Info

Publication number
CN115510349A
CN115510349A CN202211241617.3A CN202211241617A CN115510349A CN 115510349 A CN115510349 A CN 115510349A CN 202211241617 A CN202211241617 A CN 202211241617A CN 115510349 A CN115510349 A CN 115510349A
Authority
CN
China
Prior art keywords
page
version
browser
displayed
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211241617.3A
Other languages
Chinese (zh)
Inventor
梁淼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202211241617.3A priority Critical patent/CN115510349A/en
Publication of CN115510349A publication Critical patent/CN115510349A/en
Pending legal-status Critical Current

Links

Images

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/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a browser version switching method, device, equipment and medium, and relates to the technical field of internet. The method comprises the following steps: determining a target page identification of a page to be displayed in a browser and a target version of the browser adaptive to the page to be displayed; adjusting the browser version adaptive to the main page of the page to be displayed into a target version; and refreshing the updated main page, and displaying the page to be displayed according to the target page identifier. By adopting the technical scheme, the browser version adaptive to the main page of the page to be displayed can be automatically adjusted according to the target version of the browser adaptive to the page to be displayed in the browser, so that the page to be displayed is displayed according to the target version of the browser adaptive to the page to be displayed, and the compatibility of browser version switching is realized.

Description

Browser version switching method, device, equipment and medium
Technical Field
The embodiment of the application relates to the technical field of internet, in particular to a browser version switching method, device, equipment and medium.
Background
With the continuous change of browser versions, parent pages and child pages which are different in adapting browser versions may exist in each webpage. Compatibility issues may arise where a page runs in a different browser version than the browser version it is adapted to.
The main way to solve this problem is to set up a compatible view of the browser and modify the document schema. If the compatibility view of the browser is not set, the browser has compatibility problems when running all pages; if the document mode of the browser is kept unchanged, the browser runs the page which is not adapted to the browser, and the compatibility problem occurs.
Disclosure of Invention
The application provides a browser version switching method, device, equipment and medium, so as to realize the compatibility of browser version switching.
In a first aspect, an embodiment of the present application provides a browser version switching method, where the method includes:
determining a target page identification of a page to be displayed in a browser and a target version of the browser adaptive to the page to be displayed;
adjusting the browser version adaptive to the main page of the page to be displayed into a target version;
and refreshing the updated main page, and displaying the page to be displayed according to the target page identifier.
In a second aspect, an embodiment of the present application further provides a device for switching browser versions, where the device includes:
the page information determining module is used for determining a target page identifier of a page to be displayed in the browser and a target version of the browser adaptive to the page to be displayed;
the version adjusting module is used for adjusting the browser version matched with the main page of the page to be displayed into a target version;
and the page display module is used for refreshing the updated main page and displaying the page to be displayed according to the target page identifier.
In a third aspect, an embodiment of the present application further provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein
The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to implement the browser version switching method as provided in the embodiments of the first aspect.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the browser version switching method provided in the embodiment of the first aspect.
The method comprises the steps of determining a target page identification of a page to be displayed in a browser and a target version of the browser adaptive to the page to be displayed; adjusting the browser version adaptive to the main page of the page to be displayed into a target version; and refreshing the updated main page, and displaying the page to be displayed according to the target page identifier. By adopting the technical scheme, the browser version adaptive to the main page of the page to be displayed can be automatically adjusted according to the target version of the browser adaptive to the page to be displayed in the browser, so that the page to be displayed is displayed according to the target version of the browser adaptive to the page to be displayed, and the compatibility of browser version switching is realized.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present application, nor are they intended to limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a browser version switching method in a first embodiment of the present application;
fig. 2 is a flowchart of a browser version switching method in the second embodiment of the present application;
fig. 3 is a flowchart of a browser version switching method in the third embodiment of the present application;
fig. 4 is a structural diagram of a browser version switching apparatus according to a fourth embodiment of the present application;
fig. 5 is a structural diagram of an electronic device in a fifth embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and "third," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a browser version switching method according to an embodiment of the present application, where the method may be applied to a situation of switching a browser version of a page to be displayed, and the method may be executed by a browser version switching device, and the browser version switching device may be implemented by software and/or hardware and is specifically configured in an electronic device.
The browser version switching method shown in fig. 1 includes:
s101, determining a target page identification of a page to be displayed in the browser and a target version of the browser adaptive to the page to be displayed.
The page to be displayed may be a page to be displayed in a browser. The target page identifier may be used to uniquely identify the current page to be displayed, for example, the target page identifier may be a URL (Uniform Resource Locator) address in a page Document mode to be displayed, and may also be an ID (Identity Document) tag of the page Document mode to be displayed. The browser version is a software version available for the current browser, and may be, for example, IE (internet explorer, web browser) 11, IE10, IE9, and the like. The target version may be a browser version that is finally required for displaying a page to be displayed, and may specifically be represented as a field value of a mode field in a page document mode, where for example, the mode field may be an IElevel (Internet Explorer Level, web browser version) field, an IEstage (Internet Explorer stage), an IE field, or the like.
S102, adjusting the browser version adaptive to the main page of the page to be displayed into a target version.
The method comprises the steps of displaying a page to be displayed, wherein a field corresponding to a browser version matched with the page to be displayed can be preset in a main page document mode of the page to be displayed and is used for uniquely representing the browser version matched with the main page. Specifically, the field value corresponding to the target version and the target page identifier are fed back to the main page of the page to be displayed, and the main page of the page to be displayed is adapted to the field value of the browser version and is modified into the field value corresponding to the target version.
S103, refreshing the updated main page, and displaying the page to be displayed according to the target page identification.
Illustratively, the updated main page of the page to be displayed is refreshed, so that each level of sub-pages under the main page of the page to be displayed can be displayed according to the target version. Specifically, the sub-pages can be displayed step by step according to the target page identification until the page to be displayed is displayed. It should be noted that the time for refreshing and displaying the page is short, for example, the order of time unit may be millisecond, so that the web page visitor may only observe the page to be displayed, and cannot perceive other displayed pages, thereby improving the web page access experience.
The method comprises the steps of determining a target page identification of a page to be displayed in a browser and a target version of the browser adaptive to the page to be displayed; adjusting the browser version adaptive to the main page of the page to be displayed into a target version; and refreshing the updated main page, and displaying the page to be displayed according to the target page identifier. By adopting the technical scheme, the browser version adaptive to the main page of the page to be displayed can be automatically adjusted according to the target version of the browser adaptive to the page to be displayed in the browser, so that the page to be displayed is displayed according to the target version of the browser adaptive to the page to be displayed, and the compatibility of browser version switching is realized.
Example two
Fig. 2 is a flowchart of a browser version switching method provided in the second embodiment of the present application, and in this embodiment, based on the foregoing embodiments, optimization and improvement are performed on the operation for determining the browser target version adapted to the page to be displayed.
Further, refining the target version of the browser which is adapted to the page to be displayed into a preset version configuration table, and searching the browser version corresponding to the target page identifier; and determining a target version' according to the search result so as to perfect the determination operation of the target version of the browser adapted to the page to be displayed. It should be noted that, for parts not described in detail in the embodiments of the present application, reference may be made to related expressions in other embodiments, and details are not described herein again.
The browser version switching method shown in fig. 2 includes:
s201, determining a target page identification of a page to be displayed in the browser.
S202, searching a browser version corresponding to the target page identification from a preset version configuration table.
The preset version configuration table is preset with the corresponding relation between the page identification of each page and the corresponding browser version. The corresponding relation can be configured by a page developer according to development requirements. For example, the correspondence may be the page identification correspondence IE8 of the main page; the page identification of the primary sub-page corresponds to IE9; the page identity of the secondary subpage corresponds to IE10. Illustratively, the browser version corresponding to the target page identifier of the page to be displayed is searched from the preset version configuration table according to the corresponding relationship between each page identifier and each browser version.
And S203, determining the target version according to the search result.
And the search result is the result of searching the browser version corresponding to the target page identifier from the preset version configuration table.
In an optional embodiment, if a search result exists, the searched browser version is taken as a target version; in another alternative embodiment, if there is no search result, the default version of the browser is taken as the target version. The default version of the browser may be set by a technician or a browser user according to actual needs or experience, which is not limited in the present application.
It can be understood that, by adopting the above technical solution, if the search result exists, the searched browser version is taken as the target version; and if the search result does not exist, taking the default version of the browser as the target version. The condition that the page to be displayed cannot be displayed due to the fact that the target version cannot be determined because the search result does not exist can be avoided, and flexibility of the target version determination operation is improved.
And S204, adjusting the browser version adaptive to the main page of the page to be displayed into a target version.
And S205, refreshing the updated main page, and displaying the page to be displayed according to the target page identifier.
In the embodiment of the application, the browser version corresponding to the target page identifier is searched from the preset version configuration table; and determining the target version according to the search result. By adopting the technical scheme, the target version corresponding to the target page identification is searched from the preset version configuration table, the target version is determined according to the searching result, the target version can be determined under the condition that the target version of the browser adaptive to the page to be displayed is unknown, and the flexibility and convenience of the target version determination operation are improved.
EXAMPLE III
Fig. 3 is a flowchart of a browser version switching method provided in the third embodiment of the present application, where in this embodiment, optimization and improvement are performed on the determination operation of the browser target version adapted to the page to be displayed on the basis of the foregoing embodiments.
Further, the step of determining the target version of the browser adapted to the page to be displayed is refined into the step of acquiring the page rendering code of the page to be displayed; and determining a target version' according to the page rendering code so as to complete the determination operation of the target version of the browser adapted to the page to be displayed. It should be noted that, for parts not described in detail in the embodiments of the present application, reference may be made to related expressions in other embodiments, and details are not described herein again.
The browser version switching method shown in fig. 3 includes:
s301, determining a target page identification of a page to be displayed in the browser.
S302, obtaining a page rendering code of the page to be displayed.
The page rendering code is a code for visually rendering a page in the browser, and may be, for example, HTML (Hyper Text Markup Language) code, CSS (cascading style Sheets) code, JS (java server Pages) code, and the like.
In an optional embodiment, the page rendering code of the page to be displayed is loaded by accessing the page to be displayed, and the page rendering code of the page to be displayed is acquired after the page rendering code of the page to be displayed is loaded. By adopting the technical scheme, the page rendering code of the page to be displayed is obtained by accessing the page to be displayed, the actually loaded page rendering code of the page to be displayed can be determined, the accuracy of the page rendering code of the page to be displayed is improved, and the accuracy of the target version is further improved.
And S303, determining a target version according to the page rendering code.
Optionally, the page rendering code is analyzed to obtain version association information; and taking the browser version adapted to the version association information as a target version.
The version association information may be code associated with a corresponding browser version in the page rendering code, and may locate a browser version adapted thereto. Optionally, the version association information includes at least one of presentation style information and presentation action information. The display style information can be style description code used for displaying page number styles in the page rendering code; the show action information may be an action description code in the page rendering code for showing the page number action.
Exemplarily, the version association information is a style code used for rendering the height and/or width of the page to be displayed in the page rendering code, and if a numerical value in the code has a unit, it may be determined that the browser version adapted to the page to be displayed is IE8, and the IE8 is used as a target version; illustratively, the version association information is an action code for closing a window in the page rendering code of the page to be presented, and if the code does not contain an OPEN function, it may be determined that the browser version adapted to the page to be presented is IE6, and the IE6 is taken as a target version.
It can be understood that, by adopting the above technical solution, the page rendering code is parsed, and the browser version adapted to the page to be displayed is determined according to the version association information obtained by parsing, and as the target version, the target version can be automatically determined under the condition that the browser version adapted to the page to be displayed is unknown, so that the flexibility of determining the target version is improved.
S304, adjusting the browser version adaptive to the main page of the page to be displayed into a target version.
S305, refreshing the updated main page, and displaying the page to be displayed according to the target page identification.
The method comprises the steps of obtaining a page rendering code of a page to be displayed; and determining a target version according to the page rendering code. By adopting the technical scheme, the target version can be automatically determined according to the page rendering code under the condition that the target version of the browser adaptive to the page to be displayed is unknown, so that the flexibility of the target version determination operation is improved.
Example four
Fig. 4 is a structural diagram of a browser version switching device according to a fourth embodiment of the present application, where the embodiment of the present application is applicable to a situation where a browser version of a page to be displayed is switched, and the device may be implemented by software and/or hardware and is specifically configured in an electronic device. The browser version switching apparatus shown in fig. 4 includes: a page information determination module 401, a version adjustment module 402, and a page information determination module 403. Wherein the content of the first and second substances,
the page information determining module 401 is configured to determine a target page identifier of a page to be displayed in a browser and a target version of the browser adapted to the page to be displayed;
a version adjusting module 402, configured to adjust a browser version adapted to a main page of a page to be displayed to a target version;
and a page display module 403, configured to refresh the updated main page, and display the page to be displayed according to the target page identifier.
The method comprises the steps of determining a target page identification of a page to be displayed in a browser and a target version of the browser adaptive to the page to be displayed; adjusting the browser version adaptive to the main page of the page to be displayed into a target version; and refreshing the updated main page, and displaying the page to be displayed according to the target page identifier. By adopting the technical scheme, the browser version adaptive to the main page of the page to be displayed can be automatically adjusted according to the target version of the browser adaptive to the page to be displayed in the browser, so that the page to be displayed is displayed according to the target version of the browser adaptive to the page to be displayed, and the compatibility of browser version switching is realized.
In an optional embodiment, the page information determining module 401 includes:
the browser version searching unit is used for searching a browser version corresponding to the target page identifier from a preset version configuration table;
and the version determining unit is used for determining the target version according to the searching result.
In an alternative embodiment, the version determination unit comprises:
the first version determining subunit is used for taking the searched browser version as a target version if a search result exists;
and the second version determining subunit is used for taking the default version of the browser as the target version if the search result does not exist.
In an optional embodiment, the page information determining module includes:
the code acquisition unit is used for acquiring a page rendering code of a page to be displayed;
and the third version determining unit is used for determining the target version according to the page rendering code.
In an alternative embodiment, the third version determination unit includes:
the associated information acquisition subunit is used for analyzing the page rendering code to obtain version associated information;
and the fourth version determining subunit is used for taking the browser version adapted to the version association information as the target version.
In an alternative embodiment, the version association information includes at least one of presentation style information and presentation action information.
In an alternative embodiment, the code acquisition unit includes:
and the code acquisition subunit is used for acquiring the page rendering code of the page to be displayed by accessing the page to be displayed.
The browser version switching device can execute the browser version switching method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of executing each browser version switching method.
EXAMPLE five
FIG. 5 illustrates a block diagram of an electronic device 510 that may be used to implement embodiments of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 5, the electronic device 510 includes at least one processor 511, and a memory communicatively connected to the at least one processor 511, such as a Read Only Memory (ROM) 512, a Random Access Memory (RAM) 513, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 511 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 512 or the computer program loaded from a storage unit 518 into the Random Access Memory (RAM) 513. In the RAM 513, various programs and data necessary for the operation of the electronic device 510 can also be stored. The processor 511, the ROM 512 and the RAM 513 are connected to each other by a bus 514. An input/output (I/O) interface 515 is also connected to bus 514.
Various components in the electronic device 510 are connected to the I/O interface 515, including: an input unit 516 such as a keyboard, a mouse, and the like; an output unit 517 such as various types of displays, speakers, and the like; a storage unit 518, such as a magnetic disk, optical disk, or the like; and a communication unit 519 such as a network card, modem, wireless communication transceiver, or the like. The communication unit 519 allows the electronic device 510 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks.
Processor 511 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of processor 511 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 511 performs the various methods and processes described above, such as a browser version switching method.
In some embodiments, the browser version switching method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 518. In some embodiments, some or all of the computer program may be loaded onto and/or installed onto the electronic device 510 via the ROM 512 and/or the communication unit 519. When the computer program is loaded into RAM 513 and executed by processor 511, one or more steps of the browser version switching method described above may be performed. Alternatively, in other embodiments, the processor 511 may be configured to perform the browser version switching method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of this application, a computer readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage 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. Alternatively, the computer readable storage medium may be a machine readable signal medium. 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 compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solution of the present application can be achieved, and the present invention is not limited thereto.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A browser version switching method is characterized by comprising the following steps:
determining a target page identification of a page to be displayed in a browser and a target version of the browser adapted to the page to be displayed;
adjusting the browser version adaptive to the main page of the page to be displayed into the target version;
and refreshing the updated main page, and displaying the page to be displayed according to the target page identification.
2. The method of claim 1, wherein determining a target version of the browser to which a page to be presented is adapted comprises:
searching a browser version corresponding to the target page identifier from a preset version configuration table;
and determining the target version according to the search result.
3. The method of claim 2, wherein determining the target version based on the lookup result comprises:
if the search result exists, the searched browser version is used as the target version;
and if the search result does not exist, taking the default version of the browser as the target version.
4. The method of claim 1, wherein determining a target version of the browser to which a page to be presented is adapted comprises:
acquiring a page rendering code of the page to be displayed;
and determining the target version according to the page rendering code.
5. The method according to claim 4, wherein the obtaining page rendering code of the page to be displayed comprises:
and acquiring a page rendering code of the page to be displayed by accessing the page to be displayed.
6. The method of claim 4, wherein determining the target version from the page rendering code comprises:
analyzing the page rendering code to obtain version correlation information;
and taking the browser version adapted to the version association information as the target version.
7. The method of claim 6, wherein the version association information comprises at least one of presentation style information and presentation action information.
8. A browser version switching apparatus, comprising:
the page information determining module is used for determining a target page identifier of a page to be displayed in a browser and a target version of the browser adaptive to the page to be displayed;
the version adjusting module is used for adjusting the browser version adaptive to the main page of the page to be displayed into the target version;
and the page display module is used for refreshing the updated main page and displaying the page to be displayed according to the target page identifier.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the browser version switching method of any one of claims 1-7.
10. A computer-readable storage medium storing computer instructions for causing a processor to implement the browser version switching method of any one of claims 1-7 when executed.
CN202211241617.3A 2022-10-11 2022-10-11 Browser version switching method, device, equipment and medium Pending CN115510349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211241617.3A CN115510349A (en) 2022-10-11 2022-10-11 Browser version switching method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211241617.3A CN115510349A (en) 2022-10-11 2022-10-11 Browser version switching method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115510349A true CN115510349A (en) 2022-12-23

Family

ID=84510899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211241617.3A Pending CN115510349A (en) 2022-10-11 2022-10-11 Browser version switching method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115510349A (en)

Similar Documents

Publication Publication Date Title
EP3518124A1 (en) Webpage rendering method and related device
CN110765208B (en) Data synchronization method and device, electronic equipment and storage medium
CN113050808B (en) Method and device for highlighting target text in input box
CN112685671A (en) Page display method, device, equipment and storage medium
CN112784200A (en) Page data processing method, device, equipment, medium and computer program product
CN113836314A (en) Knowledge graph construction method, device, equipment and storage medium
CN114218890A (en) Page rendering method and device, electronic equipment and storage medium
CN112508115A (en) Method, apparatus, device and computer storage medium for building node representation model
CN114816393A (en) Information generation method, device, equipment and storage medium
CN113868273A (en) Metadata snapshot method and device
EP4246365A1 (en) Webpage identification method and apparatus, electronic device, and medium
CN115510349A (en) Browser version switching method, device, equipment and medium
CN116185389A (en) Code generation method and device, electronic equipment and medium
CN115758011A (en) Data unloading method, data display method, device, equipment and storage medium
CN115309730A (en) Data auditing method and device, electronic equipment and storage medium
CN113869042A (en) Text title generation method and device, electronic equipment and storage medium
CN114168119A (en) Code file editing method and device, electronic equipment and storage medium
CN113239273A (en) Method, device, equipment and storage medium for generating text
CN108459890B (en) Interface display method and device for application
CN115203599B (en) Information recommendation method, device, equipment and storage medium
CN115344801A (en) Method, device, equipment and medium for updating webpage link
CN113642295B (en) Page typesetting method, device and computer program product
CN115202791A (en) Method and device for determining first screen loading resource, server and storage medium
CN115373659A (en) Business system construction method and device, electronic equipment and storage medium
CN115600029A (en) Method, device, system, equipment and storage medium for displaying webpage

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