Fill criptbold () to bold the font

Source: Internet
Author: User
In html, we can use the strong label or B label to bold the font. In js, we can use the bold () method to bold the font. This article describes how to use the jsbold method. For more information about the coders, see. Bold Method

The bold method adds HTMLMark the two ends of the text placed in the String object.

StrVariable. bold ()

The required strVariable parameter can be any String object or text.

Instance

The following example illustrates how the bold method works:

Var strVariable = "This is a string object"; strVariable = strVariable. bold ();

Online operation

After the last statement is executed, the value of strVariable is:

This is a string object

The bold method does not check whether the flag has been applied to the string.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.