<input type="text" id="content">
<input type="button" onclick="showMyheart()"/>
<script>
function showMyheart(){
var text = document.getElementById('content');
alert(text.value);
}
上面这段代码,如果填入unicode代码的话,还是alert unicode代码。。。求帮助,怎么改能转码
<input type="button" onclick="showMyheart()"/>
<script>
function showMyheart(){
var text = document.getElementById('content');
alert(text.value);
}
上面这段代码,如果填入unicode代码的话,还是alert unicode代码。。。求帮助,怎么改能转码