2017年10月20日

JS中数组的方法

摘要: 1.检测数组 :Array.isArray(); 2.转换方法 1.toLocaleString():创建一个由数组中的每个值的字符串拼接而成的一个以逗号分隔的字符串。为了取得每一项的值,调用的是每一项的toLocaleString()方法。 2.toString():返回一个由数组中的每个值的字符 阅读全文

posted @ 2017-10-20 23:40 shenhf 阅读(197) 评论(0) 推荐(0)

导航