js 仿 asp中的 asc 和 chr 函數的代碼

<script type="text/javascript">
var str;
var asc;

str = "A";
document.write(str.charCodeAt(0));
asc = 65;
document.write(String.fromCharCode(asc));
</script>javascript

相關文章
相關標籤/搜索