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