CN110209959A - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN110209959A
CN110209959A CN201810140366.7A CN201810140366A CN110209959A CN 110209959 A CN110209959 A CN 110209959A CN 201810140366 A CN201810140366 A CN 201810140366A CN 110209959 A CN110209959 A CN 110209959A
Authority
CN
China
Prior art keywords
browser
information
target pages
cache file
mentioned
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.)
Granted
Application number
CN201810140366.7A
Other languages
Chinese (zh)
Other versions
CN110209959B (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810140366.7A priority Critical patent/CN110209959B/en
Publication of CN110209959A publication Critical patent/CN110209959A/en
Application granted granted Critical
Publication of CN110209959B publication Critical patent/CN110209959B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present application discloses information processing method and device.Wherein, a specific embodiment of the information processing method for end to be arranged includes: the call request identified including recalls information and target pages received through association page triggering associated by the setting end;Preset first browser rs cache file is written into target pages mark, preset second browser rs cache file is written into recalls information, so that actuating station associated with the indicated target pages of target pages mark is detecting the first browser rs cache document memory when target pages identify, from the second browser rs cache file acquisition recalls information, corresponding call operation is executed based on recalls information;Wherein, the page, target pages, the first browser rs cache file and the second browser rs cache file are associated with and are provided with identical top-level domain.The embodiment may be implemented to be provided with the cross-domain calling between identical top-level domain and the page of different subdomain names.

Description

Information processing method and device
Technical field
The invention relates to field of computer technology, and in particular to information processing method and device.
Background technique
Existing application generally includes multiple sub- applications, and the sub- application page from different sub- applications is usually provided with phase Same top-level domain and different subdomain name (such as second level domain, three-level domain name etc.).Wherein, the homepage of an application removes Outside content of pages comprising oneself, it will usually the sub- application page that introduces identical top-level domain, for example, by using iframe form Introduce the sub- application page.Wherein, iframe is HTML (HyperText Markup Language, hypertext markup language) Label, iframe label can specify that an inline frame.One inline frame can be used to embedding in current html document Enter another document.
In addition, in, between homepage and sub- application page and between sub- application page and sub- application page usually There are call relations.For example, sub- application page can notify that the page of homepage oneself has loaded completion, and/or to homepage Data etc. are provided.Each sub- application page is usually second level or three-level domain name by oneself to access introducing, and son is answered It is all cross-domain for being called with the page and sub- application page and the script between homepage, can usually be thought not by browser Forbid safely.
Summary of the invention
The embodiment of the present application proposes information processing method and device.
In a first aspect, the embodiment of the present application provide it is a kind of for the information processing method at end to be arranged, this method comprises: connecing Receive the call request by association page triggering associated by above-mentioned setting end, wherein above-mentioned call request includes recalls information It is identified with target pages, above-mentioned recalls information is used to indicate execution call operation;The mark write-in of above-mentioned target pages is preset First browser rs cache file, and preset second browser rs cache file is written into above-mentioned recalls information, so that with above-mentioned The indicated associated actuating station of target pages of target pages mark is detecting above-mentioned first browser rs cache document memory In above-mentioned target pages mark, from the above-mentioned above-mentioned recalls information of second browser rs cache file acquisition, believed based on above-mentioned calling Breath executes corresponding call operation;Wherein, the above-mentioned association page, above-mentioned target pages, above-mentioned first browser rs cache file and Above-mentioned second browser rs cache file is provided with identical top-level domain.
In some embodiments, above-mentioned that preset second browser rs cache file is written into above-mentioned recalls information, comprising: will Designated position in above-mentioned second browser rs cache file, relevant to above-mentioned target pages mark is written in above-mentioned recalls information.
Second aspect, the embodiment of the present application provide a kind of information processing method for actuating station, this method comprises: inspection The target pages mark that whether there is target pages associated with above-mentioned actuating station is surveyed in preset first browser rs cache file Know;In response to detecting above-mentioned target pages mark, from preset second browser rs cache file acquisition and above-mentioned target pages Identify associated information;Above- mentioned information are parsed, determine whether above- mentioned information are to be used to indicate to execute call operation Recalls information;In response to determining that above- mentioned information are above-mentioned recalls information, corresponding call operation is executed based on above- mentioned information;Its In, above-mentioned target pages, above-mentioned first browser rs cache file and above-mentioned second browser rs cache file are provided with identical one Grade domain name.
In some embodiments, above-mentioned to identify phase from preset second browser rs cache file acquisition and above-mentioned target pages Associated information, comprising: from designated position in above-mentioned second browser rs cache file, relevant to above-mentioned target pages mark Obtain above- mentioned information.
In some embodiments, the above method further include: when executing call operation, remove above-mentioned first browser rs cache Above-mentioned target pages mark in file.
In some embodiments, the above method further include: when executing call operation, remove above-mentioned second browser rs cache Above- mentioned information in file.
In some embodiments, above- mentioned information include method name and parameter information, and above-mentioned parameter information includes call back function Information, above-mentioned call back function information association have a page iden-tity, indicated by page iden-tity associated by above-mentioned call back function information The page and above-mentioned target pages are provided with identical top-level domain.
In some embodiments, the above method further include: after having executed call operation and having obtained call result, by above-mentioned time Adjust page iden-tity associated by function information that above-mentioned first browser rs cache file is written, and will be in the write-in of above-mentioned call result State the second browser rs cache file.
The third aspect, the embodiment of the present application provide a kind of for the information processing unit at end to be arranged, which includes: to connect Unit is received, is configured to receive the call request by association page triggering associated by above-mentioned setting end, wherein above-mentioned calling Request includes that recalls information and target pages identify, and above-mentioned recalls information is used to indicate execution call operation;Writing unit, configuration For being preset by the preset first browser rs cache file of above-mentioned target pages mark write-in, and by the write-in of above-mentioned recalls information The second browser rs cache file so that actuating station associated with the indicated target pages of above-mentioned target pages mark is being examined Above-mentioned first browser rs cache document memory is measured when above-mentioned target pages identify, is obtained from above-mentioned second browser rs cache file Above-mentioned recalls information is taken, corresponding call operation is executed based on above-mentioned recalls information;Wherein, the above-mentioned association page, above-mentioned target The page, above-mentioned first browser rs cache file and above-mentioned second browser rs cache file are provided with identical top-level domain.
In some embodiments, above-mentioned writing unit is further configured to: above-mentioned recalls information is written above-mentioned second Designated position in browser rs cache file, relevant to above-mentioned target pages mark.
Fourth aspect, the embodiment of the present application provide a kind of information processing unit for actuating station, which includes: inspection Unit is surveyed, is configured to detect in preset first browser rs cache file with the presence or absence of target associated with above-mentioned actuating station The target pages of the page identify;Acquiring unit is configured in response to detecting above-mentioned target pages mark, from preset second Browser rs cache file acquisition information associated with above-mentioned target pages mark;Determination unit is configured to above- mentioned information It is parsed, determines whether above- mentioned information are to be used to indicate the recalls information for executing call operation;Execution unit is configured to ring Corresponding call operation should be executed based on above- mentioned information in determining that above- mentioned information are above-mentioned recalls information;Wherein, above-mentioned page object Face, above-mentioned first browser rs cache file and above-mentioned second browser rs cache file are provided with identical top-level domain.
In some embodiments, above-mentioned acquiring unit is further configured to: from above-mentioned second browser rs cache file , relevant to above-mentioned target pages mark designated position obtain above- mentioned information.
In some embodiments, above-mentioned apparatus further include: the first clearing cell is configured to when executing call operation, Remove the above-mentioned target pages mark in above-mentioned first browser rs cache file.
In some embodiments, above-mentioned apparatus further include: the second clearing cell is configured to when executing call operation, Remove the above- mentioned information in above-mentioned second browser rs cache file.
In some embodiments, above- mentioned information include method name and parameter information, and above-mentioned parameter information includes call back function Information, above-mentioned call back function information association have a page iden-tity, indicated by page iden-tity associated by above-mentioned call back function information The page and above-mentioned target pages are provided with identical top-level domain.
In some embodiments, above-mentioned apparatus further include: writing unit is configured to be adjusted having executed call operation After result, above-mentioned first browser rs cache file is written into page iden-tity associated by above-mentioned call back function information, and will Above-mentioned second browser rs cache file is written in above-mentioned call result.
5th aspect, the embodiment of the present application provide a kind of electronic equipment, which includes: one or more processing Device;Storage device, for storing one or more programs;When said one or multiple programs are by said one or multiple processors It executes, so that said one or multiple processors realize the method as described in implementation any in first aspect.
6th aspect, the embodiment of the present application provide a kind of electronic equipment, which includes: one or more processing Device;Storage device, for storing one or more programs;When said one or multiple programs are by said one or multiple processors It executes, so that said one or multiple processors realize the method as described in implementation any in second aspect.
7th aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, on State the method realized as described in implementation any in first aspect when program is executed by processor.
Eighth aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, on State the method realized as described in implementation any in second aspect when program is executed by processor.
Information processing method and device provided by the embodiments of the present application are received by setting end through the association associated by it Page triggering includes call request that recalls information and target pages identify, then by target pages mark write-in preset the One browser rs cache file, and preset second browser rs cache file is written into recalls information.By with target pages mark When the associated actuating station of target pages indicated by knowing detects target pages mark in the first browser rs cache file, from Second browser rs cache file acquisition information associated with target pages mark, and determining that the information is to be used to indicate execution When the recalls information of call operation, corresponding call operation is executed based on the information.Wherein, the association page, the target pages, The first browser rs cache file and the second browser rs cache file are provided with identical top-level domain.To by first The effective use of browser rs cache file and the second browser rs cache file may be implemented to be provided with identical top-level domain and not Cross-domain calling between the page of same subdomain name.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the information processing method for end to be arranged of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the information processing method for end to be arranged of the application;
Fig. 4 is the flow chart according to one embodiment of the information processing method for actuating station of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the information processing unit for end to be arranged of the application;
Fig. 6 is the structural schematic diagram according to one embodiment of the information processing unit for actuating station of the application;
Fig. 7 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the exemplary system architecture of the embodiment of the information processing method and device of the application 100。
As shown in Figure 1, system architecture 100 may include setting end 101, network 102 and actuating station 103.Network 102 to The medium of communication link is provided between setting end 101 and actuating station 103.Network 102 may include various connection types, such as Wired, wireless communication link or fiber optic cables etc..
The server that end 101 can be to provide various services is set, can be deployment on the server possess software and hardware The thread of resource can also be and be packaged rear resulting JS to the script method calling between different domain names in advance (JavaScript) method that library externally provides.End 101, which is arranged, can receive the calling triggered by the associated association page Request, and the call request is handled.
Actuating station 103 can be to provide the server of various services, can be deployment on the server possess software and hardware The thread of resource can also be that being packaged the rear resulting library JS to the script method calling between different domain names in advance externally mentions The method of confession.Actuating station 103, which in real time or can be detected periodically, whether there is and is held in preset first browser rs cache file The target pages of the associated target pages in row end 103 identify, and when detecting target pages mark, are located accordingly Reason operation.
It should be noted that setting end 101 and actuating station 103 can be same server, can be deployed in it is same Different threads on platform server can also be the different methods that the same library JS externally provides.
It should be understood that the number at setting end, network and actuating station in Fig. 1 is only schematical.According to realize needs, It can have any number of setting end, network and actuating station.
With continued reference to Fig. 2, one embodiment of the information processing method for end to be arranged according to the application is shown Process 200.This is used to be arranged the process 200 of the information processing method at end, comprising the following steps:
Step 201, the call request by associated association page triggering is received.
In the present embodiment, electronic equipment thereon is run (such as shown in Fig. 1 for the information processing method at end to be arranged Setting end 101) call request by the association page triggering associated by it can be received in real time.Wherein, which asks It asks and can be the call request that user executes specified operation to trigger on the association page.Call request may include calling Information and target pages mark.Recalls information can be the information for being used to indicate and executing call operation.Target pages mark is signified The target pages shown can be the page that same application is belonged to the above-mentioned association page.
In addition, recalls information may include method name and parameter information.The parameter information for example may include call back function Information.Call back function information for example may include the pointer (address) of call back function.Wherein, call back function, which can be, passes through function The function that pointer calls.
It should be noted that setting end can be respectively associated in each page in where the above-mentioned association page. Certainly, which can also be associated with actuating station while setting end has been respectively associated.In addition, each page can To be provided with identical top-level domain.Certainly, in the case where being provided with identical top-level domain, which be can be set There is different subdomain names (such as second level domain, three-level domain name etc.).
It should be pointed out that domain name can be divided into different stage, including top level domain (can be described as top-level domain), second-level domain Name, three-level domain name etc..Wherein, top level domain can be divided into two classes again: first is that national top level domain (national top-level Domainnames, abbreviation nTLDs);Second is that world top level domain (international top-level domain names, Abbreviation iTDs).Second level domain refers to the domain name under top level domain, and under international top level domain, it can refer to domain name registration The online title of people;Under national top level domain, it can be the symbol for indicating registered enterprise's classification.Three-level domain name leads to commonly used word Female (A~Z, a~z, capital and small letter etc.), digital (0~9) and connector (-) form, and are connected between domain names at different levels with real point (). The length of three-level domain name is generally no more than 20 characters.
Step 202, preset first browser rs cache file is written into target pages mark, and recalls information is written Preset second browser rs cache file, so that actuating station associated with the indicated target pages of target pages mark is being examined The first browser rs cache document memory is measured in target pages mark, from the second browser rs cache file acquisition recalls information, Corresponding call operation is executed based on recalls information.
In the present embodiment, above-mentioned electronic equipment is receiving the call request by the association page triggering associated by it Afterwards, above-mentioned electronic equipment, which can identify target pages included by the call request, is written preset first browser rs cache text Part (browser rs cache file can be stored in the text file in browser directory, can be described as cookie), and by the tune Preset second browser rs cache file is written with the included recalls information of request, so that with indicated by target pages mark The associated actuating station of target pages detect the first browser rs cache document memory the target pages mark when, from The second browser rs cache file acquisition recalls information executes corresponding call operation based on the recalls information.Wherein, this One browser rs cache file, the second browser rs cache file can be associated with associated by above-mentioned electronic equipment the page and on It states target pages and is provided with identical top-level domain.
As an example, above-mentioned electronic equipment can be above-mentioned by above-mentioned recalls information and the corresponding write-in of above-mentioned target pages mark Second browser rs cache file, in order to which above-mentioned actuating station is in the above-mentioned above-mentioned recalls information of second browser rs cache file search.
It should be noted that actuating station can be used in real time or periodically detecting in above-mentioned second browser rs cache file is The no target pages that there are target pages associated with the actuating station identify, and when detecting target pages mark, from Above-mentioned second browser rs cache file acquisition information associated with target pages mark, determines whether the information is for referring to Show the recalls information for executing call operation, and when determining the information is the recalls information, is executed based on the information corresponding Call operation.For example, based in the information method name and parameter information call directly corresponding script method, complete this time across It calls in domain.
It should be pointed out that above-mentioned first browser rs cache file and above-mentioned second browser rs cache file can be first What a setting end for receiving call request created.Wherein, which is and the page in the application where the above-mentioned association page The associated setting end in face.It should be understood that the present embodiment is not to above-mentioned first browser rs cache file and above-mentioned second browser The creation method of cache file does any restriction.
In some optional implementations of the present embodiment, recalls information can be written above-mentioned by above-mentioned electronic equipment Designated position in two browser rs cache files, relevant to above-mentioned target pages mark.
It is the one of the application scenarios of the information processing method according to the present embodiment for end to be arranged with continued reference to Fig. 3, Fig. 3 A schematic diagram.In the application scenarios of Fig. 3, web browser applications can be installed on the terminal device 301 that user is held A.Wherein, web browser applications A can wrap enclosed tool application A1, and the homepage of web browser applications A introduces son using A1 Sub- application page, setting end and actuating station can be respectively associated in the homepage and the sub- application page.Moreover, terminal device Cookie 302 associated with web browser applications A and cookie 303 can also be previously stored on 301.cookie 302 can be used for memory page mark;Cookie 303 can be used for storing recalls information.cookie 302,cookie 303, Identical top-level domain has can be set in above-mentioned homepage, above-mentioned sub- application page.Above-mentioned homepage and above-mentioned sub- application page Different subdomain names can be set.
Firstly, above-mentioned user can execute specified operation by terminal device 301 to trigger needle on above-mentioned homepage The call request 304 of the sub- application page of antithetical phrase application A1, wherein call request 304 may include recalls information 3041 and should The page iden-tity 3042 of sub- application page, recalls information 3041 may include method name and parameter information.
Then, setting end 305 associated with above-mentioned homepage can receive call request 304.
Finally, cookie 302 can be written in page iden-tity 3042 by setting end 305, and recalls information 3041 is written Cookie 303, so that actuating station associated with sub- application page indicated by page iden-tity 3042 is detecting cookie There are when page iden-tity 3042 in 302, recalls information 3041 is obtained from cookie 303, based on the method in recalls information 3041 Name and parameter information carry out corresponding call operation.
The method provided by the above embodiment of the application, by the first browser rs cache file and the second browser rs cache The effective use of file may be implemented to be provided with the cross-domain tune between identical top-level domain and the page of different subdomain names With.
With further reference to Fig. 4, it illustrates the processes 400 of one embodiment of the information processing method for actuating station. This is used for the process 400 of the information processing method of actuating station, comprising the following steps:
Step 401, the target that whether there is associated target pages in preset first browser rs cache file is detected Page iden-tity.
In the present embodiment, for the information processing method operation of actuating station electronic equipment thereon (such as shown in Fig. 1 Actuating station 103) can in real time or periodically detect in preset first browser rs cache file with the presence or absence of the electronic equipment The target pages of associated target pages identify.
Wherein, actuating station can be respectively associated in each page in the application where above-mentioned target pages.Moreover, this is each Setting end can also be respectively associated in the case where actuating station has been respectively associated in a page.In addition, each page can be set It is equipped with identical top-level domain.Certainly, in the case where being provided with identical top-level domain, which can be set not Same subdomain name (such as second level domain, three-level domain name etc.).
Here, each setting end can be used for receiving the call request by the association page triggering associated by it, and right The call request is handled.Such as the setting end can using embodiment shown in Fig. 2 process 200 to the call request into Row processing.
It should be noted that browser rs cache file can be stored in the text file in browser directory, can be described as cookie.Above-mentioned first browser rs cache file can be used for memory page mark.
Step 402, in response to detecting that target pages identify, from preset second browser rs cache file acquisition and target The associated information of page iden-tity.
In the present embodiment, detect that above-mentioned target pages identify in response to above-mentioned electronic equipment, above-mentioned electronic equipment can With from preset second browser rs cache file acquisition information associated with above-mentioned target pages mark.
As an example, above-mentioned second browser rs cache file while being stored with above- mentioned information, can also be stored with The corresponding above-mentioned target pages mark of above- mentioned information, above-mentioned electronic equipment can be identified above-mentioned to obtain based on above-mentioned target pages Information.
It should be noted that above-mentioned second browser rs cache file, which can be used for storing recalls information, (is used to indicate execution The information of call operation) and call result.Above-mentioned first browser rs cache file, above-mentioned second browser rs cache file and above-mentioned Identical top-level domain has can be set in target pages.In addition, above-mentioned first browser rs cache file and above-mentioned second browser Cache file can be it is in setting end associated by the page in the application where above-mentioned target pages, first receive tune It is created with the setting end of request.It should be understood that the present embodiment is not to above-mentioned first browser rs cache file and above-mentioned second clear The creation method of device cache file look at does any restriction.
In some optional implementations of the present embodiment, above-mentioned target pages mark is in above-mentioned second browser rs cache Designated position can be corresponding in file.Above-mentioned electronic equipment can obtain information from the designated position.
Step 403, information is parsed, determines whether information is to be used to indicate the recalls information for executing call operation.
In the present embodiment, above-mentioned electronic equipment can be to acquired information associated with above-mentioned target pages mark It is parsed, determines whether the information is to be used to indicate the recalls information for executing call operation.As an example, above-mentioned electronic equipment It can be associated with method name and function name in advance.Above-mentioned electronic equipment can by determine the information whether include party's religious name or The function name, to determine whether the information is recalls information.
Step 404, in response to determining that information is recalls information, corresponding call operation is executed based on information.
In the present embodiment, in response to associated with above-mentioned target pages mark acquired in the determination of above-mentioned electronic equipment Information is recalls information, and above-mentioned electronic equipment can execute corresponding call operation based on the information.For example, if the information includes Method name, above-mentioned electronic equipment can call method indicated by party's religious name.
In some optional implementations of the present embodiment, above-mentioned electronic equipment is when executing call operation, Ke Yiqing Except the above-mentioned target pages mark in above-mentioned first browser rs cache file, to avoid calling process next time is influenced.
In some optional implementations of the present embodiment, above-mentioned electronic equipment is when executing call operation, Ke Yiqing Except it is acquired, be stored in information in above-mentioned second browser rs cache file, associated with above-mentioned target pages mark.
It should be noted that if above- mentioned information are stored in above-mentioned second browser rs cache file and above-mentioned page object Face identifies relevant designated position, then above-mentioned electronic equipment can also not have to remove above- mentioned information when executing call operation, because When for information is written toward the designated position again, original information would generally be capped on the designated position.
In some optional implementations of the present embodiment, acquired in above-mentioned electronic equipment with above-mentioned target pages mark Sensible associated information may include method name and parameter information.The parameter information may include call back function information.The readjustment Function information can be associated with page iden-tity.The page indicated by page iden-tity associated by the call back function information and above-mentioned mesh Mark page setup has identical top-level domain, and belongs to the same application.In addition, the call back function information may include back The pointer (address) of letter of transfer number, above-mentioned electronic equipment can using the pointer as parameter be transmitted to party's religious name indicated by side Then method calls this method.After calling terminates to obtain call result (call result for example may include the information such as return value), Above-mentioned first browser rs cache file can be written in page iden-tity associated by the call back function information by above-mentioned electronic equipment, with And above-mentioned second browser rs cache file is written into the call result, so that associated with the page indicated by the page iden-tity Actuating station is detecting above-mentioned first browser rs cache document memory in the page iden-tity, from above-mentioned second browser rs cache text Part obtains the call result, and performs corresponding processing.
The method provided by the above embodiment of the application is detected in preset first browser rs cache file by setting end With the presence or absence of the target pages mark of target pages associated by the setting end, so that the setting end is detecting the target pages When mark, from preset second browser rs cache file acquisition information associated with target pages mark.Then by pair The information is parsed to determine whether the information is to be used to indicate the information for executing call operation.Then the information is being determined When for recalls information, corresponding call operation can be executed based on the information.To be effectively utilized the first browser rs cache text Part and the second browser rs cache file, may be implemented to be provided between identical top-level domain and the page of different subdomain names Cross-domain calling.
With further reference to Fig. 5, this application provides a kind of for one embodiment of the information processing unit at end to be arranged, should Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be applied in various electronic equipments.
As shown in figure 5, being used to that the information processing unit 500 at end be arranged shown in the present embodiment includes: 501 He of receiving unit Writing unit 502.Wherein, receiving unit 501 is configured to receive through association page triggering associated by above-mentioned setting end Call request, wherein above-mentioned call request may include recalls information and target pages mark, and above-mentioned recalls information can be used for Instruction executes call operation;Writing unit 502 is configured to delay preset first browser of above-mentioned target pages mark write-in File is deposited, and preset second browser rs cache file is written into above-mentioned recalls information, so as to be identified with above-mentioned target pages The associated actuating station of indicated target pages is detecting above-mentioned first browser rs cache document memory in above-mentioned page object When face identifies, from the above-mentioned above-mentioned recalls information of second browser rs cache file acquisition, executed based on above-mentioned recalls information corresponding Call operation;Wherein, the above-mentioned association page, above-mentioned target pages, above-mentioned first browser rs cache file and above-mentioned second browsing Device cache file is provided with identical top-level domain.
In the present embodiment, for being arranged in the information processing unit 500 at end: receiving unit 501 and writing unit 502 Specific processing and its brought technical effect can be related to step 202 with reference to the step 201 in Fig. 2 corresponding embodiment respectively Illustrate, details are not described herein.
In some optional implementations of the present embodiment, above-mentioned writing unit 502 can be further configured to: will Designated position in above-mentioned second browser rs cache file, relevant to above-mentioned target pages mark is written in above-mentioned recalls information.
The device provided by the above embodiment of the application, by the first browser rs cache file and the second browser rs cache The effective use of file may be implemented to be provided with the cross-domain tune between identical top-level domain and the page of different subdomain names With.
With further reference to Fig. 6, this application provides a kind of one embodiment of information processing unit for actuating station, should Installation practice is corresponding with embodiment of the method shown in Fig. 4, which specifically can be applied in various electronic equipments.
As shown in fig. 6, shown in the present embodiment for actuating station information processing unit 600 include: detection unit 601, Acquiring unit 602, determination unit 603 and execution unit 604.Wherein, detection unit 601 is configured to detect preset first clear The interior target pages with the presence or absence of target pages associated with above-mentioned actuating station of device cache file of looking at identify;Acquiring unit 602 It is configured in response to detecting above-mentioned target pages mark, from preset second browser rs cache file acquisition and above-mentioned target The associated information of page iden-tity;Determination unit 603 is configured to parse above- mentioned information, determine above- mentioned information whether be It is used to indicate the recalls information for executing call operation;Execution unit 604 is configured in response to determining that above- mentioned information are above-mentioned tune With information, corresponding call operation is executed based on above- mentioned information;Wherein, above-mentioned target pages, above-mentioned first browser rs cache text Part and above-mentioned second browser rs cache file are provided with identical top-level domain.
In the present embodiment, in the information processing unit of actuating station 600: detection unit 601, acquiring unit 602, really The specific processing of order member 603 and execution unit 604 and its brought technical effect can be respectively with reference in Fig. 4 corresponding embodiments Step 201, step 202, the related description of step 203 and step 204, details are not described herein.
In some optional implementations of the present embodiment, above-mentioned acquiring unit 602 can be further configured to: from Designated position in above-mentioned second browser rs cache file, relevant to above-mentioned target pages mark obtains above- mentioned information.
In some optional implementations of the present embodiment, above-mentioned apparatus 600 can also include: the first clearing cell (not shown) is configured to when executing call operation, removes the above-mentioned target in above-mentioned first browser rs cache file Page iden-tity.
In some optional implementations of the present embodiment, above-mentioned apparatus 600 can also include: the second clearing cell (not shown) is configured to when executing call operation, removes the above- mentioned information in above-mentioned second browser rs cache file.
In some optional implementations of the present embodiment, above- mentioned information may include method name and parameter information, on Stating parameter information may include call back function information, and above-mentioned call back function information can be associated with page iden-tity, above-mentioned readjustment letter The page indicated by page iden-tity associated by number information and above-mentioned target pages are provided with identical top-level domain.
In some optional implementations of the present embodiment, above-mentioned apparatus 600 can also include: writing unit (in figure It is not shown), it is configured to after having executed call operation and having obtained call result, by the page associated by above-mentioned call back function information Above-mentioned first browser rs cache file is written in mark, and above-mentioned second browser rs cache file is written in above-mentioned call result.
The device provided by the above embodiment of the application is effectively utilized the first browser rs cache file and the second browser Cache file may be implemented to be provided with the cross-domain calling between identical top-level domain and the page of different subdomain names.
Below with reference to Fig. 7, it illustrates the computer systems 700 for the electronic equipment for being suitable for being used to realize the embodiment of the present application Structural schematic diagram.Electronic equipment shown in Fig. 7 is only an example, function to the embodiment of the present application and should not use model Shroud carrys out any restrictions.
As shown in fig. 7, computer system 700 includes central processing unit (CPU) 701, it can be read-only according to being stored in Program in memory (ROM) 702 or be loaded into the program in random access storage device (RAM) 703 from storage section 708 and Execute various movements appropriate and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data. CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to always Line 704.
I/O interface 705 is connected to lower component: the importation 706 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 708 including hard disk etc.; And the communications portion 709 of the network interface card including LAN card, modem etc..Communications portion 709 via such as because The network of spy's net executes communication process.Driver 710 is also connected to I/O interface 705 as needed.Detachable media 711, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 710, in order to read from thereon Computer program be mounted into storage section 708 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 709, and/or from detachable media 711 are mounted.When the computer program is executed by central processing unit (CPU) 701, executes and limited in the system of the application Above-mentioned function.
It should be noted that computer-readable medium shown in the application can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this application, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In application, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include receiving unit and writing unit.Can also describe are as follows: a kind of processor include detection unit, acquiring unit, determination unit and Execution unit.Wherein, the title of these units does not constitute the restriction to the unit itself under certain conditions, for example, receiving Unit is also described as " receiving the unit by the call request of association page triggering associated by setting end ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying electronic equipment. Above-mentioned computer-readable medium carries one or more program, when the electronics is set by one for said one or multiple programs When standby execution, so that the electronic equipment includes: to receive the call request for passing through associated association page triggering, wherein call Request may include recalls information and target pages mark, and recalls information can serve to indicate that execution call operation;By page object Preset first browser rs cache file is written in face mark, and preset second browser rs cache text is written in recalls information Part, so that actuating station associated with the indicated target pages of target pages mark is detecting the first browser rs cache file When inside there is target pages mark, from the second browser rs cache file acquisition recalls information, executed based on recalls information corresponding Call operation;Wherein, the page, target pages, the first browser rs cache file and the second browser rs cache file is associated with to be provided with Identical top-level domain.
In addition, the computer-readable medium can be above-mentioned implementation present invention also provides a kind of computer-readable medium Included in electronic equipment described in example;It is also possible to individualism, and without in the supplying electronic equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the electronic equipment When, so that the electronic equipment includes: in the preset first browser rs cache file of detection with the presence or absence of related to the electronic equipment The target pages of the target pages of connection identify;In response to detecting that target pages identify, from preset second browser rs cache text Part obtains information associated with target pages mark;Information is parsed, determines whether information is to be used to indicate to execute tune With the recalls information of operation;In response to determining that information is above-mentioned recalls information, corresponding call operation is executed based on information;Its In, target pages, the first browser rs cache file and the second browser rs cache file are provided with identical top-level domain.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (20)

1. a kind of for the information processing method at end to be arranged, comprising:
Receive the call request by association page triggering associated by the setting end, wherein the call request includes adjusting It is identified with information and target pages, the recalls information is used to indicate execution call operation;
Preset first browser rs cache file is written into target pages mark, and the recalls information is written and is preset The second browser rs cache file so that actuating station associated with the indicated target pages of target pages mark is being examined The first browser rs cache document memory is measured when the target pages identify, is obtained from the second browser rs cache file The recalls information is taken, corresponding call operation is executed based on the recalls information;
Wherein, the association page, the target pages, the first browser rs cache file and second browser rs cache File is provided with identical top-level domain.
2. described that preset second browser rs cache is written in the recalls information according to the method described in claim 1, wherein File, comprising:
The recalls information is written in the second browser rs cache file, relevant to target pages mark specified Position.
3. a kind of information processing method for actuating station, comprising:
Detect the target that whether there is target pages associated with the actuating station in preset first browser rs cache file Page iden-tity;
In response to detecting the target pages mark, from preset second browser rs cache file acquisition and the target pages Identify associated information;
The information is parsed, determines whether the information is to be used to indicate the recalls information for executing call operation;
It is the recalls information in response to the determination information, corresponding call operation is executed based on the information;
Wherein, the target pages, the first browser rs cache file and the second browser rs cache file are provided with phase Same top-level domain.
4. described from preset second browser rs cache file acquisition and the mesh according to the method described in claim 3, wherein Mark the associated information of page iden-tity, comprising:
The letter is obtained from designated position in the second browser rs cache file, relevant to target pages mark Breath.
5. according to the method described in claim 3, wherein, the method also includes:
When executing call operation, the target pages mark in the first browser rs cache file is removed.
6. according to the method described in claim 3, wherein, the method also includes:
When executing call operation, the information in the second browser rs cache file is removed.
7. according to the method described in claim 3, wherein, the information includes method name and parameter information, the parameter information Including call back function information, the call back function information association has page iden-tity, the page associated by the call back function information The indicated page of mark and the target pages are provided with identical top-level domain.
8. according to the method described in claim 7, wherein, the method also includes:
It, will be described in the write-in of page iden-tity associated by the call back function information after having executed call operation and having obtained call result First browser rs cache file, and the second browser rs cache file is written into the call result.
9. a kind of for the information processing unit at end to be arranged, comprising:
Receiving unit is configured to receive the call request by association page triggering associated by the setting end, wherein institute Stating call request includes recalls information and target pages mark, and the recalls information is used to indicate execution call operation;
Writing unit, is configured to identify the target pages preset first browser rs cache file is written, and by institute It states recalls information and preset second browser rs cache file is written, so that the target pages indicated with target pages mark Associated actuating station is detecting the first browser rs cache document memory when the target pages identify, from described Recalls information described in two browser rs cache file acquisitions executes corresponding call operation based on the recalls information;
Wherein, the association page, the target pages, the first browser rs cache file and second browser rs cache File is provided with identical top-level domain.
10. device according to claim 9, wherein said write unit is further configured to:
The recalls information is written in the second browser rs cache file, relevant to target pages mark specified Position.
11. a kind of information processing unit for actuating station, comprising:
Detection unit is configured to detect in preset first browser rs cache file with the presence or absence of associated with the actuating station Target pages target pages mark;
Acquiring unit is configured in response to detecting the target pages mark, from preset second browser rs cache file Obtain information associated with target pages mark;
Determination unit is configured to parse the information, determines whether the information is to be used to indicate execution to call behaviour The recalls information of work;
Execution unit is configured in response to the determination information be the recalls information, be executed based on the information corresponding Call operation;
Wherein, the target pages, the first browser rs cache file and the second browser rs cache file are provided with phase Same top-level domain.
12. device according to claim 11, wherein the acquiring unit is further configured to:
The letter is obtained from designated position in the second browser rs cache file, relevant to target pages mark Breath.
13. device according to claim 11, wherein described device further include:
First clearing cell is configured to when executing call operation, is removed described in the first browser rs cache file Target pages mark.
14. device according to claim 11, wherein described device further include:
Second clearing cell is configured to when executing call operation, is removed described in the second browser rs cache file Information.
15. device according to claim 11, wherein the information includes method name and parameter information, the parameter letter Breath includes call back function information, and the call back function information association has page iden-tity, page associated by the call back function information The indicated page of face mark and the target pages are provided with identical top-level domain.
16. device according to claim 15, wherein described device further include:
Writing unit is configured to after having executed call operation and having obtained call result, will be associated by the call back function information Page iden-tity the first browser rs cache file is written, and second browser rs cache is written into the call result File.
17. a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-2.
18. a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 3-8.
19. a kind of computer-readable medium, is stored thereon with computer program, wherein real when described program is executed by processor The now method as described in any in claim 1-2.
20. a kind of computer-readable medium, is stored thereon with computer program, wherein real when described program is executed by processor The now method as described in any in claim 3-8.
CN201810140366.7A 2018-02-11 2018-02-11 Information processing method and device Active CN110209959B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810140366.7A CN110209959B (en) 2018-02-11 2018-02-11 Information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810140366.7A CN110209959B (en) 2018-02-11 2018-02-11 Information processing method and device

Publications (2)

Publication Number Publication Date
CN110209959A true CN110209959A (en) 2019-09-06
CN110209959B CN110209959B (en) 2024-01-12

Family

ID=67778586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810140366.7A Active CN110209959B (en) 2018-02-11 2018-02-11 Information processing method and device

Country Status (1)

Country Link
CN (1) CN110209959B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732513A (en) * 2019-10-28 2021-04-30 腾讯科技(深圳)有限公司 Memory monitoring method and device, computer readable storage medium and computer equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662460B (en) * 2008-08-25 2015-07-15 阿里巴巴集团控股有限公司 Method, system and device for cross-domain communication
JP5581820B2 (en) * 2010-06-04 2014-09-03 富士通株式会社 Relay server device, cookie control method, and cookie control program
CN103905477B (en) * 2012-12-25 2018-04-27 阿里巴巴集团控股有限公司 A kind of method and server for handling HTTP request
CN104426862B (en) * 2013-08-27 2019-02-22 腾讯科技(深圳)有限公司 Realize method, system and browser that cross-domain request logs in
CN105550014A (en) * 2015-12-08 2016-05-04 上海交通大学 Flexible and efficient cross-permission-level and cross-domain calling method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732513A (en) * 2019-10-28 2021-04-30 腾讯科技(深圳)有限公司 Memory monitoring method and device, computer readable storage medium and computer equipment
CN112732513B (en) * 2019-10-28 2023-05-23 腾讯科技(深圳)有限公司 Memory monitoring method, memory monitoring device, computer readable storage medium and computer equipment

Also Published As

Publication number Publication date
CN110209959B (en) 2024-01-12

Similar Documents

Publication Publication Date Title
CN107256195B (en) Webpage front-end test method and device
CN110598135A (en) Network request processing method and device, computer readable medium and electronic equipment
CN109857971A (en) Page rendering method and apparatus
CN109684188A (en) Test method and device
CN110389899B (en) Method and device for detecting API data type of JS program, medium and equipment
CN109325192B (en) Advertisement anti-shielding method and device
CN107360189A (en) Break through the vulnerability scanning method and device of Web protection
US20100217891A1 (en) Document Source Debugger
CN109818994A (en) Information processing method and device for agent side
CN108494728A (en) Blacklist base establishing method, device, equipment and the medium for preventing flow from kidnapping
CN110990264A (en) Element identification method, device and equipment for UI automation test and storage medium
CN109656799A (en) Test method and device
CN110321510A (en) Page rendering method and system
CN110209959A (en) Information processing method and device
CN107944289A (en) A kind of embedded device of browser fingerprint detection method and detection browser fingerprint
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
CN112130908B (en) Method and device for setting user guidance
CN109032924A (en) Identify method, apparatus, equipment and the storage medium of resource type in the page
CN116010743A (en) Page processing method and device, electronic equipment and storage medium
CN110232019A (en) Page test method and Related product
CN108415849A (en) Method and apparatus for test application
CN107608858A (en) Information processing system, method and apparatus
CN110309121B (en) Log processing method and device, computer readable medium and electronic equipment
CN113626301B (en) Method and device for generating test script
US20200242187A1 (en) Method, device, and apparatus for monitoring information shielding, and computer-readable medium

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
TG01 Patent term adjustment
TG01 Patent term adjustment