欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

簡介JavaScript中toUpperCase()方法的使用

 更新時間:2015年06月06日 12:19:03   投稿:goldensun  
這篇文章主要介紹了JavaScript中的toUpperCase()方法的使用,是JS入門學習中的基礎(chǔ)知識,需要的朋友可以參考下

 該方法返回調(diào)用字符串值轉(zhuǎn)換為大寫。
語法

string.toUpperCase( )


下面是參數(shù)的詳細信息:

  •     NA

返回值:

  •     返回表示指定對象的字符串

例子:

<html>
<head>
<title>JavaScript String toUpperCase() Method</title>
</head>
<body>
<script type="text/javascript">

var str = "Apples are round, and Apples are Juicy.";

document.write(str.toUpperCase( ));
</script>
</body>
</html>


這將產(chǎn)生以下結(jié)果:

APPLES ARE ROUND, AND APPLES ARE JUICY.

相關(guān)文章

最新評論