摘要: function debounce(fn,delay){ var time = null; return function(){ var context = this; var args = argument; clearTimeout(time); time = setTimeout(functi 阅读全文
posted @ 2018-03-15 11:06 Y-HJ 阅读(107) 评论(0) 推荐(0) 编辑
摘要: function pushHistory(){ var state = { title: "title", url: "#" } window.history.pushState(state, "title", "#"); } pushHistory(); function goBack(){ va 阅读全文
posted @ 2018-03-15 09:20 Y-HJ 阅读(320) 评论(0) 推荐(0) 编辑