守卫剑阁 物品代码 转换工具

news/2025/2/14 3:56:56/

数字转字符


字符转数字


<p>
<style>
.btn {font-family: "tahoma", "宋体";font-size:12pt; color: #003399;border: 1px #003399 solid;color:#006699;border-bottom: #93bee2 1px solid;border-left: #93bee2 1px solid;border-right: #93bee2 1px solid;border-top: #93bee2 1px solid;background-color: #e8f4ff;cursor: hand;font-style: normal ;width:auto;height:40px;float:left;
}.txt {font-family: "tahoma", "宋体";font-size:16pt; color: #003399;border: 1px #003399 solid;color:#006699;border-bottom: #93bee2 1px solid;border-left: #93bee2 1px solid;border-right: #93bee2 1px solid;border-top: #93bee2 1px solid;text-align: center;cursor: hand;font-style: normal ;width:auto;height:36px;float:left;
}</style><input id="1" class="txt" type="text" /> 
<button class="btn" οnclick="i2a()" type="button">数字转字符</button> 
<input id="2" class="txt" type="text" />
<br />
<br />
<br />
<input id="3" class="txt" type="text" /> 
<button class="btn" οnclick="a2i()" type="button">字符转数字</button> 
<input id="4" class="txt" type="text" />
<script>function i2a()
{//1919707494//726c6966//0x72 0x6c 0x69 ox66//r l i fvar txt1 = document.getElementById("1")var txt2 = document.getElementById("2")txt2.value =nullvar dif = new Array(0)var x = (parseInt(txt1.value)).toString(16)for(var i=0;i<x.length;i+=2){dif.push(parseInt(x.slice(i,i+2),16))}for (var i=0;i<dif.length;i++){//
        txt2.value += String.fromCharCode(dif[i]);}//console.log(dif)
}function a2i()
{//r l i f//0x72 0x6c 0x69 ox66//726c6966//1919707494var txt3 = document.getElementById("3")var txt4 = document.getElementById("4")txt4.value=nullvar dif = new Array(0)var x = txt3.valuevar y =""for(var i=0;i<x.length;i++){//
        dif.push((x[i].charCodeAt()).toString(16))}for(var i=0;i<dif.length;i++){//
        y += dif[i]}txt4.value = parseInt(y,16)
}
</script>
<br /><br /><br />
</p>
View Code

 

转载于:https://www.cnblogs.com/jhcla/p/6036752.html


http://www.ppmy.cn/news/496657.html

相关文章

java版mc哪个版本好玩_我的世界哪个版本好玩(我的世界各版本区别介绍)

永恒屹立不倒的1.7版本 “如果老玩家开始入坑的话&#xff0c;大部分是哪个版本呢&#xff1f;” “肯定是1.7版本了” 1.7版本是国服老玩家最多的版本&#xff0c;因为《我的世界》正是这个版本在国内火爆的。而《我的世界》1.7也是驻足更新时间最久了一个版本&#xff0c;距离…

传奇手游怎么开服需要投资多少?哪个版本好玩人最多?

很多朋友看过我发布的传奇pc端开服预算讲解以后&#xff0c;想了解手游版开服介绍&#xff0c;今天它来了。 手游和端游比较起来优势在于流量大&#xff0c;活跃性强&#xff0c;随时随地都可以拿手机登录游戏玩一会&#xff0c;打打怪&#xff0c;pk一场。劣势在与操作性&…

守卫剑阁1.8 修改版 ,完整了!

内涵图 魔兽3自制回城地图,可参考 主要代码如下: //输入"hh"回城功能 function Trig_goback_Func001001002 takes nothing returns booleanreturn ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true ) endfunction //=====================

P35[10-5]硬件IIC配置+读写MPU6050(软)(此处注意与软件iic区别)

接线图如下: 注:硬件读写iic的连接位置固定,可参考引脚定义表(如下) 声明:I2C1重映射时,有一次更换机会,但是此面包板由于OLED的该引脚无法接线,因此只能接在PB10 PB11的I2C2上 软件iic初始化部分:(此处即可替代掉整个软件iic.c初始化的底层) void MPU6050_Init(vo…

模板文件导出Excel【EasyPoi实战系列】- 第478篇

​历史文章&#xff08;文章累计470&#xff09; 《国内最全的Spring Boot系列之一》 《国内最全的Spring Boot系列之二》 《国内最全的Spring Boot系列之三》 《国内最全的Spring Boot系列之四》 《国内最全的Spring Boot系列之五》 《国内最全的Spring Boot系列之六》 …

使用径向基函数(RBF)神经网络对我们自己的excel数据进行分类---包括详细的python代码,RBFRegressor

文章目录 一、 径向基神经网络&#xff08;Radial Basis Function Neural Network&#xff09;是什么&#xff1f;二、径向基函数(RBF)神经网络对我们自己的excel数据进行分类---包括详细的python代码总结 一、 径向基神经网络&#xff08;Radial Basis Function Neural Networ…

Kubios HRV心率变异性分析软件

Kubios HRV是由东芬兰大学研究团队开发的一款心率变异性分析软件&#xff0c;目前在全球128个国家被1200所大学的科研人员使用。 PC端的Kubios HRV主要分免费版&#xff08;Standard&#xff09;和收费版&#xff08;Premium&#xff09;两个版本。 免费版仅支持RR间期时间序…