- 小写:toLowerCase()
- 大写:toUpperCase()
示例代码:
<script type="text/javascript" language="javascript">
var str = "acBd";
alert(str.toLowerCase()); // = alert("acbd");
alert(str.toUpperCase()); // = alert("ACBD");
</script>
示例代码:
<script type="text/javascript" language="javascript">
var str = "acBd";
alert(str.toLowerCase()); // = alert("acbd");
alert(str.toUpperCase()); // = alert("ACBD");
</script>