WO2017097262A1 - 数据交互方法和装置及计算机程序和计算机可读介质 - Google Patents
数据交互方法和装置及计算机程序和计算机可读介质 Download PDFInfo
- Publication number
- WO2017097262A1 WO2017097262A1 PCT/CN2016/109407 CN2016109407W WO2017097262A1 WO 2017097262 A1 WO2017097262 A1 WO 2017097262A1 CN 2016109407 W CN2016109407 W CN 2016109407W WO 2017097262 A1 WO2017097262 A1 WO 2017097262A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- interface
- user attribute
- attribute information
- server
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4488—Object-oriented
- G06F9/449—Object-oriented method invocation or resolution
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Definitions
- the present invention relates to the field of information technology, and in particular, to a data interaction method and apparatus, and a computer program and a computer readable medium.
- browsers are the largest portal for search services, bringing more than 70% of the search services.
- the data provided by the browser is no longer single.
- the client sends the necessary parameters in the browser address for the server to call the client data, or appends the required data to the cookie for the server to call the client data.
- appending parameters to the address or appending parameters to the cookie for a specific URL the method of URL judgment is limited. If a parameter is added to a specific URL, if other URLs want to add parameters, they need to continuously increase the response. URLs to meet the needs, and if the scope of the URL is expanded, some URLs do not require parameters, so control and extension are more limited.
- it is easy to expose the client's data there is a security risk.
- the present invention provides a data interaction method and apparatus, and a computer program and a computer readable medium.
- the main purpose of the present invention is to solve the limitations and security risks of data interaction between a client and a server of a search service in the prior art. .
- a data interaction method comprising:
- the user attribute information is sent to the server.
- a data interaction apparatus comprising:
- a receiving module configured to receive a data command sent by the server, where the data command carries interface identifier information
- a first acquiring module configured to acquire user attribute information in the current page according to an interface function corresponding to the interface identifier information
- a sending module configured to send the user attribute information to the server.
- a computer program comprising computer readable code that, when executed on a computing device, causes the computing device to perform the data interaction method.
- a computer readable medium wherein the computer program is stored.
- the technical solution provided by the embodiment of the present invention has at least the following advantages:
- the data interaction method and device, the computer program and the computer readable medium provided by the embodiment of the present invention first receive the data command sent by the server, where the data command carries the interface identifier information, and then corresponds to the interface identifier information.
- the interface function obtains the user attribute information in the current page, and finally sends the user attribute information to the server.
- the embodiment of the present invention is provided by the client, in comparison with the current method of invoking the client data by adding the necessary parameters in the browser address, or appending the required data to the cookie for the server to call the client data.
- the client can obtain the data of the client by calling the interface provided by the client, thereby solving the limitations and security risks of the data interaction between the client and the server in the prior art.
- FIG. 1 is a flowchart of a data interaction method according to an embodiment of the present invention
- FIG. 2 is a flowchart of another data interaction method according to an embodiment of the present invention.
- FIG. 3 is a structural block diagram of a data interaction apparatus according to an embodiment of the present invention.
- FIG. 4 is a structural block diagram of another data interaction apparatus according to an embodiment of the present invention.
- Figure 5 shows schematically a block diagram of a computing device for performing the method according to the invention
- Fig. 6 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
- An embodiment of the present invention provides a data interaction method, which is applied to a client of a search service. As shown in FIG. 1 , the method includes:
- the data command carries interface identifier information, where the interface identifier information is used to indicate a client interface that the server is to invoke.
- the interface identifier information represents an interface for acquiring client data.
- the client data can be obtained by using the console.log function to obtain the client data.
- the server When the server needs to request the client data, the server first sends a data instruction to the client, and then invokes the console according to the interface identifier information in the data instruction.
- the log function implementation gets the client data.
- the data command carries information such as the type of the data to be received, the method for receiving the data, and the like, and is not specifically limited.
- the interface identifier information may be specifically defined as “LISTENER_PROVIDE_DATA”, and the interface identifier information “LISTENER_PROVIDE_DATA” indicates that the client data interface is invoked; the data type of the request may be represented by MSG_TYPE, and the received data method may be defined as
- the CALLBACK method, CALLBACK is a method for the server to receive data, which is used to call back the data of the client.
- the data instruction may specifically be console.log(LISTENER_PROVIDE_DATA+MSG_TYPE+CALLBACK), wherein LISTENER_PROVIDE_DATA is the interface identification information, +MSG_TYPE is the requested data type, and CALLBACK is the method for the server to receive the data.
- the security problem does not expose the specific interface content.
- the data type of the MSG_TYPE identifier may be a default data type, or may be a specified data type, which is not specifically limited in the embodiment of the present invention.
- the default data type is public data
- the specified data type may be selected according to the version of the browser, or may be selected according to a specific browsing page, which is not specifically limited in the embodiment of the present invention.
- the attribute information of the user is the information of the browser client user, and the attribute information of the user may be specific identification information, channel number information, location information, and mobile phone number, which are not specifically limited in the embodiment of the present invention.
- the attribute information of the user may be specific identification information, channel number information, location information, and mobile phone number, which are not specifically limited in the embodiment of the present invention.
- the server After receiving the data instruction sent by the server, acquiring the client according to the interface function corresponding to the interface identifier information in the data instruction User attribute information, and then call back the user attribute information to the server.
- the information of the calling client is specifically the unique identification information and the channel number information.
- the client externally provides the data interface used by the server, when the server needs the data of the client, when the data interface provided by the client is called, and then the client data is obtained according to the function corresponding to the data interface provided by the client. Therefore, the data interface provided by the client satisfies the requirement of the server to retrieve the client data, and the method can flexibly and conveniently satisfy the server to access the client data. Therefore, the server can perform statistics on the acquired user data, and then provide a customized search server for the client according to the statistical result.
- a data interaction method provided by the embodiment of the present invention first receives a data command sent by a server, where the data command carries interface identifier information, and then acquires a user attribute in the current page according to an interface function corresponding to the interface identifier information. Information, and finally the user attribute information is sent to the server.
- the embodiment of the present invention is provided by the client, in comparison with the current method of invoking the client data by adding the necessary parameters in the browser address, or appending the required data to the cookie for the server to call the client data.
- the interface is used by the server side of the browser to call. When the server side of the browser needs the data of the client, the client can obtain the data of the client by calling the interface provided by the client, thereby solving the data between the client and the server in the prior art. Problems with interactions and security risks.
- An embodiment of the present invention provides another data interaction method, which is applied to a client of a search service. As shown in FIG. 2, the method includes:
- the data command carries interface identifier information, where the interface identifier information is used to indicate a client interface that the server is to invoke.
- the interface identifier information represents an interface for acquiring client data.
- the client data can be obtained by using the console.log function to obtain the client data.
- the server When the server needs to request the client data, the server first sends a data instruction to the client, and then invokes the console according to the interface identifier information in the data instruction.
- the log function implementation gets the client data.
- the interface identification information is specifically defined as "LISTENER_PROVIDE_DATA", and the interface identification information "LISTENER_PROVIDE_DATA" indicates that the client data interface is called.
- the browser client rewrites the customized onConsoleMessage method through the WebChromeClient method, and determines whether the interface identifier information sent by the server is LISTENER_PROVIDE_DATA in the onConsoleMessage method, and if so, the data command sent by the server is adjusted.
- the command of the client data can be obtained in the subsequent steps to obtain the user attribute information of the browser client.
- the onConsoleMessage method is used to listen to the content of the data instruction sent by the server, so that the client performs corresponding processing operations according to the monitored content.
- the current page is a page that supports providing data, obtain user attribute information in the current page according to an interface function corresponding to the calling interface identifier information.
- the attribute information of the user is the information of the browser client user, and the attribute information of the user may be specific identification information, channel number information, location information, and mobile phone number, which are not specifically limited in the embodiment of the present invention.
- the user attribute information of the client is obtained according to the interface function corresponding to the interface identifier information in the data instruction, and then the user attribute information is returned to the server. It should be noted that when the data type invoked in the server-side data instruction is the default, the information of the calling client is specifically the unique identification information and the channel number information.
- the data instruction further includes a data type of the request and a method for receiving the data, where the acquiring the user attribute information in the current page according to the interface function corresponding to the calling interface identifier information includes:
- the data instruction is parsed to obtain the data type of the request and the method for receiving the data; and the user attribute corresponding to the requested data type in the current page is obtained according to an interface function corresponding to the calling interface identification information.
- the data type of the request may be represented by an MSG_TYPE, and the received data method may be defined as a CALLBACK method, and the CALLBACK is a method for receiving data by the server, where Callback data from the client. For example, if the data type parsed from the data instruction is the channel number information and the location information, the channel number information and the location information of the user are obtained from the client, and then the obtained information is sent to the server.
- the security problem does not expose the specific interface content.
- the data type of the MSG_TYPE identifier may be a default data type, or may be a specified data type, which is not specifically limited in the embodiment of the present invention.
- the default data type is public data
- the specified data type may be selected according to the version of the browser, or may be selected according to a specific browsing page, which is not specifically limited in the embodiment of the present invention.
- the requested data type may be encapsulated by the getDataForProvide(type) method, so as to send the encapsulated data to the server in a subsequent step.
- the method for receiving data is defined by the server, and the method for receiving the data is included in the data command transmitted to the client.
- the client parses the received data from the data instruction, and sends the encapsulated user attribute information to the server by the method of receiving data.
- the data receiving method may be defined as a callback method, and if the data receiving method parsed by the client is a callback method, when the client sends the attribute information of the user to the server, the method is sent by the callback method. of. Therefore, the data interface provided by the client satisfies the requirement of the server to retrieve the client data, and the method can flexibly and conveniently satisfy the server to access the client data. Therefore, the server can provide a customized search server for the client according to the statistics of the acquired user data.
- the data command sent by the server is first received, where the data command carries the interface identifier information, and then determines whether the interface identifier information is a calling client data interface, and if the interface identifier information is a calling client End data interface, then continue to determine whether the current page is a page that supports providing data. If the current page is a page that supports providing data, the interface function corresponding to the calling interface identification information is used to obtain the current page. User attribute information. And then encapsulating the user attribute information according to the data type of the request, and finally sending the encapsulated user attribute information to the server according to the data receiving method. Therefore, the problems of the data interaction between the client and the server in the prior art and the security risks are solved.
- Another data interaction method provided by the embodiment of the present invention first receives a data command sent by a server, where the data command carries interface identifier information, and then acquires a user in the current page according to an interface function corresponding to the interface identifier information.
- the attribute information is finally sent to the server.
- the embodiment of the present invention is provided by the client, in comparison with the current method of invoking the client data by adding the necessary parameters in the browser address, or appending the required data to the cookie for the server to call the client data.
- the interface is used by the server side of the browser to call. When the server side of the browser needs the data of the client, the client can obtain the data of the client by calling the interface provided by the client, thereby solving the data between the client and the server in the prior art. Problems with interactions and security risks.
- a data interaction device is provided in the embodiment of the present invention. As shown in FIG. 3, the device includes: a receiving module 31, a first obtaining module 32, and a sending module 33.
- the receiving module 31 is configured to receive a data command sent by the server, where the data command carries interface identifier information.
- the first obtaining module 32 is configured to obtain user attribute information in the current page according to an interface function corresponding to the interface identifier information.
- the sending module 33 is configured to send the user attribute information to the server.
- a data interaction device first receives a data command sent by a server, where the data command carries interface identifier information, and then acquires a user attribute in the current page according to an interface function corresponding to the interface identifier information. Information, and finally the user attribute information is sent to the server.
- the embodiment of the present invention is provided by the client, in comparison with the current method of invoking the client data by adding the necessary parameters in the browser address, or appending the required data to the cookie for the server to call the client data.
- Interface for browser The server side makes a call. When the server side of the browser needs the data of the client, the client can obtain the data of the client by calling the interface provided by the client, thereby solving the limitation of the data interaction between the client and the server in the prior art. Security risks and other issues.
- another data interaction device provided by the embodiment of the present invention, as shown in FIG. 3, includes: a receiving module 41, a first obtaining module 42, and a sending module 43.
- the receiving module 41 is configured to receive a data command sent by the server, where the data command carries interface identifier information.
- the first obtaining module 42 is configured to obtain user attribute information in the current page according to an interface function corresponding to the interface identifier information.
- the sending module 43 is configured to send the user attribute information to the server.
- the device further includes: a determining module 44;
- the determining module 44 is configured to determine whether the interface identifier information is a calling client data interface.
- the first obtaining module 42 is specifically configured to: if the interface identifier information is a calling client data interface, obtain the user attribute information in the current page according to an interface function corresponding to the calling interface identifier information.
- the determining module 44 is further configured to: if the interface identifier information is a calling client data interface, determine whether the current page is a page that supports providing data.
- the first obtaining module 42 is specifically configured to: if the current page is a page that supports providing data, obtain the user attribute information in the current page according to an interface function corresponding to the calling interface identification information.
- the data instruction further includes a requested data type and a method for receiving data, where the first obtaining module 42 includes:
- the parsing module 421 is configured to parse the data instruction to obtain the requested data type and the method for receiving the data.
- the second obtaining module 422 is configured to obtain, according to an interface function corresponding to the calling interface identifier information, user attribute information corresponding to the requested data type in the current page.
- the device further includes:
- the encapsulating module 45 is configured to encapsulate the user attribute information according to the requested data type.
- the sending module 43 is specifically configured to send the encapsulated user attribute information to the server according to the data receiving method.
- Another data interaction device provided by the embodiment of the present invention first receives a data command sent by a server, where the data command carries interface identifier information, and then acquires a user in the current page according to an interface function corresponding to the interface identifier information.
- the attribute information is finally sent to the server.
- the embodiment of the present invention is provided by the client, in comparison with the current method of invoking the client data by adding the necessary parameters in the browser address, or appending the required data to the cookie for the server to call the client data.
- the interface is used by the server side of the browser to call. When the server side of the browser needs the data of the client, the client can obtain the data of the client by calling the interface provided by the client, thereby solving the data between the client and the server in the prior art. Problems with interactions and security risks.
- the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
- a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the data interaction method and apparatus in accordance with embodiments of the present invention.
- the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
- a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
- Figure 5 illustrates a computing device that can implement a data interaction method in accordance with the present invention.
- the computing device conventionally includes a processor 510 and a computer program product or computer readable medium in the form of a memory 520.
- the memory 520 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
- Memory 520 has a memory space 530 for program code 531 for performing any of the method steps described above.
- storage space 530 for program code may include various program code 531 for implementing various steps in the above methods, respectively.
- the program code can be read from or written to one or more computer program products.
- These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units as described with reference to FIG.
- the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 520 in the computing device of FIG.
- the program code can be compressed, for example, in an appropriate form.
- the storage unit includes computer readable code 531 ', ie, code readable by a processor, such as 510, that when executed by a computing device causes the computing device to perform each of the methods described above step.
- modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
- the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
- any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
- Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
一种数据交互方法和装置及计算机程序和计算机可读介质,涉及信息技术领域,用于解决现有搜索服务的客户端和服务器之间数据交互时的局限性及安全隐患问题,本发明的技术方案为:接收服务器发送的数据指令,所述数据指令中携带有接口标识信息;根据与所述接口标识信息对应的接口函数获取当前页面中的用户属性信息;将所述用户属性信息发送给所述服务器。本发明主要用于将客户端的数据传递到服务器上。
Description
本申请要求在2015年12月11日提交中国专利局、申请号为201510921212.8、发明名称为“数据交互方法和装置及计算机程序和计算机可读介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及信息技术领域,特别是涉及一种数据交互方法和装置及计算机程序和计算机可读介质。
随着信息技术的快速发展,浏览器作为搜索服务最大的入口,为搜索服务带来百分之七十以上的占据量。但是,随着搜索服务的不断细化和发展,浏览器所提供的数据也不再单一,为了保证浏览器界面能够根据不同的用户情况提供定制化的搜索服务,获取浏览器客户端数据时需要分清数据的来源,如区分不同渠道用户、不同位置用户、不同来源用户的数据等,然后对这些分清来源的数据进行有效的统计,以便为用户提供定制化的搜索服务。
目前,客户端是通过在浏览器地址内追加必要的参数的方式供服务器端调用客户端数据,或是将需要的数据追加在cookie中供服务器端调用客户端数据。但是,通过在地址中追加参数或针对特定URL在cookie中追加参数的方式受局限较大,存在URL判断的约束,如果对特定URL追加参数,那么其他URL也想追加参数的话需要不断通过增加响应URL来满足需求,而如果对URL的限定范围扩大,有些URL又不需要参数,所以控制和扩展上都比较受限。另外,无论使用地址中追加参数还是cookie中追加的方式,都容易暴露客户端的数据,存在安全隐患。
发明内容
有鉴于此,本发明提供一种数据交互方法和装置及计算机程序和计算机可读介质,主要目的在于解决现有技术中搜索服务的客户端和服务器之间数据交互时的局限性及安全隐患问题。
依据本发明一个方面,提供了一种数据交互方法,该方法包括:
接收服务器发送的数据指令,所述数据指令中携带有接口标识信息;
根据与所述接口标识信息对应的接口函数获取当前页面中的用户属性信息;
将所述用户属性信息发送给所述服务器。
依据本发明另一个方面,提供了一种数据交互装置,该装置包括:
接收模块,用于接收服务器发送的数据指令,所述数据指令中携带有接口标识信息;
第一获取模块,用于根据与所述接口标识信息对应的接口函数获取当前页面中的用户属性信息;
发送模块,用于将所述用户属性信息发送给所述服务器。
根据本发明的又一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行所述的数据交互方法。
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了所述的计算机程序。
借由上述技术方案,本发明实施例提供的技术方案至少具有下列优点:
本发明实施例提供的一种数据交互方法和装置及计算机程序和计算机可读介质,首先接收服务器发送的数据指令,所述数据指令中携带有接口标识信息,然后根据与所述接口标识信息对应的接口函数获取当前页面中的用户属性信息,最后将所述用户属性信息发送给所述服务器。与目前通过在浏览器地址内追加必要的参数的方式供服务器端调用客户端数据,或是将需要的数据追加在cookie中供服务器端调用客户端数据相比,本发明实施例由客户端提供接口,供浏览器的服务器端进行调用,当浏览器的服
务器端需要客户端的数据时,可以通过调用客户端提供的接口获取客户端的数据,从而解决了现有技术中客户端和服务器之间数据交互时的局限性及安全隐患等问题。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示出了本发明实施例提供的一种数据交互方法流程图;
图2示出了本发明实施例提供的另一种数据交互方法流程图;
图3示出了本发明实施例提供的一种数据交互装置结构框图;
图4示出了本发明实施例提供的另一种数据交互装置结构框图;
图5示意性地示出了用于执行根据本发明的方法的计算设备的框图;
图6示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
本发明实施例提供了一种数据交互方法,应用于搜索服务的客户端,如图1所示,所述方法包括:
101、接收服务器发送的数据指令。
其中,所述数据指令中携带有接口标识信息,所述接口标识信息用于表示服务器将要调用的客户端接口。在本发明实施例中,所述接口标识信息表示的是获取客户端数据的接口。其中,获取客户端数据具体可以通过console.log函数方式实现获取客户端数据,服务器在需要请求客户端数据的时候,首先向客户端发送数据指令,然后根据数据指令中的接口标识信息调用console.log函数实现获取客户端数据。
对于本发明实施例,所述数据指令中除了携带有接口标识信息,还携带有请求的数据类型、接收数据的方法等信息,本发明实施例不做具体限定。其中,可将接口标识信息具体定义为“LISTENER_PROVIDE_DATA”,通过接口标识信息“LISTENER_PROVIDE_DATA”表示调用获取客户端数据接口;所述请求的数据类型可以通过MSG_TYPE进行表示,所述接收的数据方法可以定义为CALLBACK方法,CALLBACK是服务器接收数据的方法,用于将客户端的数据回调。
例如:数据指令具体可以为console.log(LISTENER_PROVIDE_DATA+MSG_TYPE+CALLBACK),其中,LISTENER_PROVIDE_DATA为接口标识信息,+MSG_TYPE为请求的数据类型,CALLBACK为服务器接收数据的方法。
需要说明的是,通过本发明实施例调用客户端数据时,涉及安全问题不会暴露具体接口内容。另外,MSG_TYPE标识请求的数据类型可以是默认的数据类型,也可也是指定的数据类型,本发明实施例不做具体限定。其中,默认的数据类型为公共数据,指定的数据类型可以根据浏览器版本的不同进行选择,或者根据特殊浏览页面需要进行选择,本发明实施例不做具体限定。
102、根据与所述接口标识信息对应的接口函数获取当前页面中的用户属性信息。
其中,所述用户的属性信息为浏览器客户端用户的信息,用户的属性信息具体可以为唯一标识信息,渠道号信息、位置信息和手机号码等信息,本发明实施例不做具体限定。对于本发明实施例,在接收到服务器发送的数据指令后,根据数据指令中的接口标识信息对应的接口函数获取客户端
的用户属性信息,然后将用户属性信息回调给服务器。需要说明的是,当服务器端数据指令中调用的数据类型为默认时,调用客户端的信息具体为唯一标识信息和渠道号信息。
103、将所述用户属性信息发送给所述服务器。
对于本发明实施例,客户端对外提供服务器需求使用的数据接口,服务器什么时候需要客户端的数据,什么时候调用客户端提供的数据接口,然后根据客户端提供的数据接口对应的函数获取客户端的数据,因此通过客户端提供的数据接口方式满足了服务器调取客户端数据的需求,并且通过该种方式可以灵活方便的满足服务器对客户端数据的取用。从而服务器可以对获取的用户数据进行统计,然后根据统计结果为客户端提供定制化的搜索服务器。
本发明实施例提供的一种数据交互方法,首先接收服务器发送的数据指令,所述数据指令中携带有接口标识信息,然后根据与所述接口标识信息对应的接口函数获取当前页面中的用户属性信息,最后将所述用户属性信息发送给所述服务器。与目前通过在浏览器地址内追加必要的参数的方式供服务器端调用客户端数据,或是将需要的数据追加在cookie中供服务器端调用客户端数据相比,本发明实施例由客户端提供接口,供浏览器的服务器端进行调用,当浏览器的服务器端需要客户端的数据时,可以通过调用客户端提供的接口获取客户端的数据,从而解决了现有技术中客户端和服务器之间数据交互时的局限性及安全隐患等问题。
本发明实施例提供了另一种数据交互方法,应用于搜索服务的客户端,如图2所示,所述方法包括:
201、接收服务器发送的数据指令。
其中,所述数据指令中携带有接口标识信息,所述接口标识信息用于表示服务器将要调用的客户端接口。在本发明实施例中,所述接口标识信息表示的是获取客户端数据的接口。其中,获取客户端数据具体可以通过console.log函数方式实现获取客户端数据,服务器在需要请求客户端数据的时候,首先向客户端发送数据指令,然后根据数据指令中的接口标识信息调用console.log函数实现获取客户端数据。对于本发明实施例,可以
将接口标识信息具体定义为“LISTENER_PROVIDE_DATA”,通过接口标识信息“LISTENER_PROVIDE_DATA”表示调用获取客户端数据接口。
202、判断所述接口标识信息是否为调用客户端数据接口。
对于本发明实施例,浏览器客户端通过WebChromeClient方法,重写自定义的onConsoleMessage方法,并在onConsoleMessage方法中判断服务器端发送的接口标识信息是否为LISTENER_PROVIDE_DATA,若是则说明服务器端发送的数据指令为调取客户端数据的命令,可以在后续步骤中获取浏览器客户端的用户属性信息。其中,onConsoleMessage方法用于监听服务器发送的数据指令的内容,以使得客户端根据监听到的内容做出相应的处理操作。
203、若所述接口标识信息为调用客户端数据接口,则判断所述当前页面是否为支持提供数据的页面。
204、若所述当前页面为支持提供数据的页面,则根据与所述调用接口标识信息对应的接口函数获取当前页面中的用户属性信息。
其中,所述用户的属性信息为浏览器客户端用户的信息,用户的属性信息具体可以为唯一标识信息,渠道号信息、位置信息和手机号码等信息,本发明实施例不做具体限定。对于本发明实施例,在接收到服务器发送的数据指令后,根据数据指令中的接口标识信息对应的接口函数获取客户端的用户属性信息,然后将用户属性信息回调给服务器。需要说明的是,当服务器端数据指令中调用的数据类型为默认时,调用客户端的信息具体为唯一标识信息和渠道号信息。
对于本发明实施例,所述数据指令中还携带有请求的数据类型和接收数据的方法,所述根据与所述调用接口标识信息对应的接口函数获取当前页面中的用户属性信息包括:对所述数据指令进行解析,以获取所述请求的数据类型和所述接收数据的方法;根据与所述调用接口标识信息对应的接口函数,获取当前页面中与所述请求的数据类型对应的用户属性信息。其中,所述请求的数据类型可以通过MSG_TYPE进行表示,所述接收的数据方法可以定义为CALLBACK方法,CALLBACK是服务器接收数据的方法,用于
将客户端的数据回调。例如,从数据指令中解析出的数据类型为渠道号信息和位置信息,则从客户端中获取用户的渠道号信息和位置信息,然后将获取到的信息发送给服务器。
需要说明的是,通过本发明实施例调用客户端数据时,涉及安全问题不会暴露具体接口内容。另外,MSG_TYPE标识请求的数据类型可以是默认的数据类型,也可也是指定的数据类型,本发明实施例不做具体限定。其中,默认的数据类型为公共数据,指定的数据类型可以根据浏览器版本的不同进行选择,或者根据特殊浏览页面需要进行选择,本发明实施例不做具体限定。
205、根据所述请求的数据类型,对所述用户属性信息进行封装。
对于本发明实施例,可以通过getDataForProvide(type)方法对请求到的数据类型进行封装,以便于在后续步骤中将封装的数据发送给所述服务器。
206、根据所述数据接收的方法,将所述封装的用户属性信息发送给所述服务器。
其中,数据接收的方法是服务器端定义的,在传输给客户端的数据指令当中包含有该接收数据的方法。客户端从所述数据指令中解析出该接收数据的方法,并通过该接收数据的方法将封装的用户属性信息发送给所述服务器。在本发明实施例中,可将数据接收的方法定义为callback方法,客户端若解析出的数据接收方法为callback方法,则客户端将用户的属性信息发送给服务器时,是通过callback方法进行发送的。因此通过客户端提供的数据接口方式满足了服务器调取客户端数据的需求,并且通过该种方式可以灵活方便的满足服务器对客户端数据的取用。从而服务器可以根据对获取的用户数据进行统计,为客户端提供定制化的搜索服务器。
在本发明实施例中,首先接收服务器发送的数据指令,所述数据指令中携带有接口标识信息,然后判断所述接口标识信息是否为调用客户端数据接口,若所述接口标识信息为调用客户端数据接口,则继续判断所述当前页面是否为支持提供数据的页面,若所述当前页面为支持提供数据的页面,则根据与所述调用接口标识信息对应的接口函数获取当前页面中的用
户属性信息。再根据所述请求的数据类型,对所述用户属性信息进行封装,最后根据所述数据接收的方法,将所述封装的用户属性信息发送给所述服务器。从而解决了现有技术中客户端和服务器之间数据交互时的局限性及安全隐患等问题。
本发明实施例提供的另一种数据交互方法,首先接收服务器发送的数据指令,所述数据指令中携带有接口标识信息,然后根据与所述接口标识信息对应的接口函数获取当前页面中的用户属性信息,最后将所述用户属性信息发送给所述服务器。与目前通过在浏览器地址内追加必要的参数的方式供服务器端调用客户端数据,或是将需要的数据追加在cookie中供服务器端调用客户端数据相比,本发明实施例由客户端提供接口,供浏览器的服务器端进行调用,当浏览器的服务器端需要客户端的数据时,可以通过调用客户端提供的接口获取客户端的数据,从而解决了现有技术中客户端和服务器之间数据交互时的局限性及安全隐患等问题。
进一步地,本发明实施例提供的一种数据交互装置,如图3所示,所述装置包括:接收模块31、第一获取模块32、发送模块33。
接收模块31,用于接收服务器发送的数据指令,所述数据指令中携带有接口标识信息。
第一获取模块32,用于根据与所述接口标识信息对应的接口函数获取当前页面中的用户属性信息。
发送模块33,用于将所述用户属性信息发送给所述服务器。
需要说明的是,本发明实施例提供的一种数据交互装置所涉及各功能单元的其他相应描述,可以参考图1所示方法的对应描述,在此不再赘述。
本发明实施例提供的一种数据交互装置,首先接收服务器发送的数据指令,所述数据指令中携带有接口标识信息,然后根据与所述接口标识信息对应的接口函数获取当前页面中的用户属性信息,最后将所述用户属性信息发送给所述服务器。与目前通过在浏览器地址内追加必要的参数的方式供服务器端调用客户端数据,或是将需要的数据追加在cookie中供服务器端调用客户端数据相比,本发明实施例由客户端提供接口,供浏览器的
服务器端进行调用,当浏览器的服务器端需要客户端的数据时,可以通过调用客户端提供的接口获取客户端的数据,从而解决了现有技术中客户端和服务器之间数据交互时的局限性及安全隐患等问题。
进一步地,本发明实施例提供的另一种数据交互装置,如图3所示,所述装置包括:接收模块41、第一获取模块42、发送模块43。
接收模块41,用于接收服务器发送的数据指令,所述数据指令中携带有接口标识信息。
第一获取模块42,用于根据与所述接口标识信息对应的接口函数获取当前页面中的用户属性信息。
发送模块43,用于将所述用户属性信息发送给所述服务器。
进一步地,所述装置还包括:判断模块44;
所述判断模块44,用于判断所述接口标识信息是否为调用客户端数据接口。
所述第一获取模块42,具体用于若所述接口标识信息为调用客户端数据接口,则根据与所述调用接口标识信息对应的接口函数获取当前页面中的用户属性信息。
所述判断模块44,还用于若所述接口标识信息为调用客户端数据接口,则判断所述当前页面是否为支持提供数据的页面.
所述第一获取模块42,具体用于若所述当前页面为支持提供数据的页面,则根据与所述调用接口标识信息对应的接口函数获取当前页面中的用户属性信息。
进一步地,所述数据指令中还携带有请求的数据类型和接收数据的方法,所述第一获取模块42包括:
解析模块421,用于对所述数据指令进行解析,以获取所述请求的数据类型和所述接收数据的方法。
第二获取模块422,用于根据与所述调用接口标识信息对应的接口函数,获取当前页面中与所述请求的数据类型对应的用户属性信息。
进一步地,所述装置还包括:
封装模块45,用于根据所述请求的数据类型,对所述用户属性信息进行封装。
所述发送模块43,具体用于根据所述数据接收的方法,将所述封装的用户属性信息发送给所述服务器。
需要说明的是,本发明实施例提供的另一种数据交互装置所涉及各功能单元的其他相应描述,可以参考图2所示方法的对应描述,在此不再赘述。
本发明实施例提供的另一种数据交互装置,首先接收服务器发送的数据指令,所述数据指令中携带有接口标识信息,然后根据与所述接口标识信息对应的接口函数获取当前页面中的用户属性信息,最后将所述用户属性信息发送给所述服务器。与目前通过在浏览器地址内追加必要的参数的方式供服务器端调用客户端数据,或是将需要的数据追加在cookie中供服务器端调用客户端数据相比,本发明实施例由客户端提供接口,供浏览器的服务器端进行调用,当浏览器的服务器端需要客户端的数据时,可以通过调用客户端提供的接口获取客户端的数据,从而解决了现有技术中客户端和服务器之间数据交互时的局限性及安全隐患等问题。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的数据交互方法和装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图5示出了可以实现根据本发明的数据交互方法的计算设备。
该计算设备传统上包括处理器510和以存储器520形式的计算机程序产品或者计算机可读介质。存储器520可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器520具有用于执行上述方法中的任何方法步骤的程序代码531的存储空间530。例如,用于程序代码的存储空间530可以包括分别用于实现上面的方法中的各种步骤的各个程序代码531。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图6所述的便携式或者固定存储单元。该存储单元可以具有与图5的计算设备中的存储器520类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码531’,即可以由例如诸如510之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。
可以理解的是,上述方法及装置中的相关特征可以相互参考。另外,上述实施例中的“第一”、“第二”等是用于区分各实施例,而并不代表各实施例的优劣。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可
以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
Claims (14)
- 一种数据交互方法,其特征在于,包括:接收服务器发送的数据指令,所述数据指令中携带有接口标识信息;根据与所述接口标识信息对应的接口函数获取当前页面中的用户属性信息;将所述用户属性信息发送给所述服务器。
- 根据权利要求1所述的方法,其特征在于,根据与所述接口标识信息对应的接口函数获取当前页面中的用户属性信息之前,所述方法还包括:判断所述接口标识信息是否为调用客户端数据接口;所述根据与所述接口标识信息对应的接口函数获取当前页面中的用户属性信息包括:若是,则根据与所述调用接口标识信息对应的接口函数获取当前页面中的用户属性信息。
- 根据权利要求2所述的方法,其特征在于,所述判断所述接口标识信息是否为调用客户端数据接口之后,所述方法还包括:若所述接口标识信息为调用客户端数据接口,则判断所述当前页面是否为支持提供数据的页面;所述根据与所述调用接口标识信息对应的接口函数获取当前页面中的用户属性信息包括:若所述当前页面为支持提供数据的页面,则根据与所述调用接口标识信息对应的接口函数获取当前页面中的用户属性信息。
- 根据权利要求3所述的方法,其特征在于,所述数据指令中还携带有请求的数据类型和接收数据的方法,所述根据与所述调用接口标识信息对应的接口函数获取当前页面中的用户属性信息包括:对所述数据指令进行解析,以获取所述请求的数据类型和所述接收数据的方法;根据与所述调用接口标识信息对应的接口函数,获取当前页面中与所述请求的数据类型对应的用户属性信息。
- 根据权利要求4所述的方法,其特征在于,将所述用户属性信息发送给所述服务器之前,所述方法还包括:根据所述请求的数据类型,对所述用户属性信息进行封装。
- 根据权利要求5所述的方法,将所述用户属性信息发送给所述服务器包括:根据所述数据接收的方法,将所述封装的用户属性信息发送给所述服务器。
- 一种数据交互装置,其特征在于,包括:接收模块,用于接收服务器发送的数据指令,所述数据指令中携带有接口标识信息;第一获取模块,用于根据与所述接口标识信息对应的接口函数获取当前页面中的用户属性信息;发送模块,用于将所述用户属性信息发送给所述服务器。
- 根据权利要求7所述的装置,其特征在于,所述装置还包括:判断模块;所述判断模块,用于判断所述接口标识信息是否为调用客户端数据接口;所述第一获取模块,具体用于若所述接口标识信息为调用客户端数据接口,则根据与所述调用接口标识信息对应的接口函数获取当前页面中的用户属性信息。
- 根据权利要求8所述的装置,其特征在于,所述判断模块,还用于若所述接口标识信息为调用客户端数据接口,则判断所述当前页面是否为支持提供数据的页面;所述第一获取模块,具体用于若所述当前页面为支持提供数据的页面,则根据与所述调用接口标识信息对应的接口函数获取当前页面中的用户属性信息。
- 根据权利要求9所述的装置,其特征在于,所述数据指令中还携 带有请求的数据类型和接收数据的方法,所述第一获取模块包括:解析模块,用于对所述数据指令进行解析,以获取所述请求的数据类型和所述接收数据的方法;第二获取模块,用于根据与所述调用接口标识信息对应的接口函数,获取当前页面中与所述请求的数据类型对应的用户属性信息。
- 根据权利要求10所述的装置,其特征在于,所述装置还包括:封装模块,用于根据所述请求的数据类型,对所述用户属性信息进行封装。
- 根据权利要求11所述的装置,所述发送模块,具体用于根据所述数据接收的方法,将所述封装的用户属性信息发送给所述服务器。
- 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-6中的任一个所述的数据交互方法。
- 一种计算机可读介质,其中存储了如权利要求13所述的计算机程序。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510921212.8A CN105554094B (zh) | 2015-12-11 | 2015-12-11 | 数据交互方法及装置 |
| CN201510921212.8 | 2015-12-11 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017097262A1 true WO2017097262A1 (zh) | 2017-06-15 |
Family
ID=55833026
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/109407 Ceased WO2017097262A1 (zh) | 2015-12-11 | 2016-12-12 | 数据交互方法和装置及计算机程序和计算机可读介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105554094B (zh) |
| WO (1) | WO2017097262A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112181442A (zh) * | 2019-06-17 | 2021-01-05 | 腾讯科技(深圳)有限公司 | 卸载页面显示方法、装置、终端、服务器及存储介质 |
| CN113989013A (zh) * | 2021-09-30 | 2022-01-28 | 广州品唯软件有限公司 | 一种开户渠道管理方法、装置及介质 |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105554094B (zh) * | 2015-12-11 | 2019-03-08 | 北京奇虎科技有限公司 | 数据交互方法及装置 |
| CN109213606A (zh) * | 2017-06-29 | 2019-01-15 | 北京京东尚科信息技术有限公司 | 一种数据交互的方法和装置 |
| CN107423072B (zh) * | 2017-08-11 | 2020-10-30 | 苏州浪潮智能科技有限公司 | web页面动态列筛选与搜索表格数据的方法和装置 |
| CN108536492B (zh) * | 2018-04-08 | 2021-09-07 | 武汉斗鱼网络科技有限公司 | 一种直播间属性信息获取方法、装置、设备及存储介质 |
| CN111090879B (zh) * | 2019-12-05 | 2023-07-21 | 达闼机器人股份有限公司 | 数据处理方法、装置、可读存储介质、电子设备和系统 |
| CN112511526B (zh) * | 2020-11-25 | 2023-01-24 | 深圳致星科技有限公司 | 数据传输方法、设备和可读存储介质 |
| CN113127337A (zh) * | 2020-12-30 | 2021-07-16 | 中国农业银行股份有限公司 | 一种个性化开启移动终端调试方法及装置 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102736910A (zh) * | 2011-05-11 | 2012-10-17 | 新奥特(北京)视频技术有限公司 | 一种基于插件的通用命令接口定义方法 |
| CN102801737A (zh) * | 2012-08-28 | 2012-11-28 | 北京城市网邻信息技术有限公司 | 一种异步网络通信方法及装置 |
| CN103077032A (zh) * | 2013-01-06 | 2013-05-01 | 北京百度网讯科技有限公司 | 应用程序的操作方法及应用程序的客户端 |
| CN103957211A (zh) * | 2014-04-30 | 2014-07-30 | 北界创想(北京)软件有限公司 | 客户端与前端页面之间的数据通信方法及装置 |
| CN105554094A (zh) * | 2015-12-11 | 2016-05-04 | 北京奇虎科技有限公司 | 数据交互方法及装置 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030069915A1 (en) * | 2001-10-09 | 2003-04-10 | James Clough | Method for authenticating mobile printer users |
| US8924459B2 (en) * | 2005-10-21 | 2014-12-30 | Cisco Technology, Inc. | Support for WISPr attributes in a TAL/CAR PWLAN environment |
| CN101018141B (zh) * | 2007-03-02 | 2010-06-30 | 李沫南 | 为电子公告版提供即时通信的方法与系统 |
| CN103905502B (zh) * | 2012-12-27 | 2018-02-23 | 中国移动通信集团江苏有限公司 | 一种获取用户位置信息的方法及系统 |
-
2015
- 2015-12-11 CN CN201510921212.8A patent/CN105554094B/zh active Active
-
2016
- 2016-12-12 WO PCT/CN2016/109407 patent/WO2017097262A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102736910A (zh) * | 2011-05-11 | 2012-10-17 | 新奥特(北京)视频技术有限公司 | 一种基于插件的通用命令接口定义方法 |
| CN102801737A (zh) * | 2012-08-28 | 2012-11-28 | 北京城市网邻信息技术有限公司 | 一种异步网络通信方法及装置 |
| CN103077032A (zh) * | 2013-01-06 | 2013-05-01 | 北京百度网讯科技有限公司 | 应用程序的操作方法及应用程序的客户端 |
| CN103957211A (zh) * | 2014-04-30 | 2014-07-30 | 北界创想(北京)软件有限公司 | 客户端与前端页面之间的数据通信方法及装置 |
| CN105554094A (zh) * | 2015-12-11 | 2016-05-04 | 北京奇虎科技有限公司 | 数据交互方法及装置 |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112181442A (zh) * | 2019-06-17 | 2021-01-05 | 腾讯科技(深圳)有限公司 | 卸载页面显示方法、装置、终端、服务器及存储介质 |
| CN112181442B (zh) * | 2019-06-17 | 2023-05-16 | 腾讯科技(深圳)有限公司 | 卸载页面显示方法、装置、终端、服务器及存储介质 |
| CN113989013A (zh) * | 2021-09-30 | 2022-01-28 | 广州品唯软件有限公司 | 一种开户渠道管理方法、装置及介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105554094B (zh) | 2019-03-08 |
| CN105554094A (zh) | 2016-05-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2948846B1 (en) | Resource calling for hybrid applications | |
| EP3745679B1 (en) | Systems and methods for web api communication | |
| CN101431713B (zh) | 一种资源访问方法及设备 | |
| CN105554094A (zh) | 数据交互方法及装置 | |
| CN111414407A (zh) | 数据库的数据查询方法、装置、计算机设备及存储介质 | |
| US10911565B2 (en) | Method, device and system for associating a service account | |
| CN103746782B (zh) | 获取应用的反馈信息的方法和装置 | |
| CN103500210A (zh) | 一种进行网页加载的方法、装置和浏览器 | |
| CN104965848A (zh) | 一种前端资源加载方法及装置 | |
| CN110457097B (zh) | 页面响应控制方法、装置、计算机设备及存储介质 | |
| US20140325089A1 (en) | Method, terminal, server and system for page jump | |
| CN104462571A (zh) | 进行网页加载的方法、装置和浏览器客户端 | |
| CN103530329A (zh) | 一种进行网页加载的方法、装置和浏览器 | |
| CN106656920A (zh) | Http服务的处理方法及装置 | |
| CN104932910A (zh) | 应用程序接口扩展的方法及系统 | |
| CN105320885A (zh) | 恶意网站检测方法及装置 | |
| US9942267B1 (en) | Endpoint segregation to prevent scripting attacks | |
| US20150317143A1 (en) | Method and apparatus for installing webpage application | |
| WO2016070690A1 (zh) | 实现终端设备上的网页和应用间通信的方法、装置和系统 | |
| CN103942277A (zh) | 一种浏览器中的文件下载方法、装置和浏览器 | |
| CN107370628A (zh) | 基于埋点的日志处理方法及系统 | |
| CN105306555B (zh) | 一种便捷打点方法和装置 | |
| CN104809122A (zh) | 一种访问网页的方法及装置 | |
| US9940364B2 (en) | Obtaining desired web content from a mobile device | |
| CN103942230A (zh) | 一种用于进行语音网页导航的方法、装置和系统 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16872451 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16872451 Country of ref document: EP Kind code of ref document: A1 |