CN107817989A - A kind of method that APP pop-ups are realized based on JS links - Google Patents
A kind of method that APP pop-ups are realized based on JS links Download PDFInfo
- Publication number
- CN107817989A CN107817989A CN201710969013.3A CN201710969013A CN107817989A CN 107817989 A CN107817989 A CN 107817989A CN 201710969013 A CN201710969013 A CN 201710969013A CN 107817989 A CN107817989 A CN 107817989A
- Authority
- CN
- China
- Prior art keywords
- pop
- push
- files
- app
- application app
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of method for realizing APP pop-ups based on JS links, including step:The pop-up JS files by push Composition of contents are generated in push management platform, and configure the IP address scope of push needed for pop-up, application APP and push rule;Packet capturing analysis is carried out on the page of application APP for needing pop-up, searches JS files workable for obtaining;Filler test is carried out, selects JS files;The JS files of the selected application APP page are replaced using the pop-up JS files of generation, and reload the JS files of the application APP page;And the JS files of the application APP page replaced are reintroduced in application APP page code, pop-up is pushed on configured user APP according to push rule using operator's pipeline.The present invention reduces the problem of pop-up deformation, the change to former APP functions is avoided to a certain degree, and channel is provided for operator's informaiton push.
Description
Technical field
The present invention relates to a kind of method for realizing APP pop-ups based on JS links, belong to the technical field of mobile Internet.
Background technology
HTML is HTML, is that one under standard generalized markup language applies, and a kind of specification, a kind of
Standard, it marks the various pieces in the webpage to be shown by label symbol.Web page files are a kind of text in itself,
By adding marker character in text, it can tell how browser shows content therein(Such as:How word is handled,
How picture arranges, and how picture shows).Browser reads web page files in order, then explains and shows according to marker character
Show the content of its mark, its mistake will not indicate to the mark of writing error, and do not stop it and explain implementation procedure, organizer is only
Error reason and error position can be analyzed by display effect.But it should be noted that for different browsers, to same
Marker character might have incomplete same explanation, thus might have different display effects.
JavaScript abbreviation JS, it is a kind of literal translation formula script, is a kind of regime type, weak type, based on prototype
Language, built-in support type.Its interpreter is referred to as JavaScript engine, is a part for browser, is widely used in
The script of client, it is in HTML earliest(An application under standard generalized markup language)Used on webpage, for
Html web page increases dynamic function.Traditional technology realizes pop-up, this method using the method for changing former webpage HTML code
It is bigger to the function effect of former webpage, and original code need not be changed using the JS methods replaced, implement flexible.
The content of the invention
The technical problems to be solved by the invention are overcome the deficiencies in the prior art, there is provided one kind is realized based on JS links
The method of APP pop-ups, solve existing method and realize pop-up using the method for changing former webpage HTML code, this method is to original
The function effect of webpage is bigger, pop-up is also easy to produce deformation and the problem of easily causing the change to former APP functions to a certain degree.
It is of the invention specifically to solve above-mentioned technical problem using following technical scheme:
A kind of method that APP pop-ups are realized based on JS links, it is characterised in that comprise the following steps:
Step 1: the pop-up JS files by push Composition of contents are generated in push management platform, and in push management platform
Configure the IP address scope of push needed for pop-up, application APP and push rule;
Step 2: carrying out packet capturing analysis on the page of application APP for needing pop-up, JS texts workable for obtaining are searched
Part;Filler test is carried out to the workable JS files, selects the JS files on the required application APP page;
Step 3: the JS texts using the application APP page selected by the pop-up JS files replacement step two of step 1 generation
Part, and reload the JS files of the application APP page;And by the JS files of the application APP page replaced again
It is incorporated into application APP page code, pop-up is pushed into step 1 according to push rule using operator's pipeline is matched somebody with somebody
On the user application APP put.
Further, as a preferred technical solution of the present invention:Regular comprise at least is pushed in the step 1 to push away
Send the time.
Further, as a preferred technical solution of the present invention:When pushing rule in the step 1 includes push
Between, the push period, push time interval and push times.
Further, as a preferred technical solution of the present invention:Selected in the step 2 so that corresponding after replacing
Minimum JS files are influenceed with the program APP pages.
The present invention uses above-mentioned technical proposal, can produce following technique effect:
The method provided by the invention that APP pop-ups are realized based on JS links, it would be desirable in the content write-in JS files of push, pass through
The JS files on the APP pages are found in packet capturing, are filtered out the JS files being best suitable on the APP pages of replacement, are utilized pop-up JS files
Selected JS files are replaced, finally, the JS files of the APP pages replaced is re-introduced into APP page codes, avoid APP
Original function is affected.Finally using the supplying system of the good rule of configuration, content push is carried out in platform is pushed.This
Invention is small to former APP function effects, operates flexible, and pushing newest business for operator provides method.
The present invention pop-up is carried out in cell phone application, can quick pushed information, promote product.Operator can be to life
The information of living, work, study etc. carries out APP push, excellent to the progress precision marketing push of oneself new product, including set meal
Favour, broadband are handled.Because PUSH message has quickly feature on mobile phone, customer volume is big, therefore is carried out on mobile phone
Information push is solved the problems, such as the push of mobile phone client information very much by operator's favor, and pop-up is realized using former APP pages JS is replaced
The problem of reducing pop-up deformation, the change to former APP functions is avoided to a certain degree, canal is provided for operator's informaiton push
Road.
Brief description of the drawings
Fig. 1 is the schematic flow sheet for the method for realizing APP pop-ups in the present invention based on JS links.
Embodiment
Embodiments of the present invention are described with reference to Figure of description.
As shown in figure 1, the present invention devises a kind of method for realizing APP pop-ups based on JS links, hand this method solve
The problem of generator terminal information pushes, it is mainly used in the application program Application abbreviations APP of mobile terminal pop-up.Specific side
Method comprises the following steps:
Step 1: the pop-up JS files by push Composition of contents are generated in push management platform, and in push management platform
Configure the IP address scope of push needed for pop-up, application APP and push rule.
Specifically, pop-up JS files are created after being logged in pushing management platform, select pop-up pattern, generation needs to push
Content, and configure the IP address scope of push, configuration needs the application APP pushed, configures the rule of push, excellent
Rule is pushed described in selection of land includes the time of push, the period of push, the time interval of push, and the letter such as number of push
Breath.
Step 2: carrying out packet capturing analysis on the page of application APP for needing pop-up, JS workable for obtaining is searched
File;Filler test is carried out to the workable JS files, the JS files on the required application APP page is selected, sieves
Select influences minimum JS files to the application APP page after replacing.
Step 3: utilize the application APP page selected by the pop-up JS files replacement step two of step 1 generation
JS files, and reload the JS files of the application APP page;And the JS files by the application APP page replaced
It is reintroduced in application APP page code, pop-up is pushed into step 1 according to push rule using operator's pipeline
On the user application APP configured;By carrying out being pushed to some broadband services of operator mobile terminal user, flow is excellent
The business such as favour.
This method replaces former APP pages JS by pop-up JS files, realizes the function of information push.Smart mobile phone it is general
And so that mobile phone is not re-used as simple communication tool, and mobile phone carries bigger information spreading function, enterprising in cell phone application
Row pop-up, can quick pushed information, promote product.Operator can be carried out to the information lived, work, learnt etc.
APP is pushed, preferential to the progress precision marketing push of oneself new product, including set meal, and broadband is handled.Because push disappears on mobile phone
Breath has quickly feature, and customer volume is big, therefore is favored in the enterprising row information push of mobile phone by operator very much.User receives
After PUSH message, content interested can be further appreciated that.
To sum up, the present invention carries out content push using the supplying system of the good rule of configuration in the pop-up template created.
The present invention is small to former APP function effects, operates flexible, and pushing newest business for operator provides method.
Embodiments of the present invention are explained in detail above in conjunction with accompanying drawing, but the present invention is not limited to above-mentioned implementation
Mode, can also be on the premise of present inventive concept not be departed from those of ordinary skill in the art's possessed knowledge
Make a variety of changes.
Claims (4)
- A kind of 1. method that APP pop-ups are realized based on JS links, it is characterised in that comprise the following steps:Step 1: the pop-up JS files by push Composition of contents are generated in push management platform, and in push management platform Configure the IP address scope of push needed for pop-up, application APP and push rule;Step 2: carrying out packet capturing analysis on the page of application APP for needing pop-up, JS texts workable for obtaining are searched Part;Filler test is carried out to the workable JS files, selects the JS files on the required application APP page;Step 3: the JS texts using the application APP page selected by the pop-up JS files replacement step two of step 1 generation Part, and reload the JS files of the application APP page;And by the JS files of the application APP page replaced again It is incorporated into application APP page code, pop-up is pushed into step 1 according to push rule using operator's pipeline is matched somebody with somebody On the user application APP put.
- 2. the method that APP pop-ups are realized based on JS links according to claim 1, it is characterised in that:Pushed away in the step 1 Rule is sent to comprise at least the push time.
- 3. the method that APP pop-ups are realized based on JS links according to claim 2, it is characterised in that:Pushed away in the step 1 Rule is sent to include push time, push period, push time interval and push times.
- 4. the method that APP pop-ups are realized based on JS links according to claim 1, it is characterised in that:Selected in the step 2 Going out after to replace influences minimum JS files on the application APP page.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710969013.3A CN107817989A (en) | 2017-10-18 | 2017-10-18 | A kind of method that APP pop-ups are realized based on JS links |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710969013.3A CN107817989A (en) | 2017-10-18 | 2017-10-18 | A kind of method that APP pop-ups are realized based on JS links |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107817989A true CN107817989A (en) | 2018-03-20 |
Family
ID=61608074
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710969013.3A Pending CN107817989A (en) | 2017-10-18 | 2017-10-18 | A kind of method that APP pop-ups are realized based on JS links |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107817989A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109445786A (en) * | 2018-10-19 | 2019-03-08 | 成都安恒信息技术有限公司 | A method of the general pop-up page is realized based on JavaScript |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6470349B1 (en) * | 1999-03-11 | 2002-10-22 | Browz, Inc. | Server-side scripting language and programming tool |
| CN1713574A (en) * | 2004-06-25 | 2005-12-28 | 深圳市傲天通信有限公司 | Delivering system of webpage information of internet |
| CN103761098A (en) * | 2014-01-23 | 2014-04-30 | 贝壳网际(北京)安全技术有限公司 | Method and device for changing webpage skin and browser |
| CN105657046A (en) * | 2016-02-24 | 2016-06-08 | 中国科学技术大学 | Method for injecting advertisements based on Openwrt router |
| CN106790688A (en) * | 2017-02-17 | 2017-05-31 | 乌镇互联网医院(桐乡)有限公司 | Message push system and its method for pushing |
-
2017
- 2017-10-18 CN CN201710969013.3A patent/CN107817989A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6470349B1 (en) * | 1999-03-11 | 2002-10-22 | Browz, Inc. | Server-side scripting language and programming tool |
| CN1713574A (en) * | 2004-06-25 | 2005-12-28 | 深圳市傲天通信有限公司 | Delivering system of webpage information of internet |
| CN103761098A (en) * | 2014-01-23 | 2014-04-30 | 贝壳网际(北京)安全技术有限公司 | Method and device for changing webpage skin and browser |
| CN105657046A (en) * | 2016-02-24 | 2016-06-08 | 中国科学技术大学 | Method for injecting advertisements based on Openwrt router |
| CN106790688A (en) * | 2017-02-17 | 2017-05-31 | 乌镇互联网医院(桐乡)有限公司 | Message push system and its method for pushing |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109445786A (en) * | 2018-10-19 | 2019-03-08 | 成都安恒信息技术有限公司 | A method of the general pop-up page is realized based on JavaScript |
| CN109445786B (en) * | 2018-10-19 | 2022-02-11 | 成都安恒信息技术有限公司 | Method for realizing universal popup page based on JavaScript |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Bila et al. | Pagetailor: reusable end-user customization for the mobile web | |
| CN101944104A (en) | Evaluation method and equipment for importance of webpage sub-blocks | |
| CN103136317A (en) | Implement method of on-line examination and approval informatization of engineering contracts in engineering management system | |
| CN109726098A (en) | Interface test method, device and computer readable storage medium | |
| CN105094775B (en) | Webpage generation method and device | |
| CN102768685A (en) | Content recommendation method based on keyword matching | |
| CN107609032B (en) | Matching method and electronic equipment | |
| CN105224516A (en) | Graph text information generation method and device | |
| CN103473289A (en) | Device and method for completing communication addresses | |
| CN104317909A (en) | Method and device for verifying data of points of interest | |
| CN104899184A (en) | Character processing method, device and system | |
| CN105630992A (en) | Scene display method and device in static page | |
| CN107817989A (en) | A kind of method that APP pop-ups are realized based on JS links | |
| KR20160087295A (en) | Method and apparatus for providing advertisement adjusted to media | |
| CN101883354A (en) | Self-service site establishing method based on 3G (The 3rd Generation Telecommunication) mobile network | |
| CN102087653B (en) | Method and device for issuing website information | |
| CN105808628B (en) | Webpage code-transferring method, apparatus and system | |
| CN108132919A (en) | A kind of method of webpage content extraction | |
| Almond | Paper Thin? Why All High School Diplomas Are Not Created Equal. | |
| CN108388614A (en) | News data crawls processing method, device, computer equipment and storage medium | |
| Kellenberg | Accounting for natural resources in Ecuador: contrasting methodologies, conflicting results | |
| CN105653603A (en) | Method and system for displaying page functions | |
| CN110750700A (en) | Enterprise abbreviation generation method and model based on machine learning | |
| Healy | Mobilizing Community Museum Networks in Mexico--and Beyond. | |
| CN103279495A (en) | Method and device for confirming site information template corresponding to target object |
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 | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180320 |
|
| WD01 | Invention patent application deemed withdrawn after publication |