Mini App Document Mini App Document
  • Start
  • Configuration
  • Framework
  • Custom Components
  • Basic ability
  • Configuration
  • Interface
  • FXML syntax
  • FXS syntax
API
Components
IDE
  • Developer
  • Operator
  • Start
  • Configuration
  • Framework
  • Custom Components
  • Basic ability
  • Configuration
  • Interface
  • FXML syntax
  • FXS syntax
API
Components
IDE
  • Developer
  • Operator
  • Configuration

  • Interface

  • FXML syntax

  • FXS syntax

    • Introduction to FXS
    • Module
    • Variable
    • Comment
    • operator
    • statement
    • Data type
    • Base class library
      • console
      • Math
        • property
        • method
      • JSON
        • method
        • sample code
      • Number
        • property
      • Date
        • property
      • Global
        • property
        • method
  • Framework
  • FXS syntax
2022-08-09
Directory

Base class library

# console

The 'console.log' method is used to output information in the console window. It can accept multiple parameters, concatenating their results for output.

# Math

# property

  • E
  • LN10
  • LN2
  • LOG2E
  • LOG10E
  • PI
  • SQRT1_2
  • SQRT2

Please refer to the 'ES5' standard for the specific use of the above properties.

# method

  • abs
  • acos
  • asin
  • atan
  • atan2
  • ceil
  • cos
  • exp
  • floor
  • log
  • max
  • min
  • pow
  • random
  • round
  • sin
  • sqrt
  • tan

# JSON

# method

  • 'stringify(object)': Converts the 'object' object to a 'JSON' string and returns the string.
  • 'parse(string)': Converts a 'JSON' string into an object and returns the object.

# sample code


console.log(undefined === JSON.stringify());
console.log(undefined === JSON.stringify(undefined));
console.log("null"===JSON.stringify(null));

console.log("111"===JSON.stringify(111));
console.log('"111"'===JSON.stringify("111"));
console.log("true"===JSON.stringify(true));
console.log(undefined===JSON.stringify(function(){}));


console.log(undefined===JSON.parse(JSON.stringify()));
console.log(undefined===JSON.parse(JSON.stringify(undefined)));
console.log(null===JSON.parse(JSON.stringify(null)));

console.log(111===JSON.parse(JSON.stringify(111)));
console.log("111"===JSON.parse(JSON.stringify("111")));
console.log(true===JSON.parse(JSON.stringify(true)));

console.log(undefined===JSON.parse(JSON.stringify(function(){})));

# Number

# property

  • MAX_VALUE
  • MIN_VALUE
  • NEGATIVE_INFINITY
  • POSITIVE_INFINITY

Please refer to the 'ES5' standard for the specific use of the above properties.

# Date

# property

  • parse
  • UTC
  • now

Please refer to the 'ES5' standard for the specific use of the above properties.

# Global

# property

  • NaN
  • Infinity
  • undefined

Please refer to the 'ES5' standard for the specific use of the above properties.

# method

  • parseInt
  • parseFloat
  • isNaN
  • isFinite
  • decodeURI
  • decodeURIComponent
  • encodeURI
  • encodeURIComponent

Please refer to the 'ES5' standard for the specific use of the above properties.

Last update: 2022/08/11, 20:42:12
Data type

← Data type

Copyright © 2020-2024 Neuxnet
  • Follow System
  • Light Mode
  • Dark Mode
  • Reading Mode