CN114546479B - Method and device for prompting incompatibility of browsers - Google Patents

Method and device for prompting incompatibility of browsers Download PDF

Info

Publication number
CN114546479B
CN114546479B CN202210436275.4A CN202210436275A CN114546479B CN 114546479 B CN114546479 B CN 114546479B CN 202210436275 A CN202210436275 A CN 202210436275A CN 114546479 B CN114546479 B CN 114546479B
Authority
CN
China
Prior art keywords
browser
prompt
page
rule
skipping
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
CN202210436275.4A
Other languages
Chinese (zh)
Other versions
CN114546479A (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.)
Accumulus Technologies Tianjin Co Ltd
Original Assignee
Accumulus Technologies Tianjin 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 Accumulus Technologies Tianjin Co Ltd filed Critical Accumulus Technologies Tianjin Co Ltd
Priority to CN202210436275.4A priority Critical patent/CN114546479B/en
Publication of CN114546479A publication Critical patent/CN114546479A/en
Application granted granted Critical
Publication of CN114546479B publication Critical patent/CN114546479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a device for prompting browser incompatibility, wherein the method comprises the following steps: receiving an access request to a service party through a first browser, and acquiring a prompt rule and skip information in a script of the service party according to the access request; skipping to a corresponding browser page according to the prompt rule and the skip information; wherein, the skip information includes: skipping scripts, rebounding scripts and HTML of a prompt page; the prompt rule comprises the following steps: if the first browser does not conform to the browser version rule configured by the business party, skipping to the prompt page according to the skip script and the HTML of the prompt page; and if the first browser accords with a browser version rule configured by a service party, jumping to a page of the service party according to the jump-back script. According to the invention, when the browser accesses the business side, the browser version requirement is directly judged through the script embedded in the business side, and the browser automatically jumps back when meeting the version condition.

Description

Method and device for prompting incompatibility of browsers
Technical Field
The invention relates to the field of webpage skipping, in particular to a method and a device for prompting incompatibility of a browser.
Background
In the prior art, browsers are various and versions are faster to change, so that some lower versions of browsers cannot provide compatible support for a service party for a front end, but no general solution is available for unsupported message prompt and skip.
The currently adopted prompting method can only prompt in a specific project, and a realization code needs to be compiled in the project, so that the method is not universal and has large workload; and the universal prompt page is that static resources cannot meet the requirements of different scenes.
Disclosure of Invention
The embodiment of the invention provides a method and a device for prompting incompatibility of a browser, which are used for solving the problem that version skip prompting cannot be universal in the prior art.
In order to solve the above problems, the present invention is realized by:
in a first aspect, the present invention provides a method for prompting browser incompatibility, including:
receiving an access request to a service party through a first browser, and acquiring a prompt rule and skip information in a script of the service party according to the access request;
skipping to a corresponding browser page according to the prompt rule and the skip information;
wherein the skip information comprises: skipping scripts, rebounding scripts and HTML of a prompt page;
the prompt rule comprises the following steps:
if the first browser does not conform to the browser version rule configured by the business party, skipping to the prompt page according to the skip script and the HTML of the prompt page;
and if the first browser accords with a browser version rule configured by a service party, jumping to a page of the service party according to the jump-back script.
Optionally, before receiving the access request to the service party, the method further includes:
acquiring a browser version rule configured by a service party;
generating a prompt rule and skip information corresponding to the business party according to the browser version rule;
and writing the prompt rule and the skip information into a script of the service party.
Optionally, the method further includes: jumping to the page of the service party through a second browser which accords with a browser version rule configured by the service party according to the address of the prompt page; wherein, the address of the prompt page comprises the address of the service party.
Optionally, the method further includes:
the prompt page comprises a download link of a second browser which accords with a browser version rule configured by a business party, and the jump to the jump page of the second browser is carried out according to the download link.
In a second aspect, the present invention provides a device for prompting browser incompatibility, including:
the receiving module is used for receiving an access request to a service party through a first browser and acquiring a prompt rule and skip information in a script of the service party according to the access request;
the first skipping module is used for skipping to a corresponding browser page according to the prompt rule and the skipping information;
wherein the skip information includes: skipping scripts, rebounding scripts and HTML of a prompt page;
the prompt rule comprises the following steps:
if the first browser does not conform to the browser version rule configured by the business party, skipping to the prompt page according to the skip script and the HTML of the prompt page;
and if the first browser accords with a browser version rule configured by a service party, jumping to a page of the service party according to the jump-back script.
Optionally, the method further includes:
the acquisition configuration module is used for acquiring the browser version rule configured by the business party;
the generating module is used for generating a prompt rule and skip information corresponding to the business party according to the browser version rule;
and the writing module is used for writing the prompt rule and the skip information into the script of the service party.
Optionally, the method further includes:
the second skipping module is used for skipping to the page of the business party through a second browser which accords with the browser version rule configured by the business party according to the address of the prompt page; wherein, the address of the prompt page comprises the address of the service party.
Optionally, the method further includes:
and the third skipping module is used for skipping to the skipping page of the second browser according to the downloading link, wherein the prompt page comprises the downloading link of the second browser which accords with the browser version rule configured by the business party.
In a third aspect, the present invention provides a server, comprising: a processor, a memory and a program stored on the memory and executable on the processor, the program, when executed by the processor, implementing the steps of the browser incompatible prompting method according to any of the first aspects.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the browser-incompatible prompting method according to any of the first aspects.
In the invention, through the script embedded in the service party, the service party does not need to develop any related service code, the browser version requirement is judged when the browser jumps, and the browser automatically jumps back when the browser meets the version condition.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flowchart of a method for prompting browser incompatibility according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a service architecture of a method for prompting browser incompatibility according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a specific jump flow of a prompting method for browser incompatibility according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a prompting device for browser incompatibility according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
Referring to fig. 1, an embodiment of the present invention provides a method for prompting browser incompatibility, including:
step 11: receiving an access request to a service party through a first browser, and acquiring a prompt rule and skip information in a script of the service party according to the access request;
step 12: skipping to a corresponding browser page according to the prompt rule and the skip information; wherein the skip information includes: skipping scripts, rebounding scripts and HTML of a prompt page; the prompt rule comprises the following steps: if the first browser does not conform to the browser version rule configured by the business party, skipping to the prompt page according to the skip script and the HTML of the prompt page; and if the first browser accords with a browser version rule configured by a service party, jumping to a page of the service party according to the jump-back script.
In the embodiment of the invention, through the script embedded in the service party, the service party is not required to develop any related service code, the version requirement of the browser is judged when the browser jumps, and the browser automatically jumps back when meeting the version condition; the business side does not need to pay attention to the implementation scheme, only needs to use the provided script in the browser version range supported by the decision, is a universal scheme, and meets the flexible configuration requirements of different version requirements.
In this embodiment of the present invention, optionally, before step 11, further includes: acquiring a browser version rule configured by a service party; generating a prompt rule and skip information corresponding to the business party according to the browser version rule; and writing the prompt rule and the skip information into a script of the service party.
Referring to fig. 2, in the embodiment of the present invention, a service party configures a browser version rule required by the service party according to its own requirements, and sends the browser version rule to a configuration party; the configuration party generates a corresponding script and provides jump information; the skip information includes: skipping scripts, rebounding scripts and HTML of a prompt page; the service party acquires a currently required jump script; responding to the requested jump script; the service party executes the jump script, and jumps to a prompt page when the trigger version is low, namely, if the first browser does not conform to the browser version rule configured by the service party, the first browser jumps to the prompt page according to the jump script and HTML of the prompt page; the configurator acquires a currently required jump-back script from the version low prompter; responding to the requested jump back script; and executing a jump-back script, and jumping back to the service party when the browser meets a jump-back condition, namely jumping to a page of the service party according to the jump-back script if the first browser meets a browser version rule configured by the service party.
Referring to fig. 3, a user accesses a service party; the service side loads a jump script; the jump script judges that the first browser environment does not meet the requirement of jumping to a prompt page, and writes the first browser environment to a current URL (uniform resource locator); prompting a page to load a jump-back script; the jump script judges that the first browser environment meets the requirement of jumping to a source URL; and finishing the whole skipping process.
In the embodiment of the present invention, optionally, the method further includes: jumping to the page of the service party through a second browser which accords with a browser version rule configured by the service party according to the address of the prompt page; wherein, the address of the prompt page comprises the address of the service party.
According to the embodiment of the invention, the problem that the link cannot be automatically skipped back when the browser is copied to the browser meeting the condition after the browser jumps to the page with the low prompt version, which causes trouble to the user is solved.
In the embodiment of the present invention, optionally, the method further includes:
the prompt page comprises a download link of a second browser which accords with a browser version rule configured by a business party, and the jump to the jump page of the second browser is carried out according to the download link.
In the embodiment of the invention, the download link which accords with the browser version rule configured by the business party is provided on the prompt page for the user to download, so that the user experience is improved.
Referring to fig. 4, the present invention provides a device for prompting browser incompatibility, including:
a receiving module 41, configured to receive an access request for a service party through a first browser, and obtain a prompt rule and skip information in a script of the service party according to the access request;
the first skipping module 42 is used for skipping to a corresponding browser page according to the prompt rule and the skipping information; wherein the skip information includes: skipping scripts, rebounding scripts and HTML of a prompt page; the prompt rule comprises the following steps: if the first browser does not conform to the browser version rule configured by the business party, skipping to the prompt page according to the skip script and the HTML of the prompt page; and if the first browser accords with a browser version rule configured by a service party, jumping to a page of the service party according to the jump-back script.
In the embodiment of the present invention, optionally, the method further includes:
the acquisition configuration module is used for acquiring the browser version rule configured by the business party;
the generating module is used for generating a prompt rule and skip information corresponding to the business party according to the browser version rule;
and the writing module is used for writing the prompt rule and the skip information into the script of the service party.
In the embodiment of the present invention, optionally, the method further includes:
the second skipping module is used for skipping to the page of the business party through a second browser which accords with the browser version rule configured by the business party according to the address of the prompt page; wherein, the address of the prompt page comprises the address of the service party.
In the embodiment of the present invention, optionally, the method further includes:
and the third skipping module is used for skipping to the skipping page of the second browser according to the downloading link, wherein the prompt page comprises the downloading link of the second browser which accords with the browser version rule configured by the business party.
The prompting device for browser incompatibility provided by the embodiment of the present invention can implement each process implemented by the prompting method for browser incompatibility in the method embodiment of fig. 1, and is not described herein again to avoid repetition.
Referring to fig. 5, an embodiment of the present invention further provides a server 50, which includes a processor 51, a memory 52, and a computer program stored in the memory 52 and capable of running on the processor 51, where the computer program, when executed by the processor 51, implements each process of the above-mentioned prompt method embodiment for browser incompatibility, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above prompt method embodiment for browser incompatibility, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a terminal) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A method for prompting browser incompatibility is characterized by comprising the following steps:
receiving an access request to a service party through a first browser, and acquiring a prompt rule and skip information in a script of the service party according to the access request;
skipping to a corresponding browser page according to the prompt rule and the skip information;
wherein the skip information includes: skipping scripts, rebounding scripts and HTML of a prompt page;
the prompt rule comprises the following steps:
if the first browser does not conform to the browser version rule configured by the business party, skipping to the prompt page according to the skip script and the HTML of the prompt page;
if the current browser accords with a browser version rule configured by a service party, jumping to a page of the service party according to the jump-back script;
before receiving the access request to the service side, the method further includes: acquiring a browser version rule configured by a service party;
generating a prompt rule and skip information corresponding to the business party according to the browser version rule;
and writing the prompt rule and the skip information into a script of the service party.
2. The method for prompting browser incompatibility according to claim 1, further comprising:
jumping to the page of the service party through a second browser which accords with a browser version rule configured by the service party according to the address of the prompt page; wherein, the address of the prompt page comprises the address of the service party.
3. The method for prompting browser incompatibility according to claim 1, further comprising:
the prompt page comprises a download link of a second browser which accords with a browser version rule configured by a business party, and the jump to the jump page of the second browser is carried out according to the download link.
4. A browser incompatible prompting device, comprising:
the receiving module is used for receiving an access request to a service party through a first browser and acquiring a prompt rule and skip information in a script of the service party according to the access request;
the first skipping module is used for skipping to a corresponding browser page according to the prompt rule and the skipping information;
wherein the skip information includes: skipping scripts, rebounding scripts and HTML of a prompt page;
the prompt rule comprises the following steps:
if the first browser does not conform to the browser version rule configured by the business party, skipping to the prompt page according to the skip script and the HTML of the prompt page;
if the current browser accords with a browser version rule configured by a service party, jumping to a page of the service party according to the jump-back script;
the acquisition configuration module is used for acquiring the browser version rule configured by the business party;
the generating module is used for generating a prompt rule and skip information corresponding to the business party according to the browser version rule;
and the writing module is used for writing the prompt rule and the skip information into the script of the service party.
5. The browser-incompatible prompting device of claim 4 further comprising:
the second skipping module is used for skipping to the page of the business party through a second browser which accords with the browser version rule configured by the business party according to the address of the prompt page; wherein, the address of the prompt page comprises the address of the service party.
6. The browser-incompatible prompting device of claim 4 further comprising:
and the third skipping module is used for skipping to the skipping page of the second browser according to the downloading link, wherein the prompt page comprises the downloading link of the second browser which accords with the browser version rule configured by the business party.
7. A server, comprising: a processor, a memory and a program stored on the memory and executable on the processor, the program when executed by the processor implementing the steps of the browser incompatible prompting method of any of claims 1-3.
8. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the browser-incompatible prompting method according to any one of claims 1-3.
CN202210436275.4A 2022-04-25 2022-04-25 Method and device for prompting incompatibility of browsers Active CN114546479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210436275.4A CN114546479B (en) 2022-04-25 2022-04-25 Method and device for prompting incompatibility of browsers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210436275.4A CN114546479B (en) 2022-04-25 2022-04-25 Method and device for prompting incompatibility of browsers

Publications (2)

Publication Number Publication Date
CN114546479A CN114546479A (en) 2022-05-27
CN114546479B true CN114546479B (en) 2022-07-29

Family

ID=81667461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210436275.4A Active CN114546479B (en) 2022-04-25 2022-04-25 Method and device for prompting incompatibility of browsers

Country Status (1)

Country Link
CN (1) CN114546479B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655863A (en) * 2009-04-24 2010-02-24 北京搜狗科技发展有限公司 Method for loading web pages in browser and browser
CN102968341A (en) * 2012-10-25 2013-03-13 北京奇虎科技有限公司 Method and device for switching different versions of IE (internet explorer) kernels on basis of multi-kernel browser

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10452790B2 (en) * 2011-03-17 2019-10-22 Aditazz, Inc. System and method for evaluating the energy use of multiple different building massing configurations
WO2014039567A1 (en) * 2012-09-04 2014-03-13 Bobo Analytics, Inc. Systems, devices and methods for continuous heart rate monitoring and interpretation
US9721046B2 (en) * 2013-03-15 2017-08-01 Aditazz, Inc. System and method for realizing a building system that involves computer based matching of form to function
CN104320378B (en) * 2014-09-30 2018-05-04 百度在线网络技术(北京)有限公司 Intercept the method and system of web data
CN107291560A (en) * 2016-03-31 2017-10-24 北京三星通信技术研究有限公司 A kind of content of smart machine determines method and apparatus
CN107066496A (en) * 2016-12-29 2017-08-18 重庆南华中天信息技术有限公司 A kind of page access method of compatible different browsers and terminal device
CN110532008A (en) * 2019-08-29 2019-12-03 深圳前海环融联易信息科技服务有限公司 A kind of product gray scale dissemination method, device, computer equipment and storage medium
CN112149038B (en) * 2020-10-13 2024-04-19 中国银行股份有限公司 Browser development method, browser development device, computer equipment and readable storage medium
CN113360385A (en) * 2021-06-16 2021-09-07 北京光启元数字科技有限公司 Test method, device, equipment and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655863A (en) * 2009-04-24 2010-02-24 北京搜狗科技发展有限公司 Method for loading web pages in browser and browser
CN102968341A (en) * 2012-10-25 2013-03-13 北京奇虎科技有限公司 Method and device for switching different versions of IE (internet explorer) kernels on basis of multi-kernel browser

Also Published As

Publication number Publication date
CN114546479A (en) 2022-05-27

Similar Documents

Publication Publication Date Title
CN110221872B (en) Page jump method and device, electronic equipment and storage medium
CN107870821B (en) Cross-platform calling method and system for application program
CN106445583B (en) Page display method, equipment and system
CN107515764B (en) Application page opening method, terminal and computer readable storage medium
JP2019032883A (en) Method, apparatus, server and system for implementing web application
KR100953846B1 (en) Methods and apparatus for providing on-demand assistance for a wireless device
CN107741844B (en) Method and device for generating application installation package
US20150301873A1 (en) Method and system for expanding webapp application function
CN106874035B (en) Method for updating application (app) built-in H5 and framework thereof
CN107305553B (en) Method and system for dynamically jumping Hybrid page based on Hybrid App
CN101853152B (en) Method and system for generating graphical user interface
CN107729014B (en) Page jump method and structure based on Android
CN108845800B (en) Method, device, equipment and storage medium for realizing component extension function
CN108089873A (en) A kind of method and terminal of application component immediate updating
CN101957756A (en) System and method for rapidly generating intelligent mobile terminal program
CN109669692B (en) Source code sharing method, server, computer readable storage medium and system
CN111639278A (en) Webpage loading method and device
WO2012148867A1 (en) Web-based app builder for mobile devices with automatic updates
CN103634393A (en) IVR (interactive voice response) and realization method thereof
CN114385124A (en) Independent page jumping method, device and equipment based on Vue framework
CN114546479B (en) Method and device for prompting incompatibility of browsers
CN108287737B (en) Service Worker starting method and device and electronic equipment
KR101083229B1 (en) Method, apparatus, system, and recording medium for downloading necessary application of mobile terminal
CN114253441B (en) Method and device for enabling target function, storage medium and electronic device
CN107343042B (en) Browser traffic hijacking method and device and mobile terminal

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