Script Function Perfomance Decription

<< Click to Display Table of Contents >>

Current:  Script > Commonly Used Script Function Reference List 

Script Function Perfomance Decription

Previous pageReturn to chapter overviewNext page

Currently, with respect to the processing of expressions, some of the expressions use the processing engine that comes with the product, and some of the expressions are handled using the js engine (jsEngine). An expression, which has both system-supported expressions and system-unsupported expressions, will still be parsed by the js engine (jsEngine).

 

When dealing with a large amount of data in the market, the efficiency of the expression processed by jsEngine is lower than that of the expression supported by the product itself. Therefore, in order to improve the processing efficiency of the expression, the range of the expression supported by the product is extended. , mainly in the product support for the expression to add support for the following functions, when the expression contains the following function, the product's own processing engine processing.

Function

Description

right

Returns the rightmost character in a text value

left

Returns the leftmost character in a text value

len

Returns the number of characters in the text string

replace

Replace the characters in the text

trim

Remove the spaces on both sides of the string

upper

Convert text to uppercase

lower

Convert text to lowercase

weekdayname

Returns the current date of the week

year

Returns the date of the year

month

The month of the return date

parseDate

Parse a string into dates

formatDate

Format the date as a string

position

Convert longitude and latitude to a long integer for storage

substring

Returns a new string that is a substring of this string

sqr

Square the data

sqrt

Returns the square root of the given data

abs

Returns the absolute value of the given data

indexOf

Returns the first occurrence of a specified string value in a string