摘要: document.getElementById("id").oncontextmenu = (function () { return function (e) { e.preventDefault(); }; })(); document.onmousedown = function () { i 阅读全文
posted @ 2019-08-01 17:45 笑兮兮 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 去掉~ 阅读全文
posted @ 2019-08-01 17:43 笑兮兮 阅读(727) 评论(0) 推荐(0) 编辑
摘要: 转数字转数字必须 调用:formatTime(Number(time), 'Y-M-D h:m:s') // 格式化日期,如月、日、时、分、秒保证为2位数 function formatNumber(n) { n = n.toString() return n[1] ? n : '0' + n; } 阅读全文
posted @ 2019-08-01 17:42 笑兮兮 阅读(113) 评论(0) 推荐(0) 编辑