p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neue"; color: #e4af0a }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px ".PingFang SC"; color: #454545 }
p.p3 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neue"; color: #454545 }
p.p4 { margin: 0.0px 0.0px 2.0px 0.0px; font: 14.0px "Helvetica Neue"; color: #454545 }
p.p5 { margin: 0.0px 0.0px 2.0px 0.0px; font: 14.0px "Helvetica Neue"; color: #454545; min-height: 17.0px }
span.s1 { text-decoration: underline }
span.s2 { font: 12.0px ".PingFang SC" }
span.s3 { font: 12.0px "Helvetica Neue" }
http://www.cnblogs.com/jiangyi666/p/5991324.html
http://blog.csdn.net/xuewuzhijing10/article/details/8766349
字符串变数组
方法1.通过该split
方法2.通过数组的map方法
"use strict";
var a = "23456";
var b = Array.prototype.map.call(a,function(a){return a;}).reverse().join();
console.log(b);
map方法还可以通过:
var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9];
arr.map(String); // [‘1‘, ‘2‘, ‘3‘, ‘4‘, ‘5‘, ‘6‘, ‘7‘, ‘8‘, ‘9‘]
方法3:
var string="afasfasf";
var obj="string".replace(/(.)(?=[^$])/g,"$1,").split(","); //字符串转化为数组
方法4:
var obj2 = string.split(""); //字符串转化为数组
============================== ============================== ==============================
数组转字符串
arrayObj.join(separator); //返回字符串,这个字符串将数组的每一个元素值连接在一起,中间用 separator 隔开。
toLocaleString 、toString 、valueOf:可以看作是join的特殊用法,不常用