老师,我突然想到有js把body中的某些字改为大写的,为什么这样子不行呢
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>string对象 </title>
<script type="text/javascript">
var message=document.getElementById("ss").value;
var mychar=message.toLowerCase() ;
document.write("字符串为:"+mychar+"<br>");
</script>
</head>
<body>
<span id="ss">I love JavaScript!</span>
</body>
</html>