CN104281455A - Interface calling method and device and terminal - Google Patents

Interface calling method and device and terminal Download PDF

Info

Publication number
CN104281455A
CN104281455A CN201410534517.9A CN201410534517A CN104281455A CN 104281455 A CN104281455 A CN 104281455A CN 201410534517 A CN201410534517 A CN 201410534517A CN 104281455 A CN104281455 A CN 104281455A
Authority
CN
China
Prior art keywords
interface
parameter
data type
conversion
browser
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410534517.9A
Other languages
Chinese (zh)
Inventor
魏宏涛
张骏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201410534517.9A priority Critical patent/CN104281455A/en
Publication of CN104281455A publication Critical patent/CN104281455A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses an interface calling method, which comprises the following steps: receiving interface calling information sent by any browser kernel in a multi-core browser, wherein the interface calling information comprises an interface identifier and parameters required by calling a target interface, and the data type of the parameters belongs to the data type supported by the browser kernel; carrying out format conversion on the parameters, wherein the data type of the converted parameters is a preset first data type; and taking the converted parameters as input parameters, and calling a target interface function corresponding to the interface identifier. The embodiment of the invention also discloses an interface calling device and a terminal. By adopting the embodiment of the invention, the efficiency of calling the interface can be improved.

Description

A kind of interface interchange method, device and terminal
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of interface interchange method, device and terminal.
Background technology
Along with the development of Internet technology, browser to have become on mobile terminal one of indispensable application software, and user obtains shared information on internet by the browser that the mobile terminal such as computer, mobile phone is installed or by browser sharing information etc.
Usually, browser provides a large amount of interface for client script or call, and by loading client script in webpage, performing this client script by browser-interpreted, can realize the Dynamic Display effect of webpage, strengthens the interactivity of webpage.Such as: realize the Special Effect Show of page elements, respond to users action, proof list forms data etc.
At present, browser is mostly multi-core browser, and namely browser comprises at least two browser kernels.The interface itself provided due to often kind of browser kernel is limited, and for meeting the development requirement of Web page, developer need develop more expansion interface according to actual needs, and the client script for Web page calls.But, existing interface function is all developed based on specific browser kernel, namely for a certain expansion interface, developer need design the function that an interface function needs to realize to realize this expansion interface to often kind of browser kernel in browser, often kind of browser kernel can only call the interface function for this core design.Because the specification based on different browsers core design interface function is different, therefore, in the interface interchange method of existing multi-core browser, for different browser kernels, the interface function based on different specification design need be called, cause interface calling procedure complicated, thus the efficiency of calling interface is low.
Summary of the invention
The embodiment of the present invention provides a kind of interface interchange method, device and terminal, can improve the efficiency of calling interface.
First aspect, the embodiment of the present invention provides a kind of interface interchange method, comprising:
Receive the interface interchange information that arbitrary browser kernel sends in multi-core browser, described interface interchange information comprises interface identifier required for invocation target interface and parameter, and the data type of described parameter belongs to the data type that this browser kernel is supported;
Described parameter is carried out format conversion, and the data type of the parameter after changing is the first default data type;
Using the parameter after described conversion as input parameter, call the target interface function that described interface identifier is corresponding.
In the first possible implementation of first aspect, described using the parameter after described conversion as input parameter, after calling target interface function corresponding to described interface identifier, described method also comprises:
Obtain the output parameter returned after calling described target interface function, the data type of described output parameter is the second default data type;
Described output parameter is carried out format conversion, and the data type of the output parameter after conversion belongs to the data type of the browser kernel support sending described interface interchange information;
The output parameter after described conversion is returned to this browser kernel.
In conjunction with any one possible implementation above-mentioned, in the implementation that the second of first aspect is possible, described using the parameter after described conversion as input parameter, before calling target interface function corresponding to described interface identifier, described method also comprises:
According to described interface identifier, whether inquiry exists the target interface function mated with described interface identifier in presupposed information storehouse;
If so, perform the parameter after using described conversion as input parameter, call the step of target interface function corresponding to described interface identifier.
In conjunction with the implementation that the second of first aspect is possible, in the third possible implementation of first aspect, described according to described interface identifier, after whether there is the target interface function mated with described interface identifier in inquiry presupposed information storehouse, described method also comprises:
If not, default error message is returned to the browser kernel sending described interface interchange information.
In conjunction with the first possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, described first data type comprises KeyValueMap type, and described second data type comprises Value type.
Second aspect, the embodiment of the present invention provides a kind of interface interchange device, comprising:
Receiver module, for receiving the interface interchange information that in multi-core browser, arbitrary browser kernel sends, described interface interchange information comprises interface identifier required for invocation target interface and parameter, and the data type of described parameter belongs to the data type that this browser kernel is supported;
First modular converter, for described parameter is carried out format conversion, the data type of the parameter after changing is the first default data type;
Calling module, for using the parameter after described conversion as input parameter, call the target interface function that described interface identifier is corresponding.
In the first possible implementation of second aspect, described device also comprises:
Acquisition module, for obtain call described interface function after the output parameter that returns, the data type of described output parameter is the second default data type;
Second modular converter, for described output parameter is carried out format conversion, the data type of the output parameter after conversion belongs to the data type of the browser kernel support sending described interface interchange information;
Sending module, for returning the output parameter after described conversion to this browser kernel.
In conjunction with the first possible implementation of second aspect or second aspect, in the implementation that the second of second aspect is possible, described device also comprises:
Enquiry module, for according to described interface identifier, inquires about in presupposed information storehouse whether there is the target interface function mated with described interface identifier;
Described calling module, if for there is the target interface function mated with described interface identifier in described presupposed information storehouse, using the parameter after described conversion as input parameter, call the target interface function that described interface identifier is corresponding.
In conjunction with the first possible implementation of second aspect, in the third possible implementation of second aspect, described sending module also for:
If there is not the target interface function mated with described interface identifier in described presupposed information storehouse, return default error message to the browser kernel sending described interface interchange information.
In conjunction with the first possible implementation of second aspect, in the 4th kind of possible implementation of second aspect, described first data type comprises KeyValueMap type, and described second data type comprises Value type.
The third aspect, the embodiment of the present invention provides a kind of terminal, comprises any one interface interchange device as above.
Implement the embodiment of the present invention, receive the interface interchange information that arbitrary browser kernel sends in multi-core browser, described interface interchange information comprises interface identifier required for invocation target interface and parameter; The parameter of carrying in docking port recalls information carries out format conversion, and the data type of the parameter after changing is the first default data type; The target interface function corresponding according to the interface identifier calling interface mark of carrying in the parameter after conversion and interface interchange information, thus the calling of the mouth that achieves a butt joint.Adopt the embodiment of the present invention, carry out standardization processing by the parameter of docking port function, make to adopt identical interface interchange mode during different browser kernel calling interfaces, thus, improve the efficiency of calling interface.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of interface interchange method that the embodiment of the present invention provides;
Fig. 2 is another schematic flow sheet of a kind of interface interchange method that the embodiment of the present invention provides;
Fig. 2 a is a kind of schematic flow sheet arranging the method for interface that Fig. 2 provides;
Fig. 3 is the structural representation of a kind of interface interchange device that the embodiment of the present invention provides;
Fig. 4 is another structural representation of a kind of interface interchange device that the embodiment of the present invention provides;
Fig. 5 is the another structural representation of a kind of interface interchange device that the embodiment of the present invention provides;
Fig. 6 is the structural representation of a kind of terminal that the embodiment of the present invention provides;
Fig. 7 is a structural representation again of a kind of interface interchange device that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention discloses a kind of interface interchange method, device and terminal, receive the interface interchange information that in multi-core browser, arbitrary browser kernel sends, the parameter of carrying in docking port recalls information carries out format conversion, wherein, the data type of the parameter after changing is the first default data type; Using the parameter after conversion as input parameter, the target interface function that the interface identifier carried in calling interface recalls information is corresponding, calling of the mouth that achieves a butt joint.Adopt the embodiment of the present invention, the mode for different browsers kernel calls interface is identical, can improve the efficiency of calling interface.A kind of interface interchange method, device and the terminal that there is provided below in conjunction with accompanying drawing 1-accompanying drawing 7 pairs of embodiment of the present invention describe in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of interface interchange method that the embodiment of the present invention provides, and in embodiments of the present invention, the method can comprise the following steps.
S101: receive the interface interchange information that in multi-core browser, arbitrary browser kernel sends, described interface interchange information comprises interface identifier required for invocation target interface and parameter, and the data type of described parameter belongs to the data type that this browser kernel is supported.
In embodiments of the present invention, the method may be used for the browser in terminal or is similar in the product of browser, and described terminal can be the terminals such as computing machine, IPAD, mobile phone, also can be other smart machine, concrete, the embodiment of the present invention does not impose any restrictions.
Usually, the Dynamic Display effect of horn of plenty webpage, strengthen the interactivity of webpage and user, browser provides a large amount of interface to webpage, calls for the client script loaded in webpage, browser-interpreted, performs this client script.Such as: when browser receives the interface interchange instruction of client script, the information of carrying according to this interface interchange instruction runs interface function corresponding to target interface specified by this information, thus realizes corresponding function.Conventional browser kernel has: Trident kernel, blink kernel, Gecko kernel etc., and for improving the operational efficiency of webpage, at present, browser is mostly multi-core browser.Such as: cheetah browser adopts Trident kernel and blink kernel, and belong to double-core browser, Trident kernel is IE kernel, can ensure good compatibility, access net purchase, the payment page is completely unrestricted; Blink kernel is Chrome kernel, and possess feature at a high speed, accessed web page speed is faster.
In multi-core browser, if browser provides an interface to webpage, an interface function identical with the function that this interface will realize need be all designed for each browser kernel in existing method, not only cost of development is high, and due to the design specifications of different browser kernel docking port functions different, cause the mode of different browser kernel calling interfaces different, namely the interface function that different browser kernels calls for identical interface identifier is different, cause interface interchange flow process complicated, thus the efficiency of calling interface is low.
In the embodiment of the present invention, multi-core browser is being explained in the process performing webpage, any one browser kernel in multi-core browser receives the interface interchange instruction of the client script transmission loaded in webpage, this interface interchange instruction carries the information required for invocation target interface, the parameter etc. required for the interface function that this information can comprise corresponding to interface identifier and interface identifier.What deserves to be explained is, the data type that client script sends the parameter of browser kernel to belongs to the data type that client script is supported, and the data type that browser kernel is supported is different from the data type that client script is supported usually, therefore, when browser kernel receives the interface interchange instruction of client script transmission, parameter according to carrying in the Parameter Switch rule automatic butt mouth call instruction preset carries out format conversion, the data type that the data type of the parameter after conversion is supported for this browser kernel.Interface identifier entrained by interface interchange instruction and the parameter after conversion are packaged into interface interchange information by browser kernel.In the embodiment of the present invention, interface interchange device receives the interface interchange information that in multi-core browser, arbitrary browser kernel sends, described interface interchange information comprises interface identifier required for invocation target interface and parameter, and the data type of described parameter belongs to the data type that this browser kernel is supported.
S102: described parameter is carried out format conversion, the data type of the parameter after changing is the first default data type.
For the interface interchange instruction of client script, consider different browser kernels the parameter of carrying in interface interchange instruction is carried out format conversion after parameter type differ.In the embodiment of the present invention, parse parameter, and again carry out format conversion to this parameter from the interface interchange information that browser kernel sends over, the data type of the parameter after changing is the first default data type.Described first data type can receive the data of any data type, thus, when ensureing that different browser kernels receives the interface interchange instruction of client script, all can by this step by through different browser kernels conversion after Parameter Switch be the parameter with identical data type.
S103: using the parameter after described conversion as input parameter, calls the target interface function that described interface identifier is corresponding.
According to the interface identifier that interface interchange information comprises, obtain the target interface function corresponding with this interface identifier.Thus, using the parameter after described conversion as input parameter, call the target interface function that described interface identifier is corresponding.In other words, according to the parameter after conversion, this parameter is substituted in target interface function corresponding to interface identifier, run or perform this target interface function.Thus, for different browser kernels, after adopting the embodiment of the present invention, carry out standardization processing by docking port function, the mode of different browser kernel calling interfaces is identical, in other words, for identical interface identifier, the target interface function that different browser kernels calls is identical, thus, improve the efficiency of interface interchange, the execution efficiency of webpage is also improved accordingly.
In the interface interchange method that the embodiment of the present invention describes, receive the interface interchange information that arbitrary browser kernel sends in multi-core browser, described interface interchange information comprises interface identifier required for invocation target interface and parameter; The parameter of carrying in docking port recalls information carries out format conversion, and the data type of the parameter after changing is the first default data type; The target interface function corresponding according to the interface identifier calling interface mark of carrying in the parameter after conversion and interface interchange information, thus the calling of the mouth that achieves a butt joint.Adopt the embodiment of the present invention, the efficiency of calling interface can be improved.
Refer to Fig. 2, Fig. 2 is another schematic flow sheet of a kind of interface interchange method that the embodiment of the present invention provides, and in embodiments of the present invention, the method can comprise the following steps.
S201: receive the interface interchange information that in multi-core browser, arbitrary browser kernel sends, described interface interchange information comprises interface identifier required for invocation target interface and parameter, and the data type of described parameter belongs to the data type that this browser kernel is supported.
Multi-core browser is being explained in the process performing webpage, any one browser kernel in multi-core browser receives the interface interchange instruction of the client script transmission loaded in webpage, this interface interchange instruction carries the information required for invocation target interface, the parameter etc. required for the interface function that this information can comprise corresponding to interface identifier and interface identifier.What deserves to be explained is, the data type that client script sends the parameter of browser kernel to belongs to the data type that client script is supported, and the data type that browser kernel is supported is different from the data type that client script is supported usually, therefore, when browser kernel receives the interface interchange instruction of client script transmission, parameter according to carrying in the Parameter Switch rule automatic butt mouth call instruction preset carries out format conversion, the data type that the data type of the parameter after conversion is supported for browser kernel.Interface identifier entrained by interface interchange instruction and the parameter after conversion are packaged into interface interchange information by browser kernel.
Such as: because the specification checking design interface function in Trident is HRESULT InterfaceFunti on (DISPPARAMS*pDispParams, VARIANT*pVarResult, EXCEPINFO*pExcepI nfo), therefore, after Trident kernel receives the interface interchange instruction of client script, be the parameter that data type is respectively " DISPPARAMS* ", " VARIANT* " and " E XCEPINFO* " by the Parameter Switch entrained by interface interchange instruction; And the specification checking design interface function in Chrome is void Interface Funtion (const v8::FunctionCallbackInfo<v8::ValueGreatT.Gr eaT.GT & args), therefore, after Chrome kernel receives the interface interchange instruction of client script, the parameter that to be data type by the Parameter Switch entrained by interface interchange instruction be " v8::FunctionCallbackInfo<v8::ValueGreatT.Gr eaT.GT ".
In the embodiment of the present invention, interface interchange device receives the interface interchange information that in multi-core browser, arbitrary browser kernel sends, described interface interchange information comprises interface identifier required for invocation target interface and parameter, and the data type of described parameter belongs to the data type that described browser kernel is supported.Such as: if described browser kernel is Trident kernel, then the data type of the parameter in interface interchange information is respectively " DISPPARAMS* ", " VARIANT* " and " EXCEPINFO* " type; If described browser kernel is Chrome kernel, then the data type of the parameter in interface interchange information is " v8::FunctionCallbackInfo<v8::ValueGreatT.Gr eaT.GT " type.
S202: described parameter is carried out format conversion, the data type of the parameter after changing is the first default data type.
For the interface interchange instruction of client script, consider different browser kernels the parameter of carrying in interface interchange instruction is carried out format conversion after parameter type differ.In the embodiment of the present invention, parse parameter, and again carry out format conversion to this parameter from the interface interchange information that browser kernel sends over, the data type of the parameter after changing is the first default data type.Wherein, described first data type can be predefined for receiving the data type of any categorical data, and also can be the conventional data type in the database that carries of programming language, this data type can receive the data of any data type.Such as: KeyValueMap type, concrete, the embodiment of the present invention is not restricted.For convenience of description, the embodiment of the present invention for KeyValueMap type for the first data type, but it should be noted that and can not limit the first data type with this.
KeyValueMap is a kind of data type, and the type, as storage tank, can be used for preserving the data of number of different types, such as: integer, floating number, character string etc.Concrete, KeyValueMap is a kind of key-value (Key-Value) mapping table, the one-to-one relationship of key (Key) and value (Value) is saved in this mapping table, key (Key) can be numeral (order of parameter) or character string (title of parameter), and value (Value) is the occurrence of certain key corresponding in parameter.For convenience of description, suppose that client script is for calling the interface that is added web-page histories record, this interface needs the network address (url importing webpage into, be assumed to http: www.liebao.cn) and access time (time, be assumed to 2014-07-2020:00:00), after format conversion being carried out to parameter according to step S202, obtaining the KeyValueMap parameter after changing can be as shown in table 1, and table 1 is the signal of a kind of first data type that the embodiment of the present invention provides.
Table 1
Because step S202 realizes in browser inside, the speed of conversion parameter is fast, and higher than the converter efficiency using script to realize.Thus, after ensureing that different browser kernels receives the interface interchange instruction of client script, all can by this step by through browser kernel conversion after Parameter Switch be the parameter with identical data type, the data type of the input parameter of docking port function achieves unification, therefore, an interface function need only be designed when developer develops a socket for multi-core browser.
S203: according to described interface identifier, whether inquiry exists the interface function mated with described interface identifier in presupposed information storehouse.
Usually, after developer develops a socket, the relevant information of this interface be kept in presupposed information storehouse, wherein, the relevant information of interface comprises interface identifier and interface function, and described interface identifier can be interface name.If developer provides the target interface specified by interface interchange information for browser, then can find a unique interface function mated with this interface identifier in the information bank preset by the interface identifier carried in interface interchange information.In the embodiment of the present invention, according to the interface identifier carried in interface interchange information, whether inquiry exists the interface function mated with described interface identifier in presupposed information storehouse.If exist, illustrate that browser provides the target interface specified by this interface identifier, perform step S204, run according to the parameter after conversion the interface function found; If do not exist, illustrate that browser does not provide this target interface, then perform step S208, the browser kernel to transmission interface recalls information returns default error message.
What deserves to be explained is, in the embodiment of the present invention, step S202 and step S203 is not by the restriction performing sequencing, can be carry out format conversion according to the parameter in step S202 docking port recalls information after, then inquire about in presupposed information storehouse whether there is the interface function mated with the interface identifier in interface interchange information according to step S203; Also can be inquire about in presupposed information storehouse and whether there is according to step S203 the interface function mated with the interface identifier in interface interchange information after, if there is the interface function mated with interface identifier, then carry out format conversion according to the parameter in step S202 docking port recalls information again.Concrete, the embodiment of the present invention is not restricted.
S204: using the parameter after described conversion as input parameter, the target interface function that calling interface mark is corresponding.
If step S203 inquires the target interface function that in presupposed information storehouse, existence is mated with interface identifier, then using in step S202 conversion after parameter as the input parameter of found target interface function, call this target interface function.In other words, according to the parameter after conversion, this parameter is substituted in the target interface function found, run or perform the target interface function found.Thus for different browser kernels, after adopting the embodiment of the present invention, can adopt unified specification calling interface function, the mode of different browser kernel calling interfaces is identical, and the efficiency of calling interface is high, thus the execution efficiency of webpage is also improved.
S205: obtain the output parameter returned after calling described target interface function, the data type of described output parameter is the second default data type.
According to after the target interface function that the parameter call target interface after conversion is corresponding, obtain the output parameter returned after calling described target interface function, the data type of described output parameter is the second default data type.Wherein, described second data type can be predefined for receiving the data type of any categorical data, and also can be the conventional data type in the database that carries of programming language, this data type can receive the data of any data type.Such as: Value type, concrete, the embodiment of the present invention is not restricted.Thus, when developer develops a socket for different browser kernels, only need design an interface function, and without the need to designing an interface function respectively for different browser kernels, reduce cost of development.
S206: described output parameter is carried out format conversion, the data type of the output parameter after conversion belongs to the data type of the browser kernel support sending described interface interchange information.
Such as: if browser kernel is Trident kernel, then the Value type output parameter returned by target interface function is converted to the data of " VARIANT* " type; If browser kernel is Chrome kernel, then the Value type output parameter returned by target interface function is converted to the data of " v8::FunctionCallbackInfo<v8::ValueGreatT.Gr eaT.GT " type.
S207: return the output parameter after described conversion to this browser kernel.
Output parameter after conversion is returned to the browser kernel of transmission interface recalls information, thus, make browser kernel that the output parameter returned after performance objective interface function is returned to client script further.
S208: return default error message to the browser kernel sending described interface interchange information.
If step S203 inquires the interface function not existing in presupposed information storehouse and mate with interface identifier, illustrate that browser does not provide the interface identifier in interface interchange information, then send to the browser kernel sending described interface interchange information the error message preset.
In the interface interchange method that the embodiment of the present invention describes, receive the interface interchange information that arbitrary browser kernel sends in multi-core browser, described interface interchange information comprises interface identifier required for invocation target interface and parameter; The parameter of carrying in docking port recalls information carries out format conversion, and the data type of the parameter after changing is the first default data type; The interface function corresponding according to the interface identifier invocation target interface that carries in the parameter after conversion and interface interchange information, thus the calling of the mouth that achieves a butt joint.Adopt the embodiment of the present invention, the efficiency of interface interchange can be improved.
What deserves to be explained is, in the above-described embodiments, before whether there is the interface function mated with described interface identifier in step S203 inquiry presupposed information storehouse, interface and the interface function corresponding with this interface can also be pre-set, interface message be saved in presupposed information storehouse, described interface message comprises interface identifier and interface function.Concrete, can as shown in Figure 2 a, Fig. 2 a is a kind of schematic flow sheet arranging the method for interface that Fig. 2 provides, and the method can comprise the following steps.
S203a: the interface function pre-setting interface identifier and mate with this interface identifier, the data type of the input parameter of described interface function is described first data type, and the data type of the output parameter of described interface function is described second data type.
Need the Functional Design interface function realized according to interface, wherein, the data type of the input parameter of interface function can be the first data type, and the type of output parameter can be the second data type.For convenience of description, suppose that the first data type is KeyValueMap type, second data type is Value type, then in the embodiment of the present invention, the specification of design interface function is Value InterfaceFunction (KeyValueMap), KeyValueMap is used for passing interface parameter, and interface function is from the parameter reading scripts pass here; Value is used for return parameters to script; InterfaceFunction is function name, is also expressed as function address in code, uses it to associate with interface identifier.Separately, the function that the function body part of interface function will need realize according to this interface function is specifically determined, and the embodiment of the present invention is not restricted.
S203b: described interface identifier and the interface function that mates with this interface identifier are saved in presupposed information storehouse.
For convenience of description, suppose that the interface message stored in presupposed information storehouse is as shown in table 2, table 2 is the storage organization signals in wherein a kind of presupposed information storehouse that the embodiment of the present invention provides.
Table 2
Interface identifier Interface function
recordHistory Value?RecordHistory(KeyValueMap)
downloadUrl Value?DownloadUrl(KeyValueMap)
playAudio Value?PlayAudio(KeyValueMap)
Thus, when developer develops a socket for different browser kernels, only need design an interface function, and without the need to designing an interface function respectively for different browser kernels, reduce cost of development.And the mode of the browser docking port design due to specification, the mode of browser kernel calling interface have also been obtained unification, thus, improve the efficiency of calling interface.
Be apparatus of the present invention embodiment below, apparatus of the present invention embodiment and the inventive method embodiment belong to same design, for performing the method described in the inventive method embodiment.For convenience of explanation, apparatus of the present invention embodiment only illustrates the part relevant to apparatus of the present invention embodiment, and concrete ins and outs do not disclose, and please refer to the description of the inventive method embodiment, repeats no longer one by one herein.
Refer to Fig. 3, Fig. 3 is the structural representation of a kind of interface interchange device that the embodiment of the present invention provides, and in embodiments of the present invention, this device can comprise: receiver module 101, first modular converter 102 and calling module 103.
Receiver module 101, for receiving the interface interchange information that in multi-core browser, arbitrary browser kernel sends, described interface interchange information comprises interface identifier required for invocation target interface and parameter, and the data type of described parameter belongs to the data type that this browser kernel is supported.
First modular converter 102, for described parameter is carried out format conversion, the data type of the parameter after changing is the first default data type.
Calling module 103, for using the parameter after described conversion as input parameter, call the target interface function that described interface identifier is corresponding.
In the interface interchange device that the embodiment of the present invention describes, receive the interface interchange information that arbitrary browser kernel sends in multi-core browser, described interface interchange information comprises interface identifier required for invocation target interface and parameter; The parameter of carrying in docking port recalls information carries out format conversion, and the data type of the parameter after changing is the first default data type; The interface function corresponding according to the interface identifier invocation target interface that carries in the parameter after conversion and interface interchange information, thus the calling of the mouth that achieves a butt joint.Adopt the embodiment of the present invention, the efficiency of calling interface can be improved.
Refer to Fig. 4, Fig. 4 is another structural representation of a kind of interface interchange device that the embodiment of the present invention provides, in embodiments of the present invention, this device can comprise: receiver module 201, first modular converter 202, calling module 203, acquisition module 204, second modular converter 205, sending module 206 and enquiry module 207.
Receiver module 201, for receiving the interface interchange information that in multi-core browser, arbitrary browser kernel sends, described interface interchange information comprises interface identifier required for invocation target interface and parameter, and the data type of described parameter belongs to the data type that this browser kernel is supported.
First modular converter 202, for described parameter is carried out format conversion, the data type of the parameter after changing is the first default data type.
Calling module 203, for using the parameter after described conversion as input parameter, call the target interface function that described interface identifier is corresponding.
Acquisition module 204, for obtain call described interface function after the output parameter that returns, the data type of described output parameter is the second default data type.
Second modular converter 205, for described output parameter is carried out format conversion, the data type of the output parameter after conversion belongs to the data type of the browser kernel support sending described interface interchange information.
Sending module 206, for returning the output parameter after described conversion to this browser kernel.
Enquiry module 207, for according to described interface identifier, inquires about in presupposed information storehouse whether there is the target interface function mated with described interface identifier.
Preferably, calling module 203, if for there is the target interface function mated with described interface identifier in described presupposed information storehouse, using the parameter after described conversion as input parameter, call the target interface function that described interface identifier is corresponding.
Preferably, sending module 206 also for:
If there is not the target interface function mated with described interface identifier in described presupposed information storehouse, return default error message to the browser kernel sending described interface interchange information.
As the optional embodiment of one, described first data type comprises KeyValueMap type, and described second data type comprises Value type.
In another kind of implementation, this interface interchange device can also comprise presetting module, for:
The interface function pre-setting interface identifier and mate with this interface identifier, the data type of the input parameter of described interface function is described first data type, and the data type of the output parameter of described interface function is described second data type;
Described interface identifier and the interface function that mates with this interface identifier are saved in presupposed information storehouse.
In the interface interchange device that the embodiment of the present invention describes, receive the interface interchange information that arbitrary browser kernel sends in multi-core browser, described interface interchange information comprises interface identifier required for invocation target interface and parameter; The parameter of carrying in docking port recalls information carries out format conversion, and the data type of the parameter after changing is the first default data type; The interface function corresponding according to the interface identifier invocation target interface that carries in the parameter after conversion and interface interchange information, thus the calling of the mouth that achieves a butt joint.Adopt the embodiment of the present invention, the efficiency of calling interface can be improved.
Understand the embodiment of the present invention for convenience, below for double-core browser, comprise Trident kernel and Chrome kernel, interface interchange method described in the invention is illustrated.But what deserves to be explained is, the present invention is not limited to lifted specific examples, every multi-core browser can implementing the inventive method all belongs to the scope of protection of the invention.
Refer to Fig. 5, Fig. 5 is the another structural representation of a kind of interface interchange device that the embodiment of the present invention provides.
In the embodiment of the present invention, during client script on this double-core browser execution webpage, Trident kernel or Chrome kernel receive the interface interchange instruction of client script, the parameter that in the instruction of acquisition interface interchange, entrained interface identifier and script import into, and the data type conversion of the parameter automatically imported into by script is the data type that kernel itself is supported, to interface interchange device transmission interface recalls information, wherein, interface interchange information comprises interface identifier required for invocation target interface and parameter, the data type of described parameter belongs to the data type of this browser kernel support.Such as: if Trident kernel receives the interface interchange instruction of client script, then the data type conversion data type of parameter that script imports into by Trident kernel is automatically the parameter of " DISPPARAMS* ", " VARIANT* " and " EXCEPINFO* "; If Chrome kernel receives the interface interchange instruction of client script, then the data type conversion data type of parameter that script imports into by Chrome kernel is automatically the parameter of " v8::FunctionCallbackInfo<v8::ValueGreatT.Gr eaT.GT ".Next, interface interchange device performs following steps.
If step one Trident kernel receives interface interchange instruction, the then interface interchange information that sends to Trident kernel of Trident kernel converter accepts, in Trident, parameter type in interface interchange information is " DISPPARAMS* " by nuclear converter, the Parameter Switch of " VARIANT* " and " EXCEPINFO* " is the parameter of the first default data type; If Chrome kernel receives interface interchange instruction, the then interface interchange information that sends to Chrome kernel of Chrome kernel converter accepts, in Chrome, the Parameter Switch that parameter type in interface interchange information is " v8::FunctionCallbackInfo<v8::ValueGreatT.Gr eaT.GT " is the parameter of the first default data type by nuclear converter, if the first data type is KeyValueMap type.Thus being no matter the interface interchange information that any browser kernel sends, can be all unified data type by its data type conversion by nuclear converter in different.Thus the data type belonging to the parameter that interface transponder receives is the first data type.
The interface identifier that step 2, interface transponder send according to nuclear converter in nuclear converter in Trident or Chrome, go in interface Register, to inquire about whether there is this interface identifier, if exist, then obtain the target interface function that this interface identifier is corresponding, and perform step 3.Interface Register in the embodiment of the present invention can be understood as above-mentioned presupposed information storehouse.
The parameter that nuclear converter in nuclear converter in Trident or Chrome sends is brought in accessed target interface function by step 3, interface transponder, realizes interface binding.
Step 4, operational objective interface function, thus according to the design parameter imported into, interface is accomplished.
In the interface interchange device that the embodiment of the present invention describes, receive the interface interchange information that arbitrary browser kernel sends in multi-core browser, described interface interchange information comprises interface identifier required for invocation target interface and parameter; The parameter of carrying in docking port recalls information carries out format conversion, and the data type of the parameter after changing is the first default data type; The interface function corresponding according to the interface identifier invocation target interface that carries in the parameter after conversion and interface interchange information, thus the calling of the mouth that achieves a butt joint.Adopt the embodiment of the present invention, the efficiency of calling interface can be improved.
Refer to Fig. 6, Fig. 6 is the structural representation of a kind of terminal that the embodiment of the present invention provides, and in embodiments of the present invention, terminal 10 comprises interface interchange device as above.Described terminal can be the mobile terminals such as computing machine, IPAD, mobile phone, and also can be other smart machine, concrete, the embodiment of the present invention impose any restrictions this.
What deserves to be explained is, terminal 10 comprises any one interface interchange device as above, for convenience of description, is described with wherein a kind of interface interchange device.Terminal receives the interface interchange information that arbitrary browser kernel sends in multi-core browser, and described interface interchange information comprises interface identifier required for invocation target interface and parameter, and the data type of described parameter belongs to the data type that this browser kernel is supported; Described parameter is carried out format conversion, and the data type of the parameter after changing is the first default data type; Using the parameter after described conversion as input parameter, call the target interface function that described interface identifier is corresponding.
In the terminal that the embodiment of the present invention describes, receive the interface interchange information that arbitrary browser kernel sends in multi-core browser, described interface interchange information comprises interface identifier required for invocation target interface and parameter; The parameter of carrying in docking port recalls information carries out format conversion, and the data type of the parameter after changing is the first default data type; The interface function corresponding according to the interface identifier invocation target interface that carries in the parameter after conversion and interface interchange information, thus the calling of the mouth that achieves a butt joint.Adopt the embodiment of the present invention, the efficiency of calling interface can be improved.
Refer to Fig. 7, Fig. 7 is a structural representation again of a kind of interface interchange device that the embodiment of the present invention provides, for performing interface interchange method disclosed in the embodiment of the present invention, this device can comprise: at least one processor 301, such as CPU, at least one network interface 304 or other user interfaces 303, storer 305, at least one communication bus 302.Communication bus 302 is for realizing the connection communication between these assemblies.Wherein, user interface 303 optionally can comprise USB interface and other standards interface, wireline interface.Network interface 304 optionally can comprise Wi-Fi interface and other wave points.Storer 305 may comprise high-speed RAM storer, still may comprise non-labile storer (non-volatile memory), such as at least one magnetic disk memory.Storer 305 optionally can comprise at least one and be positioned at memory storage away from aforementioned processor 301.As shown in Figure 7, operating system 3051 and application program 3052 can be comprised as in a kind of storer 305 of computer-readable storage medium.
In some embodiments, storer 305 stores following element, executable module or data structure, or their subset, or their superset:
Operating system 3051, comprises various system program, for realizing various basic business and processing hardware based task;
Application program 3052, comprise the various application program such as the comparison program of data block and the delete program of target data block in the setting program of the deblocking parameter of objective network data, the partition program of target data block, target data block and database, for realizing various applied business.
Particularly, processor 301, for calling the program stored in storer 305, performs following operation:
Receive the interface interchange information that arbitrary browser kernel sends in multi-core browser, described interface interchange information comprises interface identifier required for invocation target interface and parameter, and the data type of described parameter belongs to the data type that this browser kernel is supported;
Described parameter is carried out format conversion, and the data type of the parameter after changing is the first default data type;
Using the parameter after described conversion as input parameter, call the target interface function that described interface identifier is corresponding.
In another kind of embodiment, processor 301 perform described using the parameter after described conversion as input parameter, after calling the operation of target interface function corresponding to described interface identifier, also perform following operation:
Obtain the output parameter returned after calling described target interface function, the data type of described output parameter is the second default data type;
Described output parameter is carried out format conversion, and the data type of the output parameter after conversion belongs to the data type of the browser kernel support sending described interface interchange information;
The output parameter after described conversion is returned to this browser kernel.
In another kind of embodiment, processor 301 perform described using the parameter after described conversion as input parameter, before calling the operation of target interface function corresponding to described interface identifier, also perform following operation:
According to described interface identifier, whether inquiry exists the target interface function mated with described interface identifier in presupposed information storehouse;
If so, perform the parameter after using described conversion as input parameter, call the operation of target interface function corresponding to described interface identifier.
In another kind of embodiment, processor 301 performs described according to described interface identifier, after whether there is the operation of the target interface function mated with described interface identifier, also performs following operation in inquiry presupposed information storehouse:
If not, default error message is returned to the browser kernel sending described interface interchange information.
As the optional embodiment of one, described first data type comprises KeyValueMap type, and described second data type comprises Value type.
In the technical scheme that the embodiment of the present invention describes, receive the interface interchange information that arbitrary browser kernel sends in multi-core browser, described interface interchange information comprises interface identifier required for invocation target interface and parameter; The parameter of carrying in docking port recalls information carries out format conversion, and the data type of the parameter after changing is the first default data type; The interface function corresponding according to the interface identifier invocation target interface that carries in the parameter after conversion and interface interchange information, thus the calling of the mouth that achieves a butt joint.Adopt the embodiment of the present invention, the efficiency of calling interface can be improved.
In the description of this instructions, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, not necessarily must for identical embodiment or example to the schematic representation of above-mentioned term.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this instructions or example and different embodiment or example can carry out combining and combining by those skilled in the art.
The feature of the different embodiment described in this instructions and different embodiment can carry out combining and combining by those skilled in the art.Module in all embodiments of the present invention or unit, universal integrated circuit can be passed through, such as CPU (Central Processing Unit, central processing unit), or realized by ASIC (Application Specific Integrated Circuit, special IC).
Step in all embodiment methods of the present invention can be carried out order according to actual needs and be adjusted, merges and delete; Module in all embodiment device of the present invention or unit can carry out merging, divide and deleting according to actual needs.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.
Above disclosedly be only preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (11)

1. an interface interchange method, is characterized in that, comprising:
Receive the interface interchange information that arbitrary browser kernel sends in multi-core browser, described interface interchange information comprises interface identifier required for invocation target interface and parameter, and the data type of described parameter belongs to the data type that this browser kernel is supported;
Described parameter is carried out format conversion, and the data type of the parameter after changing is the first default data type;
Using the parameter after described conversion as input parameter, call the target interface function that described interface identifier is corresponding.
2. the method for claim 1, is characterized in that, described using the parameter after described conversion as input parameter, after calling target interface function corresponding to described interface identifier, described method also comprises:
Obtain the output parameter returned after calling described target interface function, the data type of described output parameter is the second default data type;
Described output parameter is carried out format conversion, and the data type of the output parameter after conversion belongs to the data type of the browser kernel support sending described interface interchange information;
The output parameter after described conversion is returned to this browser kernel.
3. method as claimed in claim 1 or 2, is characterized in that, described using the parameter after described conversion as input parameter, before calling target interface function corresponding to described interface identifier, described method also comprises:
According to described interface identifier, whether inquiry exists the target interface function mated with described interface identifier in presupposed information storehouse;
If so, perform the parameter after using described conversion as input parameter, call the step of target interface function corresponding to described interface identifier.
4. method as claimed in claim 3, is characterized in that, described according to described interface identifier, and after whether there is the target interface function mated with described interface identifier in inquiry presupposed information storehouse, described method also comprises:
If not, default error message is returned to the browser kernel sending described interface interchange information.
5. method as claimed in claim 2, it is characterized in that, described first data type comprises KeyValueMap type, and described second data type comprises Value type.
6. an interface interchange device, is characterized in that, comprising:
Receiver module, for receiving the interface interchange information that in multi-core browser, arbitrary browser kernel sends, described interface interchange information comprises interface identifier required for invocation target interface and parameter, and the data type of described parameter belongs to the data type that this browser kernel is supported;
First modular converter, for described parameter is carried out format conversion, the data type of the parameter after changing is the first default data type;
Calling module, for using the parameter after described conversion as input parameter, call the target interface function that described interface identifier is corresponding.
7. device as claimed in claim 6, it is characterized in that, described device also comprises:
Acquisition module, for obtain call described interface function after the output parameter that returns, the data type of described output parameter is the second default data type;
Second modular converter, for described output parameter is carried out format conversion, the data type of the output parameter after conversion belongs to the data type of the browser kernel support sending described interface interchange information;
Sending module, for returning the output parameter after described conversion to this browser kernel.
8. device as claimed in claims 6 or 7, it is characterized in that, described device also comprises:
Enquiry module, for according to described interface identifier, inquires about in presupposed information storehouse whether there is the target interface function mated with described interface identifier;
Described calling module, if for there is the target interface function mated with described interface identifier in described presupposed information storehouse, using the parameter after described conversion as input parameter, call the target interface function that described interface identifier is corresponding.
9. device as claimed in claim 7, is characterized in that, described sending module also for:
If there is not the target interface function mated with described interface identifier in described presupposed information storehouse, return default error message to the browser kernel sending described interface interchange information.
10. device as claimed in claim 7, it is characterized in that, described first data type comprises KeyValueMap type, and described second data type comprises Value type.
11. 1 kinds of terminals, is characterized in that, comprise the device as described in any one of claim 6-10.
CN201410534517.9A 2014-10-11 2014-10-11 Interface calling method and device and terminal Pending CN104281455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410534517.9A CN104281455A (en) 2014-10-11 2014-10-11 Interface calling method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410534517.9A CN104281455A (en) 2014-10-11 2014-10-11 Interface calling method and device and terminal

Publications (1)

Publication Number Publication Date
CN104281455A true CN104281455A (en) 2015-01-14

Family

ID=52256362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410534517.9A Pending CN104281455A (en) 2014-10-11 2014-10-11 Interface calling method and device and terminal

Country Status (1)

Country Link
CN (1) CN104281455A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866383A (en) * 2015-05-29 2015-08-26 北京金山安全软件有限公司 Interface calling method and device and terminal
CN104881318A (en) * 2015-05-07 2015-09-02 北京金山安全软件有限公司 Interface calling method and device and terminal
CN105389222A (en) * 2015-12-15 2016-03-09 中国科学院声学研究所 Method, apparatus and system for dynamically calling native interface
CN105913265A (en) * 2016-05-05 2016-08-31 北京信安世纪科技有限公司 Transaction method
CN106250248A (en) * 2016-07-28 2016-12-21 努比亚技术有限公司 A kind of to returning the method and apparatus that data carry out type conversion
CN106407111A (en) * 2016-09-07 2017-02-15 努比亚技术有限公司 Terminal test apparatus, terminal test device and variable maintenance method
CN106569789A (en) * 2015-10-13 2017-04-19 北京国双科技有限公司 Task submission method and apparatus
CN109460306A (en) * 2018-10-09 2019-03-12 航天信息股份有限公司 A kind of integrated services integration cut-in method and system
CN109683878A (en) * 2018-12-26 2019-04-26 苏州浪潮智能软件有限公司 A kind of implementation method for Web system exploitation adapter assembly
CN109684106A (en) * 2018-12-24 2019-04-26 国网江苏省电力有限公司 A method of supporting more mobile browser engine load operatings
CN109766148A (en) * 2017-11-08 2019-05-17 北京京东尚科信息技术有限公司 Method and apparatus for Processing Interface method call
CN110069248A (en) * 2019-03-16 2019-07-30 平安城市建设科技(深圳)有限公司 Call method, device, equipment and the computer readable storage medium of interface data
CN112101949A (en) * 2020-09-18 2020-12-18 支付宝(杭州)信息技术有限公司 Safe service request processing method and device
CN110780929B (en) * 2019-09-18 2024-05-03 华为技术有限公司 Method for calling hardware interface and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176834A (en) * 2011-12-26 2013-06-26 腾讯科技(深圳)有限公司 Method and device for calling expansion interface
CN103197972A (en) * 2013-04-28 2013-07-10 北京奇虎科技有限公司 Method and device for browser plugin management, browser and plugin interactive system
CN103593370A (en) * 2012-08-16 2014-02-19 腾讯科技(深圳)有限公司 Browsers and method for implementing expanded applications in browsers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176834A (en) * 2011-12-26 2013-06-26 腾讯科技(深圳)有限公司 Method and device for calling expansion interface
CN103593370A (en) * 2012-08-16 2014-02-19 腾讯科技(深圳)有限公司 Browsers and method for implementing expanded applications in browsers
CN103197972A (en) * 2013-04-28 2013-07-10 北京奇虎科技有限公司 Method and device for browser plugin management, browser and plugin interactive system

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016177341A1 (en) * 2015-05-07 2016-11-10 北京金山安全软件有限公司 Interface calling method and device, and terminal
CN104881318A (en) * 2015-05-07 2015-09-02 北京金山安全软件有限公司 Interface calling method and device and terminal
CN104881318B (en) * 2015-05-07 2019-06-25 珠海豹趣科技有限公司 A kind of interface call method, device and terminal
WO2016192556A1 (en) * 2015-05-29 2016-12-08 北京金山安全软件有限公司 Interface invoking method, device and terminal
CN104866383A (en) * 2015-05-29 2015-08-26 北京金山安全软件有限公司 Interface calling method and device and terminal
CN104866383B (en) * 2015-05-29 2018-11-23 北京金山安全软件有限公司 Interface calling method and device and terminal
CN106569789A (en) * 2015-10-13 2017-04-19 北京国双科技有限公司 Task submission method and apparatus
CN105389222B (en) * 2015-12-15 2018-12-21 中国科学院声学研究所 A kind of methods, devices and systems of dynamic call native interface
CN105389222A (en) * 2015-12-15 2016-03-09 中国科学院声学研究所 Method, apparatus and system for dynamically calling native interface
CN105913265A (en) * 2016-05-05 2016-08-31 北京信安世纪科技有限公司 Transaction method
CN106250248A (en) * 2016-07-28 2016-12-21 努比亚技术有限公司 A kind of to returning the method and apparatus that data carry out type conversion
CN106407111A (en) * 2016-09-07 2017-02-15 努比亚技术有限公司 Terminal test apparatus, terminal test device and variable maintenance method
CN109766148B (en) * 2017-11-08 2021-12-31 北京京东尚科信息技术有限公司 Method and apparatus for processing interface method calls
CN109766148A (en) * 2017-11-08 2019-05-17 北京京东尚科信息技术有限公司 Method and apparatus for Processing Interface method call
CN109460306A (en) * 2018-10-09 2019-03-12 航天信息股份有限公司 A kind of integrated services integration cut-in method and system
CN109684106A (en) * 2018-12-24 2019-04-26 国网江苏省电力有限公司 A method of supporting more mobile browser engine load operatings
CN109683878A (en) * 2018-12-26 2019-04-26 苏州浪潮智能软件有限公司 A kind of implementation method for Web system exploitation adapter assembly
CN110069248A (en) * 2019-03-16 2019-07-30 平安城市建设科技(深圳)有限公司 Call method, device, equipment and the computer readable storage medium of interface data
CN110780929B (en) * 2019-09-18 2024-05-03 华为技术有限公司 Method for calling hardware interface and electronic equipment
CN112101949A (en) * 2020-09-18 2020-12-18 支付宝(杭州)信息技术有限公司 Safe service request processing method and device

Similar Documents

Publication Publication Date Title
CN104281455A (en) Interface calling method and device and terminal
CN104866383A (en) Interface calling method and device and terminal
CN109325195B (en) Rendering method and system for browser, computer device and computer storage medium
CN108156022B (en) Service calling method and device and electronic equipment
CN107070858B (en) Service processing method and device
CN104881318B (en) A kind of interface call method, device and terminal
CN102567516B (en) Script loading method and device
CN109445835A (en) Method, terminal device and the computer readable storage medium of building project frame
CN106648556B (en) Method and device for front-end and back-end integrated development test
CN105095423B (en) Enumeration data wiring method and device
CN102207873B (en) Realizing method of JavaScript extended object based on Android platform, and binding interface structure
CN105488125A (en) Page access method and apparatus
CN102135895B (en) System upgrading method and system
CN109800370A (en) Display methods, device, computer equipment and the storage medium of Webpage
CN105320662B (en) Webpage generating method and device
CN104050001A (en) Resource processing method, device and equipment based on Android system
CN104702299A (en) GNSS receiver accessed and configured by use of webpages
CN103164409A (en) Network advertisement show type post test method and network advertisement show type post test system
CN112084446A (en) Webpage editing method, editor, electronic equipment and readable storage medium
CN106933560A (en) A kind of automatic coding and device
CN111666520A (en) Method and device for generating electronic form based on form image
CN102236673B (en) AJAX (Asynchronous JavaScript and XML)-based resource multi-page distribution method
CN111736776A (en) Data storage and reading method and device
CN110737850A (en) chart generation method and device
CN102184112B (en) Method and device for upgrading widget

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150114

RJ01 Rejection of invention patent application after publication