javascript中split和整数字符串互转的用法。。。

    技术2022-05-11  171

    <script >function evil(){

    var toint=parseInt("123");

    var intvalue=123;

    var tostr=intvalue.toString();

    var my_friends ="trixie,moxie,sven,guido,hermes";var friend_array =my_friends.split(",");for (loop=0; loop < friend_array.length;loop++){ document.writeln(friend_array[loop] + " is myfriend.<br>");}}</script>


    最新回复(0)