Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Creates a new JavaScript function.
Syntax
STDAPI_(JsErrorCode) JsCreateFunction(
_In_ JsNativeFunction nativeFunction,
_In_opt_ void *callbackState,
_Out_ JsValueRef *function
);
Parameters
nativeFunction
The method to call when the function is invoked.
callbackState
User-provided state that will be passed back to the callback.
function
The new function object.
Return Value
The result of the call, if any.
Remarks
Requires an active script context.
Requirements
Header: jsrt.h