1.js中将整数转换成字符串用toString();
2.js中将字符串转换成整数用parseInt();----parseInt("123");
3将单选按钮的某个值设成可编辑和不可编辑的
document.forms[0].FDzhongda[0].disabled=true;
document.forms[0].FDzhongda[1].disabled=false;
注:FDzhongda的单选按钮的name
2.js中将字符串转换成整数用parseInt();----parseInt("123");
3将单选按钮的某个值设成可编辑和不可编辑的
document.forms[0].FDzhongda[0].disabled=true;
document.forms[0].FDzhongda[1].disabled=false;
注:FDzhongda的单选按钮的name
本文介绍JavaScript中将整数转换为字符串的方法、将字符串转换为整数的方法,以及如何设置单选按钮的可编辑状态。通过示例代码演示了使用`toString()`、`parseInt()`和设置单选按钮的`disabled`属性的操作。
428

被折叠的 条评论
为什么被折叠?



