Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
Parses a script and returns a function representing the script.
Syntax
STDAPI_(JsErrorCode) JsParseScript(
_In_z_ const wchar_t *script,
_In_ JsSourceContext sourceContext,
_In_z_ const wchar_t *sourceUrl,
_Out_ JsValueRef *result
);
Parameters
script
The script to parse.
sourceContext
A cookie identifying the script that can be used by debuggable script contexts.
sourceUrl
The location the script came from.
result
A function representing the script code.
Return Value
The code JsNoError if the operation succeeded, a failure code otherwise.
Remarks
Requires an active script context.
Requirements
Header: jsrt.h