Js中字符转换大小写

字符转换大写:

<script type="text/javascript">

    var str="Hello world!";

    document.write(str.toUpperCase());

</script>

字符转换小写:

<script type="text/javascript">

    var str="Hello world!";

    document.write(str.toLowCase());

</script>

国泰民安
原文地址:https://www.cnblogs.com/jirglt/p/2543381.html