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.
Runs a serialized script.
Syntax
STDAPI_(JsErrorCode) JsRunSerializedScript(
_In_z_ const wchar_t *script,
_In_ BYTE *buffer,
_In_ JsSourceContext sourceContext,
_In_z_ const wchar_t *sourceUrl,
_Out_ JsValueRef *result
);
Parameters
script
The source code of the serialized script.
buffer
The serialized script.
sourceContext
A cookie identifying the script that can be used by debuggable script contexts.
sourceUrl
The location the script came from.
result
The result of running the script, if any. This parameter can be null.
Return Value
The code JsNoError if the operation succeeded, a failure code otherwise.
Remarks
Requires an active script context.
The buffer is not persisted in memory by the scripting engine, so your code must keep it alive for as long as it might be used to execute scripts.
Requirements
Header: jsrt.h