str = "JavaScript"; str1 = str.toLowerCase(); str2 = str.toUpperCase(); document.write("str=" + str + "<br>"); document.write("小写:" + str1 + "<br>"); document.write("大写:" + str2 + "<br>");