using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace 垃圾1 { public partial class Form1 : Form { public Form1()…
arr.join(): 数组转字符串 let arr = [1,2,3,4]; let str = arr.join(','); arr.split():字符串转数组 let str = '1,2,3,4'; let arr = str.split(','); JSON.parse():从一个字符串解析成json对象 let data = '{"name":"Liudongdong"}' JSON.parse(data); JSON.stringify():把一个J…
一.数组转字符串(将数组元素用某个字符连接成字符串) var a, b;a = new Array(0,1,2,3,4);b = a.join("-"); 二.字符串转数组(将字符串按某个字符切割成若干个字符串,并以数组形式返回) var s = "abc,abcd,aaa";ss = s.split(",");// 在每个逗号(,)处进行分解…