Variable types: string, number, Boolean, array, function
Numeric: arithmetic operators to add a space before and after the =: assignment; == equal;! =: Not equal
It does not support floating-point division
Double brackets can be reassigned
a=2
a=2
a ++, etc. 价于 a = a + 1
Relational operators: Only numbers does not support the string until the string of digital values
-ne // not equal -gt // greater than (greater) -lt // less than (less) -ge // -le // less than or equal to
Boolean operators: (!) A non-operation or operation (-o), and operation (-a)
0=true, 非0=False
The logical operators: && ||
String operators =: equal! =: Not equal
String interception
Tsuhaifu *
(The first character on the left is represented by 0, the first character on the right is represented by 0-1)
// delete the first to start a number of left and all the characters from the left
www.aaa.com/123.htm.
% / * Indicates starting from the right, first delete the character / number and the right
http://www.aaa.com
The number from the left of the first few characters, and characters
0 means the left side of the first character, 5 represents the total number of characters in the result is: http:
The first few characters from the left, until the end
7 which represents the left of the first eight characters beginning until the end. www.aaa.com/123.htm
The number of starts to the right of the first few characters, and characters
23.
The first few characters from the right beginning until the end.
Removing a letter previous data (including the letters themselves)
Greedy match?
To tail
String replacement