随笔分类 -  JS相关总结

摘要:html: <input type="file" name="files" id="btnfile"/> JS: $('input[type=file]').on("change", function () { var files = this.files[0]; var FileName = fi 阅读全文
posted @ 2018-09-21 16:51 萌萌哒Mo 阅读(5524) 评论(0) 推荐(0)
摘要://鼠标点击事件$(function () { document.onmousedown = function (event) { //清空数据 second = 0; }});//键盘的keydown事件$(function () { document.onkeydown = function ( 阅读全文
posted @ 2017-02-28 17:47 萌萌哒Mo 阅读(498) 评论(0) 推荐(0)