1. datetime转换成timestamp strdate = "2015-08-09 08:01:36:"; var d = new Date(strdate); var timestamp=Math.round(d.getTime()); document.write("timestamp: "+timestamp+"<br>"); 输出: timestamp: 1439078496789 其它方法: var timesta…
一.数组转字符串 需要将数组元素用某个字符连接成字符串,示例代码如下 <!doctype html> <html> <head> <meta charset="utf-8"> <title>数组转化为字符串</title> </head> <body> <script type="text/javascript"> var a, b,c; a = new Ar…