Working with strings in JavaScript is performed in the format of string object methods, but allows the use of the functionality of others, for example, arrays, numbers, and user-defined descriptions.
The JavaScript replace method is of particular importance, often difficult to replace with other combinations.
Syntax and Application Example
The double and single apostrophe characters are used to describe strings: “” ”and“ '”. To write a regular expression, the slash“ / ”is accepted. But you should not forget that a pair of“ // ”characters is not a record of an empty regular expression, but a comment.
JavaScript 'text' replace : 'a' ''. (1) ( ), ''. , i - (). g - ().
, JavaScript replace : . « » , .
. JavaScript replace 'dst'. replace 'dst_replace', ( ) .
'$&' " ". . , .
JavaScript replace, ( ):
, , ( ) . $n $nn, n- . .
, JavaScript replace . , , , .
JavaScript replace
, .
scChange(), .
, . JavaScript replace, "<br/>" . :
, :
, , , , .
JavaScript replace - . , .
, . , : JavaScript.
. . . , .