📄 多进制转换器.txt
字号:
第一步:把如下代码加入到<head>区域中
<script>
<!-- Begin
function toBin(form) {
base = parseInt(form.base.value);
num = parseInt(form.num.value);
form.amount.value = num.toString(base);
}
// End -->
</script>
第二步:把如下代码加入到<body>区域中
<form name=numform>
<center>
要转换的数
<input type=text name=num size=8>
转换的进制数
<input type=text name=base size=8 value=2 onBlur="if ((this.value<1)||(this.value>36)){alert('The base must be between 2 and 36.');this.select();this.focus();}">
<input type=button value="转换" onclick="toBin(this.form)">
<input type=text name=amount size=15>
</center>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -