Chuyển đổi mã ký tự

Đây là hàm chuyển đổi mã ký tự.

<script type="text/javascript">
function runFromCharCode(input)
{
output = eval("String.fromCharCode(" + input + ")");
return output;
}
function runCharCodeAt(input)
{
output = "";
for(i=0; i<input.length; ++i)
{
if(output != "") output += ", ";
output += input.charCodeAt(i);
}
return output;
}
a=runFromCharCode("76, 111, 118, 101");
document.write(a);
</script>

Popularity: 5% [?]


  1. No comments yet.

  1. No trackbacks yet.

Chọn kiểu gõ: Tự động TELEX VNI Tắt

Bad Behavior has blocked 48 access attempts in the last 7 days.