//js反转字符串
var strE = "8859885-沪A";
var strB = "";
for (var i = strE.length; i>=0;i--)
{
strB =strB+strE.charAt(i);
}
alert(strB);
弹出结果:A沪-5889588
时间: 2024-10-03 07:31:13
//js反转字符串
var strE = "8859885-沪A";
var strB = "";
for (var i = strE.length; i>=0;i--)
{
strB =strB+strE.charAt(i);
}
alert(strB);
弹出结果:A沪-5889588