js4——字符转化

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>字符转化</title>

</head>
<body>
<input type="text" id="out" >


<script>
var input=prompt('输入输出内容');
var input1=input.trim();
alert(input1);
document.getElementById(out).innerText=function () {
input1.trim()
}
</script>
</body>
</html>

 

 

 

 

posted @ 2019-11-30 18:02  菜鸟不忘初心  阅读(280)  评论(0编辑  收藏  举报