JS
極鬥飛星
lorem
展开
-
JS获取前一个月时间
找了很久没找到,干脆自己写一个。有问题的邮件联系我 785428657@qq.com function getPreMonthDate() { let times = new Date(); let Y = times.getFullYear(); let M = times.getMonth() + 1; let D = times.getDate(); let MD = ...原创 2018-05-19 00:11:51 · 1517 阅读 · 0 评论 -
js获取上一个月所有天数
有问题的邮件联系我 785428657@qq.com function getPreMonthDate() { let times = new Date(); let Y = times.getFullYear(); let M = times.getMonth(); let dateArr = []; if (M == 1 || M == 3 || M == 5 || M ...原创 2018-05-24 20:27:57 · 1929 阅读 · 0 评论 -
图片预览
图片预览(基于jQery开发) <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script src="../js/jQuery1.原创 2018-11-12 09:32:49 · 118 阅读 · 0 评论 -
input file 获取上传图片大小
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> </head> <body> <input id="file" type="file" multiple onch原创 2018-11-12 09:34:12 · 3711 阅读 · 1 评论 -
table 头部固定_内容溢出滚动
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> table{ text-al原创 2018-11-12 09:53:23 · 756 阅读 · 0 评论 -
把url上的查询条件转为Object对象
function url2obj(url) { var obj = {}; if(url) { url = url.replace(/#[^#]*$/, ""); var index = url.indexOf("?"); if(index != -1) { var queryStr = url.substr(index + 1); var marchResult =...转载 2018-11-12 09:58:20 · 745 阅读 · 0 评论 -
IE中打开chrome
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>index</title> <style type="text/css"> .btn{ padding: 8px 18px; border-radius: 6px;转载 2018-11-12 10:01:18 · 2921 阅读 · 0 评论