摘要:
移动端页面的下拉刷新,用到jquery和layui的弹窗,layui的下拉刷新配合上条件筛选有点难搞,所以没有用,原生js写的,有用到的话可以采纳 html部分: <div class="seo_Box"> <input class="case_search" type="text" placeho 阅读全文
摘要:
子元素点击事件中添加阻止冒泡事件的方法:在点击子元素的时候不会触发父元素的事件 //点击子元素跳转页面 $('.ziDom').bind("click", function () { stopPropagation() }); // 阻止冒泡 function stopPropagation(e) 阅读全文
摘要:
时间格式化整理备忘: function dateFormat(fmt, date) { let ret; let opt = { "Y+": date.getFullYear().toString(), // 年 "m+": (date.getMonth() + 1).toString(), // 阅读全文