Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JsCreateFunction

Limin Zhu edited this pageOct 9, 2015 ·1 revision

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 codeJsNoError if the operation succeeded, a failure code otherwise.

Remarks

Requires an active script context.

Want to contribute to this Wiki?

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp