摘要:
document.getElementById("id").oncontextmenu = (function () { return function (e) { e.preventDefault(); }; })(); document.onmousedown = function () { i 阅读全文
摘要:
去掉~ 阅读全文
摘要:
转数字转数字必须 调用:formatTime(Number(time), 'Y-M-D h:m:s') // 格式化日期,如月、日、时、分、秒保证为2位数 function formatNumber(n) { n = n.toString() return n[1] ? n : '0' + n; } 阅读全文