2018年3月23日

时间戳的处理

摘要: 1.获取时间戳 var timestamp=new Date().getTime(); 2.转时间戳 nian='';yue='';ri='';shi='';fen='';miao='';Date.prototype.toLocaleString = function() {if(this.getF 阅读全文

posted @ 2018-03-23 11:34 Just丶随心 阅读(320) 评论(0) 推荐(0) 编辑

图片转base64上传,视频同理。

摘要: body: <input type="file" id="img" type="file" onchange="up()" style="width: 100%;height: 100%;position:absolute ;top: 0;left:0;opacity: 0;"> js: imgDa 阅读全文

posted @ 2018-03-23 10:54 Just丶随心 阅读(327) 评论(0) 推荐(0) 编辑

导航