Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

JS code anti-repetition injection method and device, computer equipment and storage medium

A technology of JS code and injection device, which is applied in the direction of program control device, special data processing application, website content management, etc., and can solve problems such as multiple injection of JS code

Pending Publication Date: 2019-07-30
PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present invention provides a JS code anti-repeat injection method, device, computer equipment and storage medium, aiming to solve the problem of complicated page redirection or Asynchronous requests, resulting in the problem of JS code being injected multiple times

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • JS code anti-repetition injection method and device, computer equipment and storage medium
  • JS code anti-repetition injection method and device, computer equipment and storage medium
  • JS code anti-repetition injection method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0032] It should be understood that when used in this specification and the appended claims, the terms "comprising" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude one or Presence or addition of multiple other features, integers, steps, operations, elements, components and / or collections thereof.

[0033] It should also be understood that the terminology used ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a JS code anti-repetition injection method and device, computer equipment and a storage medium. The method comprises the steps that an injected JS code is received, and the injection type of the JS code is judged; if the JS code is injected by a third party, when a code label field in the JS code is a null value, the JS code is sent to the browser page through an expansioninterface corresponding to the browser page; and if the JS code is locally injected, when the code label field in the JS code is a null value, the JS code is sent to a browser page. According to the method, a data transmission optimization technology is adopted, when a code label field in the JS code is a null value, the JS code can be injected into a browser page, it is ensured that the JS code cannot be repeatedly injected when a page interacting with the browser page has a redirection request or an asynchronous request, and logic chaos is avoided.

Description

technical field [0001] The invention relates to the technical field of data transmission optimization, in particular to a JS code anti-repeat injection method, device, computer equipment and storage medium. Background technique [0002] Web App is a framework-based APP development mode (HTML5 APP framework development mode, that is, H5APP, that is, an application program developed through H5), which has the advantage of cross-platform development. This mode is usually composed of "HTML5 cloud website + APP application customer The APP application client only needs to install the framework part of the application, and the application data is fetched from the cloud and presented to the mobile phone user every time the APP (that is, the application program) is opened. [0003] Native APP, also known as Native App (local App), is developed for IOS (a mobile operating system developed by Apple Inc.), Android (a free and open source operating system based on Linux. It is mainly us...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/958G06F9/448
CPCG06F16/958G06F9/449
Inventor 陈翔
Owner PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products