1.输入一个字符判断是否是大写,是转换为小写
2.程序
<script>
var t;
t='B';
t1=t.charCodeAt();
t2=t1+32;
t3=String.fromCharCode(t2);
t=t>="A"&&t<="Z"?(t3):t;
document.write(t);
</script>
<script>
var t;
t='B';
t1=t.charCodeAt();
t2=t1+32;
t3=String.fromCharCode(t2);
t=t>="A"&&t<="Z"?(t3):t;
document.write(t);
</script>