MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Specifikace Strana 463

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 504
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 462
The C-level API 463
Arguments
JSContext *cx, jsval v, long *lp
The cx argument is the opaque JSContext pointer that passes to the JavaScript function.
The v argument is the jsval structure from which the integer is to be extracted.
The lp argument is a pointer to a 4-byte integer. This function stores the converted value
in
*lp.
Returns
A Boolean value: JS_TRUE indicates success; JS_FALSE indicates failure.
JSBool JS_ValueToDouble()
Description
This function extracts a function argument from a jsval structure, converts it to a double (if
possible), and passes the converted value back to the caller.
Arguments
JSContext *cx, jsval v, double *dp
The cx argument is the opaque JSContext pointer that passed to the JavaScript function.
The v argument is the jsval structure from which the double is to be extracted.
The dp argument is a pointer to an 8-byte double. This function stores the converted
value in
*dp.
Returns
A Boolean value: JS_TRUE indicates success; JS_FALSE indicates failure.
JSBool JS_ValueToBoolean()
Description
This function extracts a function argument from a jsval structure, converts it to a Boolean
value (if possible), and passes the converted value back to the caller.
Arguments
JSContext *cx, jsval v, JSBool *bp
The cx argument is the opaque JSContext pointer that passes to the JavaScript function.
The v argument is the jsval structure from which the Boolean value is to be extracted.
Zobrazit stránku 462
1 2 ... 458 459 460 461 462 463 464 465 466 467 468 ... 503 504

Komentáře k této Příručce

Žádné komentáře