CN107832099B - A client version compatible method, device and storage medium - Google Patents
A client version compatible method, device and storage medium Download PDFInfo
- Publication number
- CN107832099B CN107832099B CN201711014276.5A CN201711014276A CN107832099B CN 107832099 B CN107832099 B CN 107832099B CN 201711014276 A CN201711014276 A CN 201711014276A CN 107832099 B CN107832099 B CN 107832099B
- Authority
- CN
- China
- Prior art keywords
- version
- web page
- client
- current client
- unit
- 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.)
- Active
Links
Images
Classifications
-
- 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/445—Program loading or initiating
- G06F9/44536—Selecting among different versions
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种客户端版本兼容的方法,所述方法包括:接收当前客户端发送的万维网web页面的加载请求;根据所述web页面的加载请求,检测待调用的web页面的版本与当前客户端的版本是否匹配,生成检测结果;当所述检测结果表征待调用的所述web页面的版本高于当前客户端的版本时,拦截使用与当前客户端兼容的历史版本JSBridge协议中约定的方法调对用所述web页面进行调用;从兼容代码库中获取与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法;根据所述目标调用方法调用所述web页面,使得在当前客户端显示所述web页面。本发明还提供一种客户端版本兼容的装置和存储介质。
The invention discloses a method for client version compatibility. The method includes: receiving a loading request of a World Wide Web page sent by a current client; Whether the version of the client side matches, generate a detection result; when the detection result indicates that the version of the web page to be called is higher than the version of the current client, intercept and use the method agreed in the JSBridge protocol of the historical version compatible with the current client. call the web page; obtain the target calling method for calling the web page corresponding to the method agreed in the historical version JSBridge protocol from the compatible code base; call the web page according to the target calling method, Causes the web page to be displayed on the current client. The invention also provides a client version compatible device and storage medium.
Description
技术领域technical field
本发明涉及页面显示技术,尤其涉及一种客户端版本兼容的方法、装置及存储介质。The present invention relates to page display technology, and in particular, to a client version compatible method, device and storage medium.
背景技术Background technique
随着互联网信息技术的不断发展,越来越多的智能终端被开发出来,并广泛的应用在生活的方方面面,这里所说的智能终端比如可以为台式电脑、笔记本电脑、智能手机、平板电脑、智能手表等,而可以安装在这些智能终端上的应用(Application,APP)又可以分为原生(native)应用、万维网(web,World Wide Web)应用以及混合应用。With the continuous development of Internet information technology, more and more smart terminals have been developed and widely used in all aspects of life. For example, the smart terminals mentioned here can be desktop computers, notebook computers, smart phones, tablet computers, Smart watches, etc., and applications (Application, APP) that can be installed on these smart terminals can be further classified into native (native) applications, World Wide Web (web, World Wide Web) applications, and hybrid applications.
其中,原生应用是专门针对某一类智能终端而开发的,它们可以直接运行在对应的智能终端的操作系统上。例如,针对iOS操作系统开发的应用或者针对Android操作系统而开发的应用。Among them, the native applications are specially developed for a certain type of intelligent terminal, and they can directly run on the operating system of the corresponding intelligent terminal. For example, an application developed for the iOS operating system or an application developed for the Android operating system.
而web应用简单来说可以是指基于浏览器而设计开发的应用,它们可以利用智能终端上的浏览器(例如windows系统中的IE、iPhone中的Safari)来运行,且它们可以在各种不同的操作系统上运行。In simple terms, web applications can refer to applications designed and developed based on browsers. They can be run using browsers on smart terminals (such as IE in Windows systems and Safari in iPhones), and they can run in various different running on the operating system.
而混合应用(hybird APP)顾名思义就是指原生应用与web应用的结合体,采用了原生应用的一部分、web应用的一部分。由于混合应用兼具了原生应用良好用户交互体验的优势和web应用跨平台开发的优势,因而现如今,一些主流应用都在朝着混合应用的方向来进行开发的。The hybrid application (hybird APP), as the name suggests, refers to the combination of native application and web application, using part of native application and part of web application. Since hybrid applications have both the advantages of good user interaction experience of native applications and the advantages of cross-platform development of web applications, some mainstream applications are now being developed in the direction of hybrid applications.
为了实现混合应用中web应用部分与native应用部分之间的相互调用,在现有技术中需要开发JSBridge协议作为wen应用部分与native应用部分的沟通桥梁,通过JSBridge协议,可以让混合应用的native应用部分调用web应用部分的js代码,或者也让web应用部分可以“调用”native应用部分的代码。In order to realize the mutual call between the web application part and the native application part in the hybrid application, it is necessary to develop the JSBridge protocol as a communication bridge between the wen application part and the native application part in the existing technology. Through the JSBridge protocol, the native application of the hybrid application can be made The part calls the js code of the web application part, or also allows the web application part to "call" the code of the native application part.
然而,现有的混合应用,由于web应用部分的特性,开发者经常会针对混合应用中的web应用部分进行更新,而针对native应用部分则更新频率往往较低,因而在实际使用中往往会出现以下情况:However, in the existing hybrid applications, due to the characteristics of the web application part, developers often update the web application part in the hybrid application, while the update frequency for the native application part is often low, so it often occurs in actual use. The following situations:
用户使用的混合应用中,native应用部分为历史版本(即安装在手机上的客户端为历史版本客户端),而web应用部分则为更新后的新版本。而在对web应用部分进行更新时,可能会根据最新标准预定的html5协议开发新的web页面,而针对新开发的web页面,往往需要按照新版的JSBridge协议进行调用,而由于客户端(native应用部分)版本并未进行更新,因而在历史版本客户端上可能并未集成新版的JSBridge协议,因而当混合应用的web应用部分发生更新后,历史版本的客户端(native应用部分)可能无法调用新版的web页面,用户只能对历史版本客户端(native应用部分)进行更新,才可以解决上述问题,由此可见,在现有的混合应用中为了解决历史版本客户端(native应用部分)和新版本web页面不兼容的问题,采用的是在新版本页面中针对各种历史版本客户端,分别集成与历史版本客户端所兼容的“历史版本JSBridge协议,或者需要用户对历史版本客户端进行更新才能使用,如此,不仅耗费用户的时间,而且,当更新不及时时,导致用户无法使用新版本页面的应用,进而给用户的正常使用造成极大的影响。In the hybrid application used by the user, the native application part is the historical version (that is, the client installed on the mobile phone is the historical version client), and the web application part is the updated new version. When updating the web application part, new web pages may be developed according to the html5 protocol predetermined by the latest standard. For newly developed web pages, they often need to be called according to the new version of the JSBridge protocol, and because the client (native application) Some) versions have not been updated, so the new version of the JSBridge protocol may not be integrated on the client of the historical version, so when the web application part of the hybrid application is updated, the client of the historical version (native application part) may not be able to call the new version The user can only update the historical version client (native application part) to solve the above problems. It can be seen that in the existing hybrid application, in order to solve the historical version client (native application part) and new The problem of incompatibility of the version web pages is to integrate the historical version JSBridge protocol compatible with the historical version client in the new version page for various historical version clients, or the user needs to update the historical version client. In this way, it not only consumes the user's time, but also causes the user to be unable to use the application of the new version of the page when the update is not timely, which in turn has a great impact on the normal use of the user.
发明内容SUMMARY OF THE INVENTION
为解决上述技术问题,本发明实施例提供了一种客户端版本兼容的方法、装置及存储介质,能够解决在现有的混合应用中,因客户端的版本与调用的页面的版本不兼容而导致无法显示新页面的问题。In order to solve the above technical problems, the embodiments of the present invention provide a client version compatible method, device and storage medium, which can solve the problem caused by the incompatibility between the version of the client and the version of the called page in the existing hybrid application. The problem of not being able to display the new page.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is realized as follows:
根据本发明实施例的一方面,提供一种客户端版本兼容的方法,所述方法包括:According to an aspect of the embodiments of the present invention, a method for client version compatibility is provided, and the method includes:
接收当前客户端发送的万维网web页面的加载请求;Receive the loading request of the World Wide Web page sent by the current client;
根据所述web页面的加载请求,检测待调用的web页面的版本与当前客户端的版本是否匹配,生成检测结果;According to the loading request of the web page, detect whether the version of the web page to be called matches the version of the current client, and generate a detection result;
当所述检测结果表征待调用的所述web页面的版本高于当前客户端的版本时,拦截使用与当前客户端兼容的历史版本JSBridge协议中约定的方法对所述web页面进行调用;When the detection result indicates that the version of the web page to be called is higher than the version of the current client, intercepting and using the method agreed in the JSBridge protocol of the historical version compatible with the current client to call the web page;
从兼容代码库中获取与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法;Obtain from the compatible code base the target invocation method for invoking the web page corresponding to the method agreed in the historical version JSBridge protocol;
根据所述目标调用方法调用所述web页面,使得在当前客户端显示所述web页面。The web page is invoked according to the target invocation method, so that the web page is displayed on the current client.
上述方案中,所述方法还包括:In the above scheme, the method also includes:
当所述检测结果表征所述待调用的web页面的版本低于当前客户端的版本时,根据所述历史版本JSBridge协议中约定的方法调用所述web页面。When the detection result indicates that the version of the web page to be invoked is lower than the version of the current client, the web page is invoked according to the method agreed in the JSBridge protocol of the historical version.
上述方案中,所述方法还包括:In the above scheme, the method also includes:
当所述检测结果表征所述待调用的web页面的版本为新增页面的版本时,输出用于提示用户对当前客户端进行版本更新的消息。When the detection result indicates that the version of the web page to be called is the version of the newly added page, a message for prompting the user to update the version of the current client is output.
上述方案中,当所述检测结果表征待调用的所述web页面的版本高于当前客户端的版本时,所述方法还包括:In the above solution, when the detection result indicates that the version of the web page to be called is higher than the version of the current client, the method further includes:
发送加载所述兼容代码库的加载请求;sending a load request to load the compatible code base;
所述加载请求被成功响应时,加载所述兼容代码库,使得从所述兼容代码库中获取与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法。When the loading request is successfully responded, the compatible code base is loaded, so that the target calling method for calling the web page corresponding to the method agreed in the JSBridge protocol of the historical version is obtained from the compatible code base.
上述方案中,所述方法还包括:In the above scheme, the method also includes:
根据所述目标调用方法成功调用所述web页面后,卸载所述兼容代码库,使得释放所述兼容代码库占用当前客户端的存储空间。After the web page is successfully called according to the target calling method, the compatible code base is uninstalled, so that the storage space of the current client occupied by the compatible code base is released.
根据本发明实施例的另一方面,提供一种客户端版本兼容的装置,所述装置包括:接收单元、检测单元、拦截单元、获取单元和调用单元;According to another aspect of the embodiments of the present invention, a client version compatible device is provided, the device includes: a receiving unit, a detecting unit, an intercepting unit, an acquiring unit, and a calling unit;
其中,所述接收单元,用于接收当前客户端发送的万维网web页面的加载请求;Wherein, the receiving unit is used to receive the loading request of the World Wide Web page sent by the current client;
所述检测单元,用于根据所述web页面的加载请求,检测待调用的web页面的版本与当前客户端的版本是否匹配,生成检测结果;The detection unit is configured to, according to the loading request of the web page, detect whether the version of the web page to be called matches the version of the current client, and generate a detection result;
所述拦截单元,用于当所述检测结果表征待调用的所述web页面的版本高于当前客户端的版本时,拦截使用与当前客户端兼容的历史版本JSBridge协议中约定的方法对所述web页面进行调用;The intercepting unit is configured to intercept, when the detection result indicates that the version of the web page to be called is higher than the version of the current client, intercept the web page using the method agreed in the JSBridge protocol of the historical version compatible with the current client. page to call;
所述获取单元,用于从兼容代码库中获取与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法;The obtaining unit is used to obtain the target calling method of calling the web page corresponding to the method agreed in the historical version JSBridge protocol from the compatible code base;
所述调用单元,用于根据所述目标调用方法调用所述web页面,使得在当前客户端显示所述web页面。The calling unit is configured to call the web page according to the target calling method, so that the web page is displayed on the current client.
上述方案中,所述调用单元,还用于当所述检测结果表征所述待调用的web页面的版本低于当前客户端的版本时,根据所述历史版本JSBridge协议中约定的方法调用所述web页面。In the above solution, the invoking unit is further configured to invoke the web page according to the method agreed in the JSBridge protocol of the historical version when the detection result indicates that the version of the web page to be invoked is lower than the version of the current client. page.
上述方案中,所述装置还包括:输出单元,In the above solution, the device further comprises: an output unit,
所述输出单元,用于当所述检测结果表征所述待调用的web页面的版本为新增页面的版本时,输出用于提示用户对当前客户端进行版本更新的消息。The output unit is configured to output a message for prompting the user to update the version of the current client when the detection result indicates that the version of the web page to be called is the version of the newly added page.
上述方案中,所述装置还包括:发送单元和加载单元;In the above solution, the device further includes: a sending unit and a loading unit;
所述发送单元,用于当所述检测结果表征待调用的所述web页面的版本高于当前客户端的版本时,发送加载所述兼容代码库的加载请求;the sending unit, configured to send a loading request for loading the compatible code base when the detection result indicates that the version of the web page to be called is higher than the version of the current client;
所述加载单元,用于所述加载请求被成功响应时,加载所述兼容代码库,使得从所述兼容代码库中获取与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法。The loading unit is used to load the compatible code base when the load request is successfully responded, so that the web page corresponding to the method agreed in the historical version JSBridge protocol is obtained from the compatible code base The target calls the method.
上述方案中,所述装置还包括:卸载单元;In the above solution, the device further comprises: an unloading unit;
所述卸载单元,用于根据所述目标调用方法成功调用所述web页面后,卸载所述兼容代码库,使得释放所述兼容代码库占用当前客户端的存储空间。The unloading unit is configured to unload the compatible code base after successfully calling the web page according to the target calling method, so that the storage space of the current client occupied by the compatible code base is released.
根据本发明实施例的再一方面,提供一种客户端版本兼容的装置,所述装置包括:存储器和处理器;According to yet another aspect of the embodiments of the present invention, there is provided a client version compatible device, the device comprising: a memory and a processor;
其中,所述存储器,用于存储能够在所述处理器上运行的计算机程序;Wherein, the memory is used to store a computer program that can run on the processor;
所述处理器,用于运行所述计算机程序时,执行上述一种客户端版本兼容的方法中的任一项所述方法的步骤。The processor, when running the computer program, executes the steps of any one of the above methods that are compatible with client versions.
根据本发明实施例的再一方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述一种客户端版本兼容的方法中的任一项所述方法的步骤。According to yet another aspect of the embodiments of the present invention, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, any one of the foregoing methods for client version compatibility is implemented the steps of the method.
本发明实施例的技术方案中,提供一种客户端版本兼容的方法、装置及存储介质,通过接收当前客户端发送的万维网web页面的加载请求;根据所述web页面的加载请求,检测待调用的web页面的版本与当前客户端的版本是否匹配,生成检测结果;当所述检测结果表征待调用的所述web页面的版本高于当前客户端的版本时,拦截使用与当前客户端兼容的历史版本JSBridge协议中约定的方法对所述web页面进行调用;从兼容代码库中获取与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法;根据所述目标调用方法调用所述web页面,使得在当前客户端显示所述web页面。如此,不需要在新版本页面中针对各种历史版本客户端,分别集成与历史版本客户端所兼容的“历史版本JSBridge协议”,且也不需要用户对历史版本客户端进行更新。大大提高了用户的使用体验。In the technical solution of the embodiment of the present invention, a method, device and storage medium compatible with client versions are provided. By receiving a loading request of a World Wide Web page sent by a current client; Whether the version of the web page of the current client matches the version of the current client, a detection result is generated; when the detection result indicates that the version of the web page to be called is higher than the version of the current client, intercept and use the historical version compatible with the current client The web page is called by the method agreed in the JSBridge protocol; the target invocation method for calling the web page corresponding to the method agreed in the historical version of the JSBridge protocol is obtained from the compatible code base; the method is invoked according to the target the web page, so that the web page is displayed on the current client. In this way, it is not necessary to integrate the "historical version JSBridge protocol" compatible with the historical version clients for various historical version clients on the new version page, and the user does not need to update the historical version clients. Greatly improve the user experience.
附图说明Description of drawings
图1为本发明实施例一种客户端版本兼容的方法的流程示意图;FIG. 1 is a schematic flowchart of a method for client version compatibility according to an embodiment of the present invention;
图2为本发明实施例中客户端与待调用web页面之间的交互流程示意图;2 is a schematic diagram of an interaction flow between a client and a web page to be called in an embodiment of the present invention;
图3为本发明实施例中客户端版本兼容的装置的结构组成示意图;3 is a schematic structural composition diagram of a client version compatible device in an embodiment of the present invention;
图4为本发明另一实施例的客户端版本兼容的装置的结构示意图。FIG. 4 is a schematic structural diagram of a client version compatible device according to another embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图对本发明的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本发明,并不用于限制本发明。The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present invention, but not to limit the present invention.
图1为本发明实施例一种客户端版本兼容的方法的流程示意图;如图1所示,所述方法包括:FIG. 1 is a schematic flowchart of a method for client version compatibility according to an embodiment of the present invention; as shown in FIG. 1 , the method includes:
步骤101,接收当前客户端发送的web页面的加载请求;
本发明实施例中,所述方法主要应用于Hybrid App(混合模式移动应用),所述Hybrid App通常被安装于台式电脑、笔记本电脑、智能手机、平板电脑、智能手表等终端。In the embodiment of the present invention, the method is mainly applied to a Hybrid App (mixed-mode mobile application), and the Hybrid App is usually installed on terminals such as desktop computers, notebook computers, smart phones, tablet computers, and smart watches.
具体地,所述Hybrid App是指介于WEB-APP、Native-APP这两者之间的APP,兼具“Native App良好用户交互体验的优势”和“Web App跨平台开发的优势”。Specifically, the Hybrid App refers to an APP between the WEB-APP and the Native-APP, and has both the "advantage of a good user interaction experience of the Native App" and the "advantage of the cross-platform development of the Web App".
下面,以手机APP为例:Below, take the mobile APP as an example:
原生应用包括:酷狗音乐、美图秀秀,此类APP可称之为原生应用;Native applications include: Kugou Music, Meitu Xiuxiu, such APPs can be called native applications;
web应用包括:通过UC浏览器打开的抢票助手、充值易,这类就是web应用;Web applications include: ticket grabbing assistant and recharge easily opened through UC browser, these are web applications;
混合应用包括:天猫、携程、58同城这类APP,大多数是在原生应用的基础上包装了web页面,比如58同城的帖子、天猫的活动页面、携程的订单详情页面,都是内嵌网页的实现搜索。Hybrid applications include: Tmall, Ctrip, and 58.com. Most of them wrap web pages on the basis of native applications, such as 58.com's posts, Tmall's event pages, and Ctrip's order details pages. Embedding web pages to achieve search.
以PC端APP为例:Take the PC APP as an example:
原生应用包括:如QQ、迅雷等;Native applications include: such as QQ, Thunder, etc.;
网页应用包括:如曾经火极一时的页游;Web applications include: such as the once-popular web games;
混合应用包括:如360手机助手。Hybrid applications include: such as 360 mobile phone assistant.
当用户想要对当前客户端中的某一对象实施打开操作时,可以通过向所述客户端发送web页面的加载请求实现。When a user wants to perform an opening operation on an object in the current client, it can be implemented by sending a web page loading request to the client.
例如,当用户想要调混合应用“支付宝”中的“充值中心”应用时,通过用手指触碰所述“充值中心”对应的图标,从而实现向所述客户端发送与所述“充值中心”对应的web页面的加载请求,使得所述客户端接收所述web页面的加载请求。For example, when the user wants to adjust the "recharge center" application in the hybrid application "Alipay", by touching the icon corresponding to the "recharge center" with a finger, the user can send a message with the "recharge center" to the client. "The loading request of the corresponding web page, so that the client receives the loading request of the web page.
步骤102,根据所述web页面的加载请求,检测待调用的web页面的版本与当前客户端的版本是否匹配,生成检测结果;
本发明实施例中,当所述客户端接收到所述web页面的加载请求后,所述混合应用中的web应用部分并不是直接调用native应用部分的代码,而是可以根据web应用部分和native应用部分约定好的规则,通过JSBridge协议来通知native应用部分需要做什么,进而native应用部分可以执行相应的代码。相同,所述混合应用中的native应用部分并不是直接调用web应用部分的代码,而是可以根据web应用部分和native应用部分约定好的规则,通过JSBridge协议来通知web应用部分需要做什么,进而web应用部分可以执行相应的代码。In the embodiment of the present invention, after the client receives the loading request of the web page, the web application part in the hybrid application does not directly call the code of the native application part, but can be based on the web application part and the native application part. The rules agreed in the application part notify the native application part of what needs to be done through the JSBridge protocol, and then the native application part can execute the corresponding code. In the same way, the native application part in the hybrid application does not directly call the code of the web application part, but can notify the web application part of what needs to be done through the JSBridge protocol according to the rules agreed between the web application part and the native application part, and then The web application part can execute the corresponding code.
这里,JSBridge是Native代码与JS代码之间的通信桥梁,由于JS和Native之间的通信必须通过一个H5全局对象JSBridge来实现,而该对象名则为"JSBridge",是H5页面中全局对象window的一个属性。因此,在本发明实施例中,native应用执行调用web应用部分的代码时,所述客户端需要检测待调用的web页面的版本与当前客户端的版本是否匹配,得到检测结果。当所述检测结果表征待调用的web页面的版本与当前客户端的版本相匹配时,则根据JSBridge协议约定的页面调用方法对web页面进行调用。当所述检测结果表征待调用的web页面的版本与当前客户端的版本不匹配时,则执行步骤103。Here, JSBridge is the communication bridge between Native code and JS code, because the communication between JS and Native must be realized through an H5 global object JSBridge, and the object name is "JSBridge", which is the global object window in the H5 page an attribute of . Therefore, in this embodiment of the present invention, when the native application executes the code that invokes the web application part, the client needs to detect whether the version of the web page to be invoked matches the version of the current client, and obtain the detection result. When the detection result indicates that the version of the web page to be invoked matches the version of the current client, the web page is invoked according to the page invocation method agreed upon in the JSBridge protocol. When the detection result indicates that the version of the web page to be called does not match the version of the current client,
需要说明的是,开发者在对当前客户端或者当前客户端中的web页面进行更新时,在更新后会同时为当前客户端或者web页面打上特定的标识(比如版本号),进而当本地客户端需要调用所述客户端中的某一web页面时,当前客户端可以通过对比待调用web页面的版本号与当前客户端版本号是否匹配,来判断客户端的版本与待调用的web页面的版本是否匹配。It should be noted that when the developer updates the current client or the web page in the current client, after the update, the current client or web page will be marked with a specific identifier (such as a version number) at the same time, and then when the local client When the client needs to call a certain web page in the client, the current client can judge the version of the client and the version of the web page to be called by comparing whether the version number of the web page to be called matches the current client version number match.
例如,开发者针对当前终端安装的1.0版本的客户端开发了对应的web页面,该web页面的版本号为2.1,则后续当用户使用该1.0版本的客户端调用所述2.1版本的web页面时,该1.0版本的客户端则判断所述1.0版本的客户端的当前版本与待调用的所述2.1版本的web页面的版本相匹配。For example, if the developer develops a corresponding web page for the client of version 1.0 installed on the current terminal, and the version number of the web page is 2.1, when the user uses the client of version 1.0 to call the web page of version 2.1 later , the client of version 1.0 determines that the current version of the client of version 1.0 matches the version of the web page of version 2.1 to be called.
步骤103,当所述检测结果表征待调用的所述web页面的版本高于当前客户端的版本时,拦截使用与当前客户端兼容的历史版本JSBridge协议中约定的方法对所述web页面进行调用;
本发明实施例中,当前客户端与待调用的web页面的版本不匹配时,至少包括以下情况之一:In this embodiment of the present invention, when the current client does not match the version of the web page to be called, at least one of the following situations is included:
情况1:当前客户端检测到所述待调用的web页面的版本高于当前客户端的版本。也就是说,当前客户端的版本比待调用的web页面的版本低,即老客户端调用新页面的情况;Case 1: The current client detects that the version of the web page to be called is higher than the version of the current client. That is to say, the version of the current client is lower than the version of the web page to be called, that is, the old client calls the new page;
此时,当前客户端则根据所述历史版本JSBridge协议中约定的方法调用所述web页面。At this time, the current client calls the web page according to the method agreed in the JSBridge protocol of the historical version.
本发明实施例中,当待调用的web页面的版本高于当前客户端的版本时,包括以下至少一种场景,其中:In this embodiment of the present invention, when the version of the web page to be called is higher than the version of the current client, at least one of the following scenarios is included, wherein:
场景1:新版本页面是对历史版本客户端原来可调用的历史版本页面进行更新后得到的;Scenario 1: The new version page is obtained after updating the historical version page that can be called by the historical version client;
在这种情况下,历史版本客户端本身保存有用于调用历史版本页面的方法,因而根据用于调用历史版本页面的方法可以加载兼容代码库,并从所述兼容代码库中查找到用于调用新版本页面的方法,并通过查找到的用于调用新版本页面的方法对新版本页面进行调用。In this case, the historical version client itself saves the method for calling the historical version page, so the compatible code base can be loaded according to the method used to call the historical version page, and the compatible code base can be found for calling The method of the new version page, and call the new version page through the found method for calling the new version page.
这里,加载兼容代码库时,具体可以由当前客户端向所述客户端的后台服务器发送加载所述兼容代码库的加载请求;所述加载请求被所述后台服务器成功响应时,调取所述兼容代码库,并加载所述兼容代码库,使得从所述兼容代码库中能够获取到与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法。具体客户端与待调用web页面之间的交互流程如图2所。Here, when loading the compatible code base, specifically, the current client may send a loading request for loading the compatible code base to the background server of the client; when the loading request is successfully responded by the background server, the compatible code base is called. The code base is loaded, and the compatible code base is loaded, so that the target calling method for calling the web page corresponding to the method agreed in the JSBridge protocol of the historical version can be obtained from the compatible code base. A specific interaction flow between the client and the web page to be called is shown in FIG. 2 .
图2为本发明实施例中客户端与待调用web页面之间的交互流程示意图;如图2所示:Fig. 2 is the schematic diagram of the interaction flow between the client and the web page to be called in the embodiment of the present invention; as shown in Fig. 2:
假设更新前的客户端与待调用的web页面均为1.0版本,且所述客户端与所述web页面之间是使用1.0版本JSBridge协议进行互相调用的,根据1.0版本JSBridge协议的约定,所述客户端可以使用A方法对1.0版本的web页面进行调用,而更新后,所述web页面被更新为了2.0版本,当用户此时需要调用该2.0版本的web页面时,需要根据2.0版本JSBridge协议约定的B方法进行调用,在这种情况下,当1.0版本的客户端通过A方法调用2.0版本的web页面时,所述客户端加载的底层基础库会拦截1.0版本的客户端通过A方法发起的调用,并通过兼容代码库,查找与A方法对应的、用于调用该web页面2.0版本的B方法,进而可以通过确定的B方法来调用2.0版本的web页面。Assuming that both the client before the update and the web page to be called are version 1.0, and the client and the web page use the 1.0 version of the JSBridge protocol to call each other, according to the 1.0 version of the JSBridge protocol, the The client can use method A to call the web page of version 1.0, and after the update, the web page is updated to version 2.0. When the user needs to call the web page of version 2.0 at this time, it needs to follow the 2.0 version of the JSBridge protocol agreement In this case, when the client of version 1.0 calls the web page of version 2.0 through method A, the underlying basic library loaded by the client will intercept the client of version 1.0 through method A. Call, and through the compatible code base, find the B method corresponding to the A method and used to call the 2.0 version of the web page, and then use the determined B method to call the 2.0 version of the web page.
通过上述调用方法避免了由于客户端和待调用web页面之间的版本不兼容,而导致客户端在调用web页面时出现的报错问题。The above invocation method avoids the problem of error reporting when the client invokes the web page due to incompatible versions between the client and the web page to be invoked.
场景2:历史版本客户端需要调用的新版本页面是新增的页面;Scenario 2: The new version page that the historical version client needs to call is the newly added page;
在这种情况下,由于该新版本页面是新增的页面,也就不存在与该新版本页面对应的历史版本页面,因而历史版本客户端本身并没有保存用于调用该页面的方法,因而也就无法从兼容代码库中查找到用于调用新版本页面的方法,则此时客户端输出用于提示用户对当前客户端进行版本更新的消息。In this case, since the new version page is a newly added page, there is no historical version page corresponding to the new version page, so the historical version client itself does not save the method for calling the page, so Also, the method for calling the new version page cannot be found from the compatible code base, and at this time, the client outputs a message for prompting the user to update the version of the current client.
所述提示方式可以是声音提醒,也可以是在当前客户端的显示界面弹出“更新窗口”,还可以直接以文字字符形式进行提醒。The prompting method may be a voice prompt, or a pop-up "update window" on the display interface of the current client, or a prompt in the form of text characters.
情况2:当前客户端的版本比待调用的web页面的版本高,也就是新客户端调用老页面的情况;Case 2: The version of the current client is higher than the version of the web page to be called, that is, the new client calls the old page;
在新客户端调用老页面的情况下,假设新版本客户端中仍然保存有根据历史版本JSBridge协议约定的页面调用方法,在这种情况下,新版本客户端可以直接使用根据历史版本JSBridge协议约定的页面调用方法对历史版本web页面进行调用。In the case where the new client calls the old page, it is assumed that the new version client still has the page calling method according to the historical version of the JSBridge protocol. In this case, the new version of the client can directly use the historical version of the JSBridge protocol. The page call method of the page calls the historical version web page.
步骤104,从兼容代码库中获取与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法;
本发明实施例中,而当新版本客户端中没有保存有根据历史版本JSBridge协议约定的页面调用方法时,新版本客户端可以从兼容代码库中查找到用于调用历史版本页面的方法,并通过查找到的用于调用历史版本页面的方法对历史版本页面进行调用。具体实现过程与历史版本客户端调用新版本页面的过程相似,因而在此处不再赘述。In the embodiment of the present invention, when the new version client does not store the page calling method according to the historical version JSBridge protocol, the new version client can find the method for calling the historical version page from the compatible code base, and Call the historical version page through the found method for calling the historical version page. The specific implementation process is similar to the process of invoking the new version page by the historical version client, so it will not be repeated here.
所述兼容代码库是由开发人员构建并进行维护更新的,所述兼容代码库中保存了各版本JSBridge协议中调用方法之间的对应关系。因此,当所述检测结果表征待调用的所述web页面的版本高于当前客户端的版本时,需要从兼容代码库中获取与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法,来对待调用的web页面进行调用。The compatible code base is constructed by developers and maintained and updated, and the compatible code base stores the correspondence between the calling methods in the JSBridge protocols of each version. Therefore, when the detection result indicates that the version of the web page to be called is higher than the version of the current client, it is necessary to obtain from the compatible code base the method for calling the web page corresponding to the method agreed in the JSBridge protocol of the historical version The target calls the method to call the web page to be called.
例如,根据1.0版本的JSBridge协议,1.0版本的客户端调用对应的1.0版本的web页面时,使用的是A方法,在一次更新后,该web页面由1.0版本更新到了2.0版本,在这种情况下,客户端可能需要根据2.0版本的JSBridge协议,使用B方法对该2.0版本的web应用进行调用,由此可见,A方法与B方法是为了调用同一页面不同版本的方法,则开发者可以在兼容代码库中保存A方法和B方法的对应关系,进而后续当1.0版本的客户端需要代用2.0版本的web页面时,客户端可以通过加载兼容代码库来确定客户端需要用什么方法来调用2.0版本的web页面。For example, according to the JSBridge protocol of version 1.0, when the client of version 1.0 calls the corresponding web page of version 1.0, it uses method A. After an update, the web page is updated from version 1.0 to version 2.0. In this case The client may need to use the B method to call the 2.0 version of the web application according to the 2.0 version of the JSBridge protocol. It can be seen that the A method and the B method are to call methods of different versions of the same page. The corresponding relationship between method A and method B is stored in the compatible code base, and then when the client of version 1.0 needs to substitute the web page of version 2.0, the client can load the compatible code base to determine what method the client needs to use to call 2.0 version of the web page.
需要说明的是,兼容代码库中保存有针对同一页面的不同版本的多种调用方法。例如,同一web页面经过多次更新后,形成1.0版本、2.0版本以及3.0版本,假设调用1.0版本的web页面使用的是A方法,调用2.0版本的web页面使用的是B方法,而调用3.0版本的web页面使用的是C方法,则在兼容代码库中将保存有针对这三个版本页面调用方法的对应关系。It should be noted that there are multiple calling methods for different versions of the same page stored in the compatible code base. For example, after the same web page has been updated several times, it forms version 1.0, version 2.0 and version 3.0. It is assumed that the web page of version 1.0 is called using method A, the web page of version 2.0 is called using method B, and the version 3.0 is called. If the web page uses the C method, the corresponding relationship of calling methods for these three versions of the page will be saved in the compatible code base.
本发明实施例中,当前客户端根据所述目标调用方法成功调用所述web页面后,执行卸载所述兼容代码库的操作,使得释放所述兼容代码库占用当前客户端的存储空间。In the embodiment of the present invention, after the current client successfully calls the web page according to the target calling method, the operation of uninstalling the compatible code base is performed, so that the storage space of the current client occupied by the compatible code base is released.
这里,采用动态加载的方式对兼容代码库进行加载,即,只有在需要加载兼容代码库的时候才进行加载,而在不需要所述兼容代码库的时候进行卸载,不仅使得该种加载方式更灵活且不会占用大量的内存,而且还使得兼容代码库可以支持热更新,进而每当待调用的web页面或者客户端(native应用端)发生更新时,开发者均可以根据本次更新内容,对兼容代码库进行更新调整。Here, the compatible code base is loaded by dynamic loading, that is, the compatible code base is loaded only when the compatible code base needs to be loaded, and unloaded when the compatible code base is not needed, which not only makes this loading method more efficient It is flexible and does not take up a lot of memory, and also enables the compatible code base to support hot updates, so that whenever the web page or client (native application) to be called is updated, developers can Update adjustments to compatible codebases.
图3为本发明实施例中客户端版本兼容的装置的结构组成示意图,如图3所示,所述装置包括:接收单元301、检测单元302、拦截单元303、获取单元304和调用单元305;FIG. 3 is a schematic diagram of the structure of a client version compatible device according to an embodiment of the present invention. As shown in FIG. 3 , the device includes: a receiving unit 301, a detecting unit 302, an intercepting unit 303, an obtaining unit 304, and a calling unit 305;
其中,所述接收单元301,用于接收当前客户端发送的万维网web页面的加载请求;Wherein, the receiving unit 301 is configured to receive the loading request of the World Wide Web page sent by the current client;
所述检测单元302,用于根据所述web页面的加载请求,检测待调用的web页面的版本与当前客户端的版本是否匹配,生成检测结果;The detection unit 302 is configured to, according to the loading request of the web page, detect whether the version of the web page to be called matches the version of the current client, and generate a detection result;
所述拦截单元303,用于当所述检测结果表征待调用的所述web页面的版本高于当前客户端的版本时,拦截使用与当前客户端兼容的历史版本JSBridge协议中约定的方法对所述web页面进行调用;The intercepting unit 303 is configured to intercept, when the detection result indicates that the version of the web page to be invoked is higher than the version of the current client, intercept the use of the method agreed in the JSBridge protocol of the historical version compatible with the current client. web page to call;
所述获取单元304,用于从兼容代码库中获取与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法;The obtaining unit 304 is configured to obtain, from the compatible code base, the target calling method for calling the web page corresponding to the method agreed in the JSBridge protocol of the historical version;
所述调用单元305,用于根据所述目标调用方法调用所述web页面,使得在当前客户端显示所述web页面。The calling unit 305 is configured to call the web page according to the target calling method, so that the web page is displayed on the current client.
本发明实施例中,所述装置具体可以是智能终端,例如,所述智能终端可以是台式电脑、笔记本电脑、智能手机、平板电脑、智能手表等设备。并且,在所述智能终端上安装有Hybrid App。In this embodiment of the present invention, the device may be a smart terminal, for example, the smart terminal may be a desktop computer, a notebook computer, a smart phone, a tablet computer, a smart watch, or other devices. And, a Hybrid App is installed on the smart terminal.
具体地,所述Hybrid App是指介于WEB-APP、Native-APP这两者之间的APP,兼具“Native App良好用户交互体验的优势”和“Web App跨平台开发的优势”。Specifically, the Hybrid App refers to an APP between the WEB-APP and the Native-APP, and has both the "advantage of a good user interaction experience of the Native App" and the "advantage of the cross-platform development of the Web App".
下面,以手机APP为例:Below, take the mobile APP as an example:
原生应用包括:酷狗音乐、美图秀秀,此类APP可称之为原生应用;Native applications include: Kugou Music, Meitu Xiuxiu, such APPs can be called native applications;
web应用包括:通过UC浏览器打开的抢票助手、充值易,这类就是web应用;Web applications include: ticket grabbing assistant and recharge easily opened through UC browser, these are web applications;
混合应用包括:天猫、携程、58同城这类APP,大多数是在原生应用的基础上包装了web页面,比如58同城的帖子、天猫的活动页面、携程的订单详情页面,都是内嵌网页的实现搜索。Hybrid applications include: Tmall, Ctrip, and 58.com. Most of them wrap web pages on the basis of native applications, such as 58.com's posts, Tmall's event pages, and Ctrip's order details pages. Embedding web pages to achieve search.
以PC端APP为例:Take the PC APP as an example:
原生应用包括:如QQ、迅雷等;Native applications include: such as QQ, Thunder, etc.;
网页应用包括:如曾经火极一时的页游;Web applications include: such as the once-popular web games;
混合应用包括:如360手机助手。Hybrid applications include: such as 360 mobile phone assistant.
在本发明实施例中,所述装置还包括:发送单元306;In this embodiment of the present invention, the apparatus further includes: a sending unit 306;
具体地,当用户想要对当前客户端中的某一对象实施打开操作时,可以触发所述终端中的发送单元306向所述客户端发送web页面的加载请求实现。Specifically, when the user wants to perform an opening operation on an object in the current client, the sending unit 306 in the terminal may be triggered to send a web page loading request to the client.
例如,当用户想要调混合应用“支付宝”中的“充值中心”应用时,通过用手指触碰所述“充值中心”对应的图标,从而触发所述发送单元306向所述客户端发送与所述“充值中心”对应的web页面的加载请求,使得所述客户端接收所述web页面的加载请求。具体,可以是由所述接收单元301接收所述web页面的加载请求。For example, when the user wants to adjust the "recharge center" application in the hybrid application "Alipay", by touching the icon corresponding to the "recharge center" with a finger, the sending unit 306 is triggered to send the client The loading request of the web page corresponding to the "recharge center" enables the client to receive the loading request of the web page. Specifically, the receiving unit 301 may receive the loading request of the web page.
本发明实施例中,当所述接收单元301接收到所述web页面的加载请求后,所述混合应用中的web应用部分并不是通过所述调用单元305直接调用native应用部分的代码,而是可以根据web应用部分和native应用部分约定好的规则,通过JSBridge协议来通知native应用部分需要做什么,进而native应用部分可以执行相应的代码。相同,所述混合应用中的native应用部分也不是通过所述调用单元305直接调用web应用部分的代码,而是可以根据web应用部分和native应用部分约定好的规则,通过JSBridge协议来通知web应用部分需要做什么,进而web应用部分可以执行相应的代码。In this embodiment of the present invention, after the receiving unit 301 receives the loading request of the web page, the web application part in the hybrid application does not directly call the code of the native application part through the calling unit 305, but According to the agreed rules between the web application part and the native application part, the JSBridge protocol can be used to inform the native application part of what needs to be done, and then the native application part can execute the corresponding code. Similarly, the native application part in the hybrid application does not directly call the code of the web application part through the calling unit 305, but can notify the web application through the JSBridge protocol according to the rules agreed between the web application part and the native application part. The part needs to do something, and then the web application part can execute the corresponding code.
这里,JSBridge是Native代码与JS代码之间的通信桥梁,由于JS和Native之间的通信必须通过一个H5全局对象JSBridge来实现,而该对象名则为"JSBridge",是H5页面中全局对象window的一个属性。因此,在本发明实施例中,native应用通过所述调用单元305执行调用web应用部分的代码时,所述客户端需要触发所述检测单元302检测待调用的web页面的版本与当前客户端的版本是否匹配,得到检测结果。当所述检测结果表征待调用的web页面的版本与当前客户端的版本相匹配时,所述终端则根据JSBridge协议约定的页面调用方法触发所述调用单元305对web页面进行调用。当所述检测结果表征待调用的web页面的版本与当前客户端的版本不匹配时,则触发所述拦截单元303,由所述拦截单元303拦截所述调用单元305使用与当前客户端兼容的历史版本JSBridge协议中约定的方法对所述web页面进行调用;Here, JSBridge is the communication bridge between Native code and JS code, because the communication between JS and Native must be realized through an H5 global object JSBridge, and the object name is "JSBridge", which is the global object window in the H5 page an attribute of . Therefore, in this embodiment of the present invention, when the native application executes the code for calling the web application part through the calling unit 305, the client needs to trigger the detection unit 302 to detect the version of the web page to be called and the version of the current client Whether it matches, get the test result. When the detection result indicates that the version of the web page to be invoked matches the version of the current client, the terminal triggers the invoking unit 305 to invoke the web page according to the page invocation method agreed in the JSBridge protocol. When the detection result indicates that the version of the web page to be called does not match the version of the current client, the intercepting unit 303 is triggered, and the intercepting unit 303 intercepts the calling unit 305 using a history compatible with the current client The method agreed in the version JSBridge protocol calls the web page;
需要说明的是,开发者在对当前客户端或者当前客户端中的web页面进行更新时,在更新后会同时为当前客户端或者web页面打上特定的标识(比如版本号),进而当本地客户端通过所述调用单元305调用所述客户端中的某一web页面时,当前客户端可以通过所述检测单元302检测待调用web页面的版本号与当前客户端版本号,来判断客户端的版本与待调用的web页面的版本是否匹配。It should be noted that when the developer updates the current client or the web page in the current client, after the update, the current client or web page will be marked with a specific identifier (such as a version number) at the same time, and then when the local client When the client calls a certain web page in the client through the calling unit 305, the current client can detect the version number of the web page to be called and the current client version number through the detection unit 302 to determine the version of the client Whether it matches the version of the web page to be called.
例如,开发者针对当前终端安装的1.0版本的客户端开发了对应的web页面,该web页面的版本号为2.1,则后续当用户使用该1.0版本的客户端调用所述2.1版本的web页面时,该1.0版本的客户端则判断所述1.0版本的客户端的当前版本与待调用的所述2.1版本的web页面的版本相匹配。For example, if the developer develops a corresponding web page for the client of version 1.0 installed on the current terminal, and the version number of the web page is 2.1, when the user uses the client of version 1.0 to call the web page of version 2.1 later , the client of version 1.0 determines that the current version of the client of version 1.0 matches the version of the web page of version 2.1 to be called.
本发明实施例中,当前客户端与待调用的web页面的版本不匹配时,至少包括以下情况之一:In this embodiment of the present invention, when the current client does not match the version of the web page to be called, at least one of the following situations is included:
情况1:当前客户端通过所述检测单元302检测到所述待调用的web页面的版本高于当前客户端的版本。也就是说,当前客户端的版本比待调用的web页面的版本低,即老客户端调用新页面的情况;Case 1: The current client detects through the detection unit 302 that the version of the web page to be called is higher than the version of the current client. That is to say, the version of the current client is lower than the version of the web page to be called, that is, the old client calls the new page;
此时,当前客户端则触发所述调用单元305根据所述历史版本JSBridge协议中约定的方法调用所述web页面。At this time, the current client triggers the calling unit 305 to call the web page according to the method agreed in the JSBridge protocol of the historical version.
本发明实施例中,当待调用的web页面的版本高于当前客户端的版本时,包括以下至少一种场景,其中:In this embodiment of the present invention, when the version of the web page to be called is higher than the version of the current client, at least one of the following scenarios is included, wherein:
场景1:新版本页面是对历史版本客户端原来可调用的历史版本页面进行更新后得到的;Scenario 1: The new version page is obtained after updating the historical version page that can be called by the historical version client;
本发明实施例中,所述装置还包括:加载单元307和查找单元308;In this embodiment of the present invention, the apparatus further includes: a loading unit 307 and a searching unit 308;
在这种情况下,历史版本客户端本身保存有用于调用历史版本页面的方法,因而所述终端可以触发所述加载单元307根据用于调用历史版本页面的方法加载兼容代码库,并在加载成功后,触发所述查找单元308从所述兼容代码库中查找用于调用新版本页面的方法,待所述查找单元308查找到用于调用新版本页面的方法后,触发所述调用单元305根据所述查找单元308查找到的用于调用新版本页面的方法对新版本页面进行调用。In this case, the historical version client itself saves a method for calling the historical version page, so the terminal can trigger the loading unit 307 to load the compatible code base according to the method for calling the historical version page, and when the loading is successful Then, trigger the search unit 308 to search for a method for calling the new version page from the compatible code base, and after the search unit 308 finds the method for calling the new version page, trigger the calling unit 305 according to the The method for calling the new version page found by the searching unit 308 calls the new version page.
本发明实施例中,所述加载单元307加载所述兼容代码库时,会触发所述发送单元306向所述客户端的后台服务器发送加载所述兼容代码库的加载请求;所述加载请求被所述后台服务器成功响应时,触发所述调用单元305调取所述兼容代码库,并由所述加载单元307加载所述兼容代码库,使得所述获取单元304从所述兼容代码库中能够获取到与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法。In this embodiment of the present invention, when the loading unit 307 loads the compatible code base, it will trigger the sending unit 306 to send a loading request for loading the compatible code base to the background server of the client; the loading request is When the background server responds successfully, the calling unit 305 is triggered to call the compatible code base, and the loading unit 307 loads the compatible code base, so that the obtaining unit 304 can obtain from the compatible code base The method is called to the target invoking the web page corresponding to the method agreed in the JSBridge protocol of the historical version.
例如,更新前的客户端与待调用的web页面均为1.0版本,且所述客户端与所述web页面之间是使用1.0版本JSBridge协议进行互相调用的,根据1.0版本JSBridge协议的约定,所述客户端可以使用A方法对1.0版本的web页面进行调用,而更新后,所述web页面被更新为了2.0版本,当用户此时需要调用该2.0版本的web页面时,需要根据2.0版本JSBridge协议约定的B方法进行调用,在这种情况下,当1.0版本的客户端触发所述调用单元305通过A方法调用2.0版本的web页面时,所述客户端会触发所述加载单元307加载底层基础库时,所述拦截单元303会拦截1.0版本的客户端通过A方法发起的调用,之后,所述终端会触发所述查找单元308通过在所述兼容代码库中查找与A方法对应的、用于调用该web页面2.0版本的B方法,进而所述调用单元305可以通过确定的B方法来调用2.0版本的web页面。具体客户端与待调用web页面之间的交互流程参照方法实施例中的图2所示。For example, both the client before the update and the web page to be called are version 1.0, and the client and the web page use the version 1.0 JSBridge protocol to call each other. According to the 1.0 version of the JSBridge protocol, the The client can use method A to call the web page of version 1.0, and after the update, the web page is updated to version 2.0. When the user needs to call the web page of version 2.0 at this time, it needs to be based on the version 2.0 JSBridge protocol. In this case, when the client of version 1.0 triggers the calling unit 305 to call the web page of version 2.0 through method A, the client will trigger the loading unit 307 to load the underlying infrastructure library, the intercepting unit 303 will intercept the call initiated by the 1.0 version client through the A method, and then the terminal will trigger the search unit 308 In order to call the B method of the 2.0 version of the web page, the calling unit 305 can call the 2.0 version of the web page through the determined B method. The specific interaction flow between the client and the web page to be called is shown in FIG. 2 in the method embodiment.
本发明实施例,通过上述调用方法避免了由于客户端和待调用web页面之间的版本不兼容,而导致客户端在调用web页面时出现的报错问题。In the embodiment of the present invention, the above invocation method avoids the problem of error reporting when the client invokes the web page due to incompatible versions between the client and the web page to be invoked.
场景2:历史版本客户端需要调用的新版本页面是新增的页面;Scenario 2: The new version page that the historical version client needs to call is the newly added page;
在这种情况下,所述装置还包括:输出单元309;In this case, the apparatus further includes: an output unit 309;
具体地,由于该新版本页面是新增的页面,也就不存在与该新版本页面对应的历史版本页面,因而历史版本客户端本身并没有保存用于调用该页面的方法,因而所述调用单元305也就无法从兼容代码库中查找到用于调用新版本页面的方法,则此时客户端会触发所述输出单元309输出用于提示用户对当前客户端进行版本更新的消息。Specifically, since the new version page is a newly added page, there is no historical version page corresponding to the new version page, so the historical version client itself does not save a method for calling the page, so the calling The unit 305 cannot find the method for invoking the new version page from the compatible code base, then the client will trigger the output unit 309 to output a message for prompting the user to update the current client version.
这里,所述提示方式可以是声音提醒,也可以是在当前客户端的显示界面弹出“更新窗口”,还可以直接以文字字符形式进行提醒。Here, the prompting method may be a voice prompt, or a pop-up "update window" on the display interface of the current client, or a prompt in the form of text characters.
情况2:当前客户端的版本比待调用的web页面的版本高,也就是新客户端调用老页面的情况;Case 2: The version of the current client is higher than the version of the web page to be called, that is, the new client calls the old page;
在新客户端调用老页面的情况下,假设新版本客户端中仍然保存有根据历史版本JSBridge协议约定的页面调用方法,在这种情况下,新版本客户端可以直接使用根据历史版本JSBridge协议约定的页面调用方法对历史版本web页面进行调用。而当新版本客户端中没有保存有根据历史版本JSBridge协议约定的页面调用方法时,在这种情况下,新版本客户端可以触发所述查找单元308从兼容代码库中查找到用于调用历史版本页面的方法,并触发所述调用单元305通过查找到的用于调用历史版本页面的方法对历史版本页面进行调用,具体实现过程与历史版本客户端调用新版本页面的过程相似,因而在此处不再赘述。In the case where the new client calls the old page, it is assumed that the new version client still has the page calling method according to the historical version of the JSBridge protocol. In this case, the new version of the client can directly use the historical version of the JSBridge protocol. The page call method of the page calls the historical version web page. When the new version client does not store the page calling method according to the JSBridge protocol of the historical version, in this case, the new version client can trigger the search unit 308 to search for the calling history from the compatible code base version page, and trigger the calling unit 305 to call the historical version page through the found method for calling the historical version page. The specific implementation process is similar to the process of the historical version client calling the new version page, so here It is not repeated here.
本发明实施例中,所述兼容代码库是由开发人员构建并进行维护更新的,所述兼容代码库中保存了各版本JSBridge协议中调用方法之间的对应关系。因此,当所述检测单元302得到的检测结果表征待调用的所述web页面的版本高于当前客户端的版本时,需要触发所述获取单元304从兼容代码库中获取与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法,从而使得所述调用单元305对待调用的web页面进行调用。In the embodiment of the present invention, the compatible code base is constructed by developers and maintained and updated, and the compatible code base stores the correspondence between the calling methods in the JSBridge protocol of each version. Therefore, when the detection result obtained by the detection unit 302 indicates that the version of the web page to be called is higher than the version of the current client, the acquisition unit 304 needs to be triggered to acquire the JSBridge protocol with the historical version from the compatible code base The method agreed in the corresponding to the target invocation method of invoking the web page, so that the invoking unit 305 invokes the web page to be invoked.
例如,根据1.0版本的JSBridge协议,1.0版本的客户端调用对应的1.0版本的web页面时,使用的是A方法,在一次更新后,该web页面由1.0版本更新到了2.0版本,在这种情况下,客户端可能需要根据2.0版本的JSBridge协议,使用B方法对该2.0版本的web应用进行调用,由此可见,A方法与B方法是为了调用同一页面不同版本的方法,则开发者可以在兼容代码库中保存A方法和B方法的对应关系,进而后续当1.0版本的客户端需要代用2.0版本的web页面时,客户端可以通过加载兼容代码库来确定客户端需要用什么方法来调用2.0版本的web页面。For example, according to the JSBridge protocol of version 1.0, when the client of version 1.0 calls the corresponding web page of version 1.0, it uses method A. After an update, the web page is updated from version 1.0 to version 2.0. In this case The client may need to use the B method to call the 2.0 version of the web application according to the 2.0 version of the JSBridge protocol. It can be seen that the A method and the B method are to call methods of different versions of the same page. The corresponding relationship between method A and method B is stored in the compatible code base, and then when the client of version 1.0 needs to substitute the web page of version 2.0, the client can load the compatible code base to determine what method the client needs to use to call 2.0 version of the web page.
需要说明的是,兼容代码库中保存有针对同一页面的不同版本的多种调用方法。例如,同一web页面经过多次更新后,形成1.0版本、2.0版本以及3.0版本,假设调用1.0版本的web页面使用的是A方法,调用2.0版本的web页面使用的是B方法,而调用3.0版本的web页面使用的是C方法,则在兼容代码库中将保存有针对这三个版本页面调用方法的对应关系。It should be noted that there are multiple calling methods for different versions of the same page stored in the compatible code base. For example, after the same web page has been updated several times, it forms version 1.0, version 2.0 and version 3.0. It is assumed that the web page of version 1.0 is called using method A, the web page of version 2.0 is called using method B, and the version 3.0 is called. If the web page uses the C method, the corresponding relationship of calling methods for these three versions of the page will be saved in the compatible code base.
本发明实施例中,所述装置还包括:卸载单元310;In this embodiment of the present invention, the apparatus further includes: an unloading unit 310;
具体地,所述调用单元305根据所述目标调用方法成功调用所述web页面后,触发所述卸载单元310执行对所述兼容代码库的卸载操作,使得当前客户端能够释放所述兼容代码库占用当前客户端的存储空间。Specifically, after the calling unit 305 successfully calls the web page according to the target calling method, triggers the uninstalling unit 310 to perform an uninstallation operation on the compatible code base, so that the current client can release the compatible code base Occupies the storage space of the current client.
这里,采用动态加载的方式对兼容代码库进行加载,即,只有在需要加载兼容代码库的时候才进行加载,而在不需要所述兼容代码库的时候进行卸载,不仅使得该种加载方式更灵活且不会占用大量的内存,而且还使得兼容代码库可以支持热更新,进而每当待调用的web页面或者客户端(native应用端)发生更新时,开发者均可以根据本次更新内容,对兼容代码库进行更新调整。Here, the compatible code base is loaded by dynamic loading, that is, the compatible code base is loaded only when the compatible code base needs to be loaded, and unloaded when the compatible code base is not needed, which not only makes this loading method more efficient It is flexible and does not take up a lot of memory, and also enables the compatible code base to support hot updates, so that whenever the web page or client (native application) to be called is updated, developers can Update adjustments to the compatible codebase.
本发明实施例,通过在历史版本客户端中加载兼容代码库,当历史版本客户端加载新版本页面并调用新版本JSBridge协议时,历史版本客户端会调用底层基础库并拦截按照新版本JSBridge协议进行的调用,并按照历史版本客户端所能兼容的JSBridge协议进行转换,进而根据历史版本客户端所能兼容的方式进行调用,通过这样的方案,开发人员不需要在新版本页面中针对各种历史版本客户端,分别集成与历史版本客户端所兼容的“历史版本JSBridge协议”,且也不需要用户对历史版本客户端进行更新。In the embodiment of the present invention, by loading a compatible code base in the historical version client, when the historical version client loads a new version of the page and calls the new version of the JSBridge protocol, the historical version client will call the underlying basic library and intercept according to the new version of the JSBridge protocol. The call is made according to the JSBridge protocol compatible with the historical version of the client, and then the call is made according to the compatible method of the historical version of the client. Through this scheme, developers do not need to target various The historical version client respectively integrates the "historical version JSBridge protocol" compatible with the historical version client, and does not require users to update the historical version client.
本发明实施例还提供另一种客户端版本兼容的装置,所述装置包括:存储器和处理器;The embodiment of the present invention also provides another client version compatible device, the device includes: a memory and a processor;
其中,所述存储器,用于存储能够在所述处理器上运行的计算机程序;Wherein, the memory is used to store a computer program that can run on the processor;
所述处理器,用于运行所述计算机程序时,执行:接收当前客户端发送的万维网web页面的加载请求;The processor, when running the computer program, executes: receiving a request for loading a World Wide Web page sent by the current client;
根据所述web页面的加载请求,检测待调用的web页面的版本与当前客户端的版本是否匹配,生成检测结果;According to the loading request of the web page, detect whether the version of the web page to be called matches the version of the current client, and generate a detection result;
当所述检测结果表征待调用的所述web页面的版本高于当前客户端的版本时,拦截使用与当前客户端兼容的历史版本JSBridge协议中约定的方法对所述web页面进行调用;When the detection result indicates that the version of the web page to be called is higher than the version of the current client, intercepting and using the method agreed in the JSBridge protocol of the historical version compatible with the current client to call the web page;
从兼容代码库中获取与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法;Obtain from the compatible code base the target invocation method for invoking the web page corresponding to the method agreed in the historical version JSBridge protocol;
根据所述目标调用方法调用所述web页面,使得在当前客户端显示所述web页面。The web page is invoked according to the target invocation method, so that the web page is displayed on the current client.
所述处理器,用于运行所述计算机程序时,还执行:当所述检测结果表征所述待调用的web页面的版本低于当前客户端的版本时,根据所述历史版本JSBridge协议中约定的方法调用所述web页面。The processor, when running the computer program, further executes: when the detection result indicates that the version of the web page to be called is lower than the version of the current client, according to the historical version agreed in the JSBridge protocol. method calls the web page.
所述处理器,用于运行所述计算机程序时,还执行:当所述检测结果表征所述待调用的web页面的版本为新增页面的版本时,输出用于提示用户对当前客户端进行版本更新的消息。The processor, when running the computer program, further executes: when the detection result indicates that the version of the web page to be called is the version of the newly added page, the output is used for prompting the user to perform the operation on the current client. Version update news.
所述处理器,用于运行所述计算机程序时,还执行:发送加载所述兼容代码库的加载请求;The processor, when running the computer program, further executes: sending a loading request for loading the compatible code base;
所述加载请求被成功响应时,加载所述兼容代码库,使得从所述兼容代码库中获取与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法。When the loading request is successfully responded, the compatible code base is loaded, so that the target calling method for calling the web page corresponding to the method agreed in the JSBridge protocol of the historical version is obtained from the compatible code base.
所述处理器,用于运行所述计算机程序时,还执行:根据所述目标调用方法成功调用所述web页面后,卸载所述兼容代码库,使得释放所述兼容代码库占用当前客户端的存储空间。The processor, when running the computer program, further executes: after successfully calling the web page according to the target calling method, unloading the compatible code base, so that the compatible code base is released to occupy the storage of the current client space.
图4为该客户端版本兼容的装置的结构示意图,客户端版本兼容的装置400可以是移动电话、计算机、数字广播终端、信息收发设备、游戏控制台、平板设备、个人数字助理、信息推送服务器、内容服务器等。图4所示的客户端版本兼容的装置400包括:至少一个处理器401、存储器402、至少一个网络接口404和用户接口403。客户端版本兼容的装置400中的各个组件通过总线系统405耦合在一起。可理解,总线系统405用于实现这些组件之间的连接通信。总线系统405除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图4中将各种总线都标为总线系统405。4 is a schematic diagram of the structure of the client version compatible device, the client version
其中,用户接口403可以包括显示器、键盘、鼠标、轨迹球、点击轮、按键、按钮、触感板或者触摸屏等。The
可以理解,存储器402可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random AccessMemory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,SynchronousDynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本发明实施例描述的存储器402旨在包括但不限于这些和任意其它适合类型的存储器。It will be appreciated that the
本发明实施例中的存储器402用于存储各种类型的数据以支持客户端版本兼容的装置400的操作。这些数据的示例包括:用于在客户端版本兼容的装置400上操作的任何计算机程序,如操作系统4021和应用程序4022;音乐数据;动漫数据;图书信息;视频等。其中,操作系统4021包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序4022可以包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序4022中。The
上述本发明实施例揭示的方法可以应用于处理器401中,或者由处理器401实现。处理器401可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器401中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器401可以是通用处理器、数字信号处理器(DSP,Digital Signal Processor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器401可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器402,处理器401读取存储器402中的信息,结合其硬件完成前述方法的步骤。The methods disclosed in the above embodiments of the present invention may be applied to the
在示例性实施例中,客户端版本兼容的装置400可以被一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,Programmable Logic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable LogicDevice)、现场可编程门阵列(FPGA,Field-Programmable Gate Array)、通用处理器、控制器、微控制器(MCU,Micro Controller Unit)、微处理器(Microprocessor)、或其他电子元件实现,用于执行前述方法。In an exemplary embodiment, the client version
在示例性实施例中,本发明实施例还提供了一种计算机可读存储介质,例如包括计算机程序的存储器402,上述计算机程序可由客户端版本兼容的装置400的处理器401执行,以完成前述方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器;也可以是包括上述存储器之一或任意组合的各种设备,如移动电话、计算机、平板设备、个人数字助理等。In an exemplary embodiment, the embodiment of the present invention further provides a computer-readable storage medium, such as a
一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器运行时,执行:接收当前客户端发送的万维网web页面的加载请求;A computer-readable storage medium on which a computer program is stored, and when the computer program is run by a processor, executes: receiving a request for loading a World Wide Web page sent by a current client;
根据所述web页面的加载请求,检测待调用的web页面的版本与当前客户端的版本是否匹配,生成检测结果;According to the loading request of the web page, detect whether the version of the web page to be called matches the version of the current client, and generate a detection result;
当所述检测结果表征待调用的所述web页面的版本高于当前客户端的版本时,拦截使用与当前客户端兼容的历史版本JSBridge协议中约定的方法对所述web页面进行调用;When the detection result indicates that the version of the web page to be called is higher than the version of the current client, intercepting and using the method agreed in the JSBridge protocol of the historical version compatible with the current client to call the web page;
从兼容代码库中获取与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法;Obtain from the compatible code base the target invocation method for invoking the web page corresponding to the method agreed in the historical version JSBridge protocol;
根据所述目标调用方法调用所述web页面,使得在当前客户端显示所述web页面。The web page is invoked according to the target invocation method, so that the web page is displayed on the current client.
该计算机程序被处理器运行时,还执行:当所述检测结果表征所述待调用的web页面的版本低于当前客户端的版本时,根据所述历史版本JSBridge协议中约定的方法调用所述web页面。When the computer program is run by the processor, it further executes: when the detection result indicates that the version of the web page to be called is lower than the version of the current client, calling the web page according to the method agreed in the JSBridge protocol of the historical version page.
该计算机程序被处理器运行时,还执行:当所述检测结果表征所述待调用的web页面的版本为新增页面的版本时,输出用于提示用户对当前客户端进行版本更新的消息。When the computer program is run by the processor, the computer program further executes: when the detection result indicates that the version of the web page to be called is the version of the newly added page, outputting a message for prompting the user to update the current client version.
该计算机程序被处理器运行时,还执行:发送加载所述兼容代码库的加载请求;When the computer program is run by the processor, it also executes: sending a loading request for loading the compatible code base;
所述加载请求被成功响应时,加载所述兼容代码库,使得从所述兼容代码库中获取与所述历史版本JSBridge协议中约定的方法对应的调用所述web页面的目标调用方法。When the loading request is successfully responded, the compatible code base is loaded, so that the target calling method for calling the web page corresponding to the method agreed in the JSBridge protocol of the historical version is obtained from the compatible code base.
该计算机程序被处理器运行时,还执行:根据所述目标调用方法成功调用所述web页面后,卸载所述兼容代码库,使得释放所述兼容代码库占用当前客户端的存储空间。When the computer program is run by the processor, it further executes: after successfully calling the web page according to the target calling method, uninstalling the compatible code base, so that the compatible code base is released to occupy the storage space of the current client.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711014276.5A CN107832099B (en) | 2017-10-26 | 2017-10-26 | A client version compatible method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711014276.5A CN107832099B (en) | 2017-10-26 | 2017-10-26 | A client version compatible method, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107832099A CN107832099A (en) | 2018-03-23 |
CN107832099B true CN107832099B (en) | 2020-12-11 |
Family
ID=61649364
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711014276.5A Active CN107832099B (en) | 2017-10-26 | 2017-10-26 | A client version compatible method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107832099B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109032820B (en) * | 2018-08-08 | 2021-02-12 | 网易(杭州)网络有限公司 | Processing method and device for application program version compatibility |
CN109725970B (en) * | 2018-12-25 | 2020-07-24 | 北京微播视界科技有限公司 | Method and device for displaying application client window and electronic equipment |
CN111381810B (en) * | 2018-12-28 | 2021-06-18 | 北京微播视界科技有限公司 | Processing method of processing class Handler of terminal equipment and electronic equipment |
CN111381898B (en) * | 2018-12-28 | 2023-12-22 | 北京字节跳动网络技术有限公司 | Interface calling method and device, mobile terminal and storage medium |
CN109977008B (en) * | 2019-02-22 | 2022-03-29 | 福建天泉教育科技有限公司 | Method and terminal for making JS code depended on by application program compatible with native library |
CN110058896A (en) * | 2019-03-12 | 2019-07-26 | 视联动力信息技术股份有限公司 | A kind of application program launching method and device |
CN110113377A (en) * | 2019-04-01 | 2019-08-09 | 苏宁易购集团股份有限公司 | The method and device of release upgrade suitable for mixed mode applications, smart machine |
CN112241273A (en) * | 2019-07-17 | 2021-01-19 | 北京密境和风科技有限公司 | Application function dynamic expansion method and device |
CN110502708B (en) * | 2019-08-27 | 2020-10-30 | 北京达佳互联信息技术有限公司 | Method, device and storage medium for communication based on JSbridge |
CN110572508B (en) * | 2019-09-03 | 2021-02-26 | 捷开通讯(深圳)有限公司 | Address book synchronization method and device, storage medium and electronic equipment |
CN112597423B (en) * | 2021-01-04 | 2023-11-03 | 聚好看科技股份有限公司 | A method, terminal and server for displaying web page content |
CN113296828B (en) * | 2021-05-26 | 2024-10-18 | 北京京东振世信息技术有限公司 | Method, server and system for releasing application |
CN113342323B (en) * | 2021-06-29 | 2024-03-29 | 银清科技有限公司 | Method and device for online development of software |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103106102A (en) * | 2013-01-14 | 2013-05-15 | 百度在线网络技术(北京)有限公司 | Running method of Web application program and mobile terminal |
CN104657118A (en) * | 2013-11-18 | 2015-05-27 | 中国移动通信集团公司 | Native + Web mixed mobile application achieving method and device |
US9374441B2 (en) * | 2009-10-09 | 2016-06-21 | Echostar Technologies L.L.C. | Dynamically determining and utilizing an application programming interface of an electronic device |
CN106445583A (en) * | 2016-08-31 | 2017-02-22 | 广州品唯软件有限公司 | Page display method, equipment and system |
CN106897162A (en) * | 2017-02-23 | 2017-06-27 | 腾讯科技(深圳)有限公司 | The communication mode system of selection of component, communication system and mobile terminal in a kind of application |
CN106970946A (en) * | 2017-02-24 | 2017-07-21 | 阿里巴巴集团控股有限公司 | A kind of page display method and device |
CN107092472A (en) * | 2016-08-19 | 2017-08-25 | 口碑控股有限公司 | A kind of dynamic publishing method and equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20120070416A (en) * | 2010-12-21 | 2012-06-29 | 주식회사 케이티 | Policy managing methods using smart-card, web server implementing the same, and mobile including the web server |
-
2017
- 2017-10-26 CN CN201711014276.5A patent/CN107832099B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9374441B2 (en) * | 2009-10-09 | 2016-06-21 | Echostar Technologies L.L.C. | Dynamically determining and utilizing an application programming interface of an electronic device |
CN103106102A (en) * | 2013-01-14 | 2013-05-15 | 百度在线网络技术(北京)有限公司 | Running method of Web application program and mobile terminal |
CN104657118A (en) * | 2013-11-18 | 2015-05-27 | 中国移动通信集团公司 | Native + Web mixed mobile application achieving method and device |
CN107092472A (en) * | 2016-08-19 | 2017-08-25 | 口碑控股有限公司 | A kind of dynamic publishing method and equipment |
CN106445583A (en) * | 2016-08-31 | 2017-02-22 | 广州品唯软件有限公司 | Page display method, equipment and system |
CN106897162A (en) * | 2017-02-23 | 2017-06-27 | 腾讯科技(深圳)有限公司 | The communication mode system of selection of component, communication system and mobile terminal in a kind of application |
CN106970946A (en) * | 2017-02-24 | 2017-07-21 | 阿里巴巴集团控股有限公司 | A kind of page display method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107832099A (en) | 2018-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107832099B (en) | A client version compatible method, device and storage medium | |
CN108958844B (en) | Application program control method and terminal | |
US8694981B2 (en) | Shared resource dependencies | |
US20100211769A1 (en) | Concurrent Execution of a Smartphone Operating System and a Desktop Operating System | |
CN108647032B (en) | Application loading method and apparatus, computer apparatus and computer-readable storage medium | |
US9336014B2 (en) | Method, apparatus, and system for human-machine interaction | |
CN108984225A (en) | The method and apparatus of quick start boarding application | |
CN109684573B (en) | Target picture display method and device, storage medium and electronic equipment | |
CN115454827B (en) | Compatibility detection method, system, equipment and medium | |
US8468388B2 (en) | Restoring programs after operating system failure | |
US10599444B2 (en) | Extensible input stack for processing input device data | |
CN106201595A (en) | The cleaning control method of a kind of application program and device | |
CN115543526A (en) | Control method and electronic equipment | |
CN109002710A (en) | A kind of detection method, device and computer readable storage medium | |
CN114647411B (en) | Programming interface loading method, device, electronic device and storage medium | |
CN111124627A (en) | Method, device, terminal and storage medium for determining application program caller | |
WO2019139738A1 (en) | Extensible input stack for processing input device data | |
CN115760391A (en) | Intelligent contract changing method and device in block chain, electronic equipment and storage medium | |
CN114356290A (en) | A data processing method, apparatus and computer readable storage medium | |
CN118051421A (en) | Injection method and device for IO time delay fault, electronic equipment and storage medium | |
CN107391196A (en) | A method for updating an application program and a mobile terminal | |
CN115495124A (en) | Processing flow updating method, device, equipment, storage medium and program product | |
CN114816732A (en) | A resource integration method and electronic device | |
CN115878915A (en) | Page access method, device, storage medium and computer equipment | |
CN113760404A (en) | A method, apparatus, device and storage medium for page rollback |
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 |