js built-in properties

var str = "abcd";

document.write (str.length); // Text Length

Fixed (); fixed string highlighted.

fontSize (5); text size is set character string.

fontColor (color); set a color string.

the toLowerCase (); all lowercase string.

toUpperCase (); string all uppercase.

Italics (); italics.

Bold (); bold.

Small (); small display.

indexOf (): determine the position of the first occurrence of the string.

subString (0,5); string interception. 

split (specific string): string segmentation.

 

Guess you like

Origin www.cnblogs.com/Hugy123/p/11604713.html