CN110298000A - Acquisition methods, terminal device and the medium of page parameter - Google Patents

Acquisition methods, terminal device and the medium of page parameter Download PDF

Info

Publication number
CN110298000A
CN110298000A CN201910422572.1A CN201910422572A CN110298000A CN 110298000 A CN110298000 A CN 110298000A CN 201910422572 A CN201910422572 A CN 201910422572A CN 110298000 A CN110298000 A CN 110298000A
Authority
CN
China
Prior art keywords
page
code
party
parameter
plug
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
CN201910422572.1A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910422572.1A priority Critical patent/CN110298000A/en
Publication of CN110298000A publication Critical patent/CN110298000A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • 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
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The present invention is suitable for development technique field, provide the acquisition methods, terminal device and medium of a kind of page parameter, this method comprises: obtaining the background logic code of mobile application, and detect and be present in the trigger point in background logic code, trigger point is used for the start-up loading third party H5 page;In background logic code, code region belonging to orientation triggering point, and add before code region and preset to bury point code;In the operational process of mobile application, if detecting about executing instruction for point code is buried, the source code of third party's H5 page is obtained, and stops loading the WebView of mobile application;Pre-stored plug-in script is made an addition into source code;Starting WebView renders third party's H5 page, and the page parameter of the third party H5 page is obtained based on plug-in script.The present invention can carry out the page parameter of AM automatic monitoring third party's H5 page with high performance JS script, in the case where ensure that stable system performance, improving and obtaining efficiency to the parameter of third party's H5 page.

Description

Acquisition methods, terminal device and the medium of page parameter
Technical field
The invention belongs to development technique field more particularly to a kind of acquisition methods of page parameter, terminal device and calculating Machine readable storage medium storing program for executing.
Background technique
With the continuous development of Internet technology, in order to enable mobile device more can neatly support all kinds of more matchmakers Body is convenient for developer's Web- Designing interaction effect, completes currently, World Wide Web Consortium has been formulated about hypertext markup language The standard criterion of (Hyper Text Mark-up Language, Html) 5.
Html5 is often used in the webpage web page of exploitation mobile application, and such page is the H5 page.In mobile application Project development process in, in order to improve development efficiency, partial page function may not be developed by oneself, but directly by the Tripartite's H5 page is integrated into application item.Therefore, if it is desired to monitor all kinds of relevant parameters for obtaining the third party H5 page, then only Original subscriber can be gone back to the interactive operation process of the H5 page by record screen form, and then pass through the side of manual analysis video data again Formula carries out parameter extraction.However, this mode needs to capture a large amount of record screen data, and reduction process need to consume it is biggish System performance, the parameter acquisition efficiency for consequently leading to the H5 page are more low.
Summary of the invention
It can in view of this, the embodiment of the invention provides a kind of acquisition methods of page parameter, terminal device and computers Storage medium is read, to solve in the prior art, the parameter of the H5 page obtains the more low problem of efficiency.
The first aspect of the embodiment of the present invention provides a kind of acquisition methods of page parameter, comprising:
The background logic code of mobile application is obtained, and detects and is present in the trigger point in the background logic code, institute Trigger point is stated for the start-up loading third party H5 page;
In the background logic code, position code region belonging to the trigger point, and the code region it Preceding addition is preset to bury point code;
In the operational process of the mobile application, executing instruction for point code is buried about described if detecting, is obtained The source code of the third party H5 page, and stop loading the network view WebView of the mobile application;
Pre-stored plug-in script is made an addition into the source code;The plug-in script includes for monitoring H5 page ginseng Several control logics;
Start the WebView to render the third party H5 page, and based on described in plug-in script acquisition The page parameter of third party's H5 page.
The second aspect of the embodiment of the present invention provides a kind of acquisition device of page parameter, comprising:
First acquisition unit for obtaining the background logic code of mobile application, and detects and is present in the background logic Trigger point in code, the trigger point are used for the start-up loading third party H5 page;
Positioning unit, for positioning code region belonging to the trigger point, and in institute in the background logic code It states to add before code region and preset buries point code;
Second acquisition unit, for burying point code about described if detecting in the operational process of the mobile application Execute instruction, then obtain the source code of the third party H5 page, and stop loading the network view of the mobile application WebView;
Adding unit, for the plug-in script being pre-stored to be made an addition to the source code;The plug-in script includes being used for Monitor the control logic of H5 page parameter;
Rendering unit renders the third party H5 page for starting the WebView, and is based on the plug-in unit Script obtains the page parameter of the third party H5 page.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory and processor, described to deposit Reservoir is stored with the computer program that can be run on the processor, and the processor is realized when executing the computer program The step of such as acquisition methods of above-mentioned page parameter.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the processor realizes the acquisition side such as above-mentioned page parameter when executing the computer program The step of method.
In the embodiment of the present invention, by being detected in advance for starting third in the background logic code of mobile application The trigger point of the square H5 page, and executed before the code region belonging to it and bury an operation, so that being run in mobile application Cheng Zhong can execute automatically the script injection to third party's H5 page source code based on point code is buried, thereby ensure that script Mobile application after the completion of injection can be come automatic when follow-up operation loads third party's H5 page with high performance JS script Monitor the page parameter of the third party H5 page.In the embodiment of the present invention, since the acquisition process of page parameter need not capture greatly again The record screen data of amount, thus in the case where ensure that stable system performance, improve the parameter acquisition to third party's H5 page Efficiency.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the acquisition methods of page parameter provided in an embodiment of the present invention;
Fig. 2 is the specific implementation flow chart of the acquisition methods S103 of page parameter provided in an embodiment of the present invention;
Fig. 3 is the specific implementation flow chart of the acquisition methods S104 of page parameter provided in an embodiment of the present invention;
Fig. 4 is the specific implementation flow chart of the acquisition methods S1042 of page parameter provided in an embodiment of the present invention;
Fig. 5 is the structural block diagram of the acquisition device of page parameter provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 shows the implementation process of the acquisition methods of page parameter provided in an embodiment of the present invention, above-mentioned implementation process Including step S101 to S105.The specific implementation principle of each step is as follows:
S101: the background logic code of mobile application is obtained, and detects the triggering being present in the background logic code Point, the trigger point are used for the start-up loading third party H5 page.
In the embodiment of the present invention, during each mobile application of User Exploitation, it will input is for realizing items The program code of function, then the collection of all kinds of program codes is combined into the background logic code of mobile application.
For mobile application to be tested, before running the mobile application, each section of background logic associated with it is loaded Code.To each section of background logic code, judge in this section of background logic code with the presence or absence of for start-up loading third party H5 The trigger point of the page.If the determination result is YES, S102 is thened follow the steps;If judging result be it is no, load and execute next section Background logic code, and return in this section of background logic code of above-mentioned judgement with the presence or absence of for the start-up loading third party H5 page Trigger point the step of.
Wherein, the H5 page that third party H5 page representation is developed by external staff.Specifically, this section of backstage of above-mentioned judgement The step of in logical code with the presence or absence of the trigger point for the start-up loading third party H5 page, comprising: obtain preassembled The plug-in unit mark of each local plug-in unit;If in this section of background logic code not including the parameter mark for calling the external page Know, alternatively, the parameter identification of its external page called is matched with any one plug-in unit mark, then it represents that this section of background logic generation The plug-in unit of User Exploitation is integrated in code section, the page of required matching load is the local H5 page, accordingly, it is determined that this section of backstage Above-mentioned trigger point is not present in logical code.If in this section of background logic code including the parameter mark for calling the external page Know, and the parameter identification of its external page called is mismatched with each plug-in unit mark, then it represents that this section of background logic code The page of Duan Suoxu load is the third party H5 page, accordingly, it is determined that there are above-mentioned trigger points in this section of background logic code.
In the embodiment of the present invention, the trigger point determined is marked.
S102: in the background logic code, code region belonging to the trigger point is positioned, and in the code area It adds before domain and preset buries point code.
In the embodiment of the present invention, the background logic code of mobile application is sequentially traversed and executed.Believed according to preset label Breath, finds out code region belonging to above-mentioned marked trigger point, and execute and buried a little before the code region.That is, at this It is implanted into before code region and preset buries point code.Wherein, this buries point code and injects for triggering the plug-in unit of third party's H5 page Event.At this point, built-in native frame can be determined currently based on point code is buried is in the operational process of mobile application It is no to need to open third party's H5 page using network view webview.
As an implementation example of the invention, behind the code region belonging to orientation triggering point, according to the generation received Code typing instruction, what acquisition developer was inputted in real time buries point code, this is buried point code and makes an addition to the code oriented The band of position before region.
It is above-mentioned that the operation buried a little is executed before code region as another implementation example of the invention, it specifically includes: According to it is preset bury point script and with the plug-in unit that buries point script and match, automatically generate corresponding to it is each bury a little bury point code and Bury a rule.It is executed before code region when burying operation, obtains and bury the compiling plug-in unit that a rule matches, and by should Compiling plug-in unit is compiled processing to the current point code generated that buries, and is inserted into shifting when compiling passes through, will bury point code In the code region of dynamic application.Wherein, point code is buried mutually to separate with the background logic code corresponding to business development.Pass through benefit Point code is buried to detect and compile with a rule is buried, so that the introducing scalability for burying point code is stronger, is realized to mobile application Automation bury operation.Also, it is also reduced while burying accuracy rate due to burying a little no manual intervention automatically, therefore improving Cumbersome degree.
S103: in the operational process of the mobile application, burying executing instruction for point code about described if detecting, The source code of the third party H5 page is obtained, and stops loading the network view WebView of the mobile application.
Under normal circumstances, it in the operational process of mobile application, sequentially loads and executes and the associated each row of mobile application Background logic code.If detecting, there are above-mentioned trigger points in currently performed background logic code, then it represents that preset Native frame will start Webview and carry out the loading third-party H5 page.And in the embodiment of the present invention, it is run in mobile application When, point code is buried if detecting and existing in currently performed background logic code, is triggered to H5 pages of associated third party The plug-in script in face injects event.Wherein, plug-in script includes the control logic for monitoring H5 page parameter.Page parameter packet Include but be not limited to resource acquisition information, local resource load information, document spatial cue and related perform script information etc..
In the embodiment of the present invention, before triggering is to the plug-in script injection event of third party's H5 page, Schilling is preset Native frame stops starting WebView, to prevent the automatic load to third party's H5 page.Specifically, due to the H5 page It needs to execute by the method for the primary native of mobile application, and renders it in the webview built in mobile application Can open, therefore, in order to avoid the automatic load of third party's H5 page, it is executable it is pre-establishing, for preventing page rendering Code module.
As an example of the invention, as shown in Fig. 2, above-mentioned steps S103 is specifically included:
S1031: in the operational process of the mobile application, burying executing instruction for point code about described if detecting, Then obtain the uniform resource position mark URL of the third party H5 page.
S1032: the URL is inputted as the conditional parameter in view control function, to detect the page to be loaded When URL is matched with the conditional parameter, stop loading the network view of the mobile application based on the view control function WebView。
In the embodiment of the present invention, the above-mentioned view control function pre-established be can be, and be passed through ShouldOverrideUrlLoading method obtains current i.e. by the uniform resource identifier of the third party H5 page to be loaded (Uniform Resource Locator, URL), and judge that the URL whether there is in url filtering list;If so, returning It returns and does not handle, to realize the rendering stopped to third party's H5 page.Wherein, url filtering list is stored with above-mentioned real-time acquisition The URL of obtained third party's H5 page, then the conditional parameter in example of the present invention by above-mentioned url filtering list include it is each URL。
S104: pre-stored plug-in script is made an addition into the source code;The plug-in script includes for monitoring H5 pages The control logic of face parameter.
In the embodiment of the present invention, according to the URL of third party's H5 page, inquiry and the matched network resource server of the URL, And source code downloading request is issued to network resource server, to obtain the source code of third party's H5 page.It will acquire in advance Plug-in script make an addition in source code, thus complete automation plug-in script injection event.
As an embodiment of the present invention, Fig. 3 shows the acquisition methods of page parameter provided in an embodiment of the present invention The specific implementation flow of S104, details are as follows:
S1041: being analyzed and processed the source code of the third party H5 page, in the presence of positioning the source code Default page-tag pair, the default page-tag is to first page label and second page label including successively occurring.
S1042: pre-stored plug-in script is made an addition between the first page label and the second page label Code region.
In the embodiment of the present invention, carried out at detection by source code of the preset Native frame to third party's H5 page Reason, to detect in source code with the presence or absence of preset page-tag pair.Wherein, above-mentioned preset page-tag is to for<html> And</html>.For the ease of distinguishing, in every a pair of of page-tag pair<html>and</html>in, formerly occur<html> Referred to as first page label, in rear appearance</html>referred to as second page label.
Specifically, the first regular expression to match with above-mentioned first page label is obtained respectively and with above-mentioned second The second regular expression that page-tag matches.To every a line source code in third party's H5 page, judge whether it meets First regular expression or the second regular expression.If any a line source code meets the first regular expression, then it represents that the row It include first page label<html>in source code;If any a line source code meets the second regular expression, then it represents that should It include second page label<html>in row source code.
In the embodiment of the present invention, first page label is determined<html>and second page label</html>in code The corresponding first position point of institute and second position point in region.The plug-in script acquired in advance is made an addition to first Code region between location point and second position point.
Preferably, the plug-in script acquired in advance is being made an addition between first position point and second position point When code region, the source address of plug-in script is first obtained, the script tag for carrying the source address is added to first position Code region between point and second position point.For example, by third party's H5 page < script src=" plug-in script Source address "></script>label executes addition processing.
As an embodiment of the present invention, Fig. 4 shows the acquisition methods of page parameter provided in an embodiment of the present invention The specific implementation flow of S1042, details are as follows:
S10421: if the number of the default page-tag pair in the presence of the source code is two couples or more, really Make the last default page-tag pair that sorts.
S10422: in the default page-tag pair determined, the second page label is positioned.
S10423: pre-stored plug-in script is made an addition to the code region before the second page label.
In actual scene, since the source code of third party's H5 page may include two pairs or more of default page-tag It is right, therefore, detected by Native frame with the presence or absence of preset page-tag clock synchronization in source code, first determination detects Default page-tag pair number.If the number of the default page-tag pair in the presence of source code is two pairs or more, fixed The second page label finally occurred in the code region of position</html>, and search first to match with the second page label Page-tag<html>.The first page label and its second page label of pairing are the last default page-tag of sequence It is right.
In the embodiment of the present invention, pre-stored plug-in script is made an addition between the last default page-tag pair that sorts. Preferably, plug-in script is inserted in the second page label finally occurred</html>before, and plug-in script belonging positions are enabled Point is minimum at a distance from the second page label belonging positions point.
The present invention implement in, only in detecting source code the last one occur second page label</html>when, The close position point just plug-in script being injected into before the page-tag is avoided and is loaded not yet in the third party H5 page In the case where completion, lead to not the case where finding page documents element appearance because running plug-in script;Meanwhile it being answered in movement During follow-up operation, third party's H5 page will not be caused rendering occur because of the preferential load of plug-in script slow Problem.Therefore, by the way that plug-in script to be made an addition to the end of source code, it can reduce the shadow to third party's H5 page loading velocity It rings, improves the operation stability and user experience of mobile application.
S105: starting the WebView and render to the third party H5 page, and is obtained based on the plug-in script The page parameter of the third party H5 page.
Since plug-in script includes the control logic for monitoring H5 page parameter, running modified third When the source code of the square H5 page, it is based on already present plug-in script, can directly acquire and return the page of third party's H5 page Parameter.
Preferably, after injecting WebView plug-in script, by Native come to associated by the plug-in script after injection Third party's H5 page code carries out syntactic verification.Only when grammer testing result is syntactic verification success, just plug-in script is infused The source code of third party's H5 page after the completion of entering, which is placed in WebView, to be rendered, and is loaded to ensure that in mobile application While third party's H5 page, the probability of occurrence of page fault can reduce, thus also improve the stable of mobile application Property.
In the embodiment of the present invention, by being detected in advance for starting third in the background logic code of mobile application The trigger point of the square H5 page, and executed before the code region belonging to it and bury an operation, so that being run in mobile application Cheng Zhong can execute automatically the script injection to third party's H5 page source code based on point code is buried, thereby ensure that script Mobile application after the completion of injection can be come automatic when follow-up operation loads third party's H5 page with high performance JS script Monitor the page parameter of the third party H5 page.In the embodiment of the present invention, since the acquisition process of page parameter need not capture greatly again The record screen data of amount, thus in the case where ensure that stable system performance, improve the parameter acquisition to third party's H5 page Efficiency.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Corresponding to the acquisition methods of page parameter provided by the embodiment of the present invention, Fig. 5 shows the embodiment of the present invention and mentions The structural block diagram of the acquisition device of the page parameter of confession.For ease of description, only the parts related to this embodiment are shown.
Referring to Fig. 5, which includes:
First acquisition unit 51, for obtaining the background logic code of mobile application, and detection is present in the backstage and patrols The trigger point in code is collected, the trigger point is used for the start-up loading third party H5 page.
Positioning unit 52 positions code region belonging to the trigger point in the background logic code, and It adds before the code region and preset buries point code.
Second acquisition unit 53, for burying a generation about described if detecting in the operational process of the mobile application Executing instruction for code, then obtain the source code of the third party H5 page, and stop loading the network view of the mobile application WebView。
Adding unit 54, for the plug-in script being pre-stored to be made an addition to the source code;The plug-in script includes using In the control logic for monitoring H5 page parameter.
Rendering unit 55 renders the third party H5 page for starting the WebView, and is inserted based on described Part script obtains the page parameter of the third party H5 page.
Optionally, the adding unit 54 includes:
Subelement is analyzed, is analyzed and processed for the source code to the third party H5 page, positions the source code In the presence of default page-tag pair, the default page-tag is to including the first page label and second that successively occurs Page-tag.
Subelement is added, for the plug-in script being pre-stored to be made an addition to the first page label and the second page Code region between label.
Optionally, the addition subelement is specifically used for:
If the number of the default page-tag pair in the presence of the source code is two pairs or more, it is determined that sort out The last default page-tag pair;
In the default page-tag pair determined, the second page label is positioned;
Pre-stored plug-in script is made an addition to the code region before the second page label.
Optionally, second acquisition unit 53 includes:
First obtains subelement, for burying a generation about described if detecting in the operational process of the mobile application Executing instruction for code, then obtain the uniform resource position mark URL of the third party H5 page.
Input subelement, for inputting the URL for the conditional parameter in view control function, with detect it is to be added When the URL of the load page is matched with the conditional parameter, stop loading the net of the mobile application based on the view control function Network view WebView.
Optionally, the first acquisition unit 51 includes:
Second obtains subelement, for obtaining the plug-in unit mark of preassembled each local plug-in unit.
Subelement is determined, for each section of background logic code to mobile application, if wrapping in this section of background logic code Containing for calling the parameter identification of the external page, and the parameter identification is mismatched with each plug-in unit mark, then really Fixed this section of background logic code is the trigger point.
In the embodiment of the present invention, by being detected in advance for starting third in the background logic code of mobile application The trigger point of the square H5 page, and executed before the code region belonging to it and bury an operation, so that being run in mobile application Cheng Zhong can execute automatically the script injection to third party's H5 page source code based on point code is buried, thereby ensure that script Mobile application after the completion of injection can be come automatic when follow-up operation loads third party's H5 page with high performance JS script Monitor the page parameter of the third party H5 page.In the embodiment of the present invention, since the acquisition process of page parameter need not capture greatly again The record screen data of amount, thus in the case where ensure that stable system performance, improve the parameter acquisition to third party's H5 page Efficiency.
Fig. 6 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in fig. 6, the terminal of the embodiment is set Standby 6 include: processor 60, memory 61 and are stored in the meter that can be run in the memory 61 and on the processor 60 Calculation machine program 62, such as the acquisition program of page parameter.The processor 60 is realized above-mentioned when executing the computer program 62 Step in the acquisition methods embodiment of each page parameter, such as step 101 shown in FIG. 1 is to 105.Alternatively, the processing Device 60 realizes the function of each module/unit in above-mentioned each Installation practice when executing the computer program 62, such as shown in Fig. 5 The function of unit 51 to 55.
Illustratively, the computer program 62 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 61, and are executed by the processor 60, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 62 in the terminal device 6 is described.
The terminal device 6 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 60, memory 61.It will be understood by those skilled in the art that Fig. 6 The only example of terminal device 6 does not constitute the restriction to terminal device 6, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 60 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 61 can be the internal storage unit of the terminal device 6, for example, terminal device 6 hard disk or Memory.The memory 61 is also possible to the External memory equipment of the terminal device 6, such as is equipped on the terminal device 6 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, Flash card (Flash Card) etc..Further, the memory 61 can also both include the storage inside of the terminal device 6 Unit also includes External memory equipment.The memory 61 is for storing needed for the computer program and the terminal device Other programs and data.The memory 61 can be also used for temporarily storing the data that has exported or will export.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program The medium of code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of acquisition methods of page parameter characterized by comprising
The background logic code of mobile application is obtained, and detects and is present in the trigger point in the background logic code, the touching Hair point is used for the start-up loading third party H5 page;
In the background logic code, code region belonging to the trigger point is positioned, and add before the code region Add and preset buries point code;
In the operational process of the mobile application, bury executing instruction for point code about described if detecting, obtain described in The source code of third party's H5 page, and stop loading the network view WebView of the mobile application;
Pre-stored plug-in script is made an addition into the source code;The plug-in script includes the control for monitoring H5 page parameter Logic processed;
Start the WebView to render the third party H5 page, and the third is obtained based on the plug-in script The page parameter of the square H5 page.
2. the acquisition methods of page parameter as described in claim 1, which is characterized in that described to add pre-stored plug-in script It is added on the source code, comprising:
The source code of the third party H5 page is analyzed and processed, the default page mark in the presence of the source code is positioned Label pair, the default page-tag is to first page label and second page label including successively occurring;
Pre-stored plug-in script is made an addition into the code region between the first page label and the second page label.
3. the acquisition methods of page parameter as claimed in claim 2, which is characterized in that described to add pre-stored plug-in script It is added on the code region between the first page label and the second page label, comprising:
If the number of the default page-tag pair in the presence of the source code is two pairs or more, it is determined that sequence is last out The default page-tag pair;
In the default page-tag pair determined, the second page label is positioned;
Pre-stored plug-in script is made an addition to the code region before the second page label.
4. the acquisition methods of page parameter as described in claim 1, which is characterized in that the operation in the mobile application In the process, executing instruction for point code is buried about described if detecting, obtains the source code of the third party H5 page, and stopped Only load the network view WebView of the mobile application, comprising:
In the operational process of the mobile application, bury executing instruction for point code about described if detecting, obtain described in The uniform resource position mark URL of third party's H5 page;
The URL is inputted as the conditional parameter in view control function, in the URL and the item for detecting the page to be loaded When part parameter matches, stop loading the network view WebView of the mobile application based on the view control function.
5. the acquisition methods of page parameter as described in claim 1, which is characterized in that the backstage for obtaining mobile application is patrolled Code is collected, and detects and is present in the trigger point in the background logic code, comprising:
Obtain the plug-in unit mark of preassembled each local plug-in unit;
To each section of background logic code of mobile application, if including for calling the external page in this section of background logic code Parameter identification, and the parameter identification is mismatched with each plug-in unit mark, it is determined that this section of background logic code be The trigger point.
6. a kind of acquisition device of page parameter characterized by comprising
First acquisition unit for obtaining the background logic code of mobile application, and detects and is present in the background logic code In trigger point, the trigger point be used for the start-up loading third party H5 page;
Positioning unit, for positioning code region belonging to the trigger point, and in the generation in the background logic code It is added before code region and preset buries point code;
Second acquisition unit, for burying holding for point code about described if detecting in the operational process of the mobile application Row instruction, then obtain the source code of the third party H5 page, and stop loading the network view of the mobile application WebView;
Adding unit, for the plug-in script being pre-stored to be made an addition to the source code;The plug-in script includes for monitoring The control logic of H5 page parameter;
Rendering unit renders the third party H5 page for starting the WebView, and is based on the plug-in script Obtain the page parameter of the third party H5 page.
7. the acquisition device of page parameter as claimed in claim 6, which is characterized in that the adding unit includes:
Subelement is analyzed, is analyzed and processed for the source code to the third party H5 page, positions institute in the source code Existing default page-tag pair, the default page-tag is to first page label and second page including successively occurring Label;
Subelement is added, for the plug-in script being pre-stored to be made an addition to the first page label and the second page label Between code region.
8. the acquisition device of page parameter as claimed in claim 7, which is characterized in that the addition subelement is specifically used for:
If the number of the default page-tag pair in the presence of the source code is two pairs or more, it is determined that sequence is last out The default page-tag pair;
In the default page-tag pair determined, the second page label is positioned;
Pre-stored plug-in script is made an addition to the code region before the second page label.
9. a kind of terminal device, including memory and processor, the memory, which is stored with, to be run on the processor Computer program, which is characterized in that the processor is realized when executing the computer program as claim 1 to 5 is any The step of item the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201910422572.1A 2019-05-21 2019-05-21 Acquisition methods, terminal device and the medium of page parameter Pending CN110298000A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910422572.1A CN110298000A (en) 2019-05-21 2019-05-21 Acquisition methods, terminal device and the medium of page parameter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910422572.1A CN110298000A (en) 2019-05-21 2019-05-21 Acquisition methods, terminal device and the medium of page parameter

Publications (1)

Publication Number Publication Date
CN110298000A true CN110298000A (en) 2019-10-01

Family

ID=68026944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910422572.1A Pending CN110298000A (en) 2019-05-21 2019-05-21 Acquisition methods, terminal device and the medium of page parameter

Country Status (1)

Country Link
CN (1) CN110298000A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781425A (en) * 2019-10-25 2020-02-11 北京创鑫旅程网络技术有限公司 Display method, device and equipment of mobile terminal H5 page and storage medium
CN111177623A (en) * 2019-12-23 2020-05-19 北京健康之家科技有限公司 Information processing method and device
CN111338960A (en) * 2020-02-27 2020-06-26 中国平安人寿保险股份有限公司 Buried point data acquisition method and device
CN112860543A (en) * 2021-01-20 2021-05-28 维沃移动通信(深圳)有限公司 Method and electronic equipment for detecting page operation
CN113176908A (en) * 2021-04-29 2021-07-27 广州嘉为科技有限公司 Method, system, device and medium for dynamically expanding web function and hot-pluggable

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104881452A (en) * 2015-05-18 2015-09-02 百度在线网络技术(北京)有限公司 Resource locator sniffing method, device and system
CN107295050A (en) * 2016-04-01 2017-10-24 阿里巴巴集团控股有限公司 Front end user behavioral statisticses method and device
CN109446457A (en) * 2018-09-25 2019-03-08 平安普惠企业管理有限公司 Update method, terminal device and the medium of page data
CN109710354A (en) * 2018-12-13 2019-05-03 平安普惠企业管理有限公司 Page monitor method, page restoring method, device, equipment and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104881452A (en) * 2015-05-18 2015-09-02 百度在线网络技术(北京)有限公司 Resource locator sniffing method, device and system
CN107295050A (en) * 2016-04-01 2017-10-24 阿里巴巴集团控股有限公司 Front end user behavioral statisticses method and device
CN109446457A (en) * 2018-09-25 2019-03-08 平安普惠企业管理有限公司 Update method, terminal device and the medium of page data
CN109710354A (en) * 2018-12-13 2019-05-03 平安普惠企业管理有限公司 Page monitor method, page restoring method, device, equipment and medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781425A (en) * 2019-10-25 2020-02-11 北京创鑫旅程网络技术有限公司 Display method, device and equipment of mobile terminal H5 page and storage medium
CN110781425B (en) * 2019-10-25 2022-09-20 北京创鑫旅程网络技术有限公司 Display method, device and equipment of mobile terminal H5 page and storage medium
CN111177623A (en) * 2019-12-23 2020-05-19 北京健康之家科技有限公司 Information processing method and device
CN111338960A (en) * 2020-02-27 2020-06-26 中国平安人寿保险股份有限公司 Buried point data acquisition method and device
CN112860543A (en) * 2021-01-20 2021-05-28 维沃移动通信(深圳)有限公司 Method and electronic equipment for detecting page operation
CN113176908A (en) * 2021-04-29 2021-07-27 广州嘉为科技有限公司 Method, system, device and medium for dynamically expanding web function and hot-pluggable

Similar Documents

Publication Publication Date Title
CN110298000A (en) Acquisition methods, terminal device and the medium of page parameter
US10325009B2 (en) Method and apparatus for using custom component parsing engine to parse tag of custom component
Choudhary et al. WEBDIFF: Automated identification of cross-browser issues in web applications
KR101657578B1 (en) Machine learning method to identify independent tasks for parallel layout in web browsers
CN110069683B (en) Method and device for crawling data based on browser
CN105243159A (en) Visual script editor-based distributed web crawler system
CN105786455B (en) Data processing method and device and terminal
US11263062B2 (en) API mashup exploration and recommendation
CN105260424B (en) The processing method and processing device that user browses web-page histories record and most frequentation is asked
CN103377128A (en) Method and system for race detection for Web applications
WO2014154033A1 (en) Method and apparatus for extracting web page content
CN103164331A (en) Vulnerability detecting method and device of application program
CN110147327B (en) Multi-granularity-based web automatic test management method
CN108846286A (en) Cross site scripting leak detection method and device
CN110347954B (en) Complex Web application-oriented servitization method
CN113051514A (en) Element positioning method and device, electronic equipment and storage medium
CN110334302B (en) Complex Web application front-end runtime analysis method
CN107547944A (en) Interface realizing method and device, set top box
CN110232019A (en) Page test method and Related product
CN110147477B (en) Data resource modeling extraction method, device and equipment of Web system
CA2784172A1 (en) Modular tool for constructing a link to a rights program from article information
CN109062785B (en) Interface parameter constraint code positioning method and system
CN112464242A (en) Webpage platform vulnerability collection method, system, terminal and storage medium
CN104714791B (en) A kind of method and apparatus that Web applications are split and reset
US11960560B1 (en) Methods for analyzing recurring accessibility issues with dynamic web site behavior and devices thereof

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