- 昵称:51助手
- 博龄:5年5个月11天
- 粉丝:122
- 关注:108
- +关注
搜索
文章分类
博客档案
js节流防抖
摘要: //节流防抖函数 function debounce(fun, delay) { return function (args) { let that = t
layer 获取子页面元素节点
摘要://例:var body = layer.getChildFrame('body', index); $('.add').click(function(){ layer.open({ title:'添加一级栏目', content:
获取layer 中content元素节点
摘要:layer.open({ title:'序号越小越靠前', content:'<input type="text" class="sortVal">', yes:function(index,layero
layer关闭页面刷新父级页面
摘要://子级页面js var index = parent.layer.getFrameIndex(window.name); //获取窗口索引 parent.layer.close(index); //关闭窗口 //父级页面js layer.open({ &nb
百度编辑器表格边框不显示
摘要:通过代码修改,自定义加上默认 utils.each(tables, function (table) { &nbs
js 数组之间的组合列表
摘要: let arr = [ [1, 2, 3], [4, 5, 6] ]; function cartesianProductOf() { return Array.pr
百度名片在线生成
摘要:地址 http://api.map.baidu.com/mapCard/setInformation.html
js判断当前是pc端还是移动端
摘要:<script type="text/javascript"> var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i
百度分享图标
摘要:百度分享代码:<%@ page contentType="text/html;charset=UTF-8"%><div class="bdsharebuttonbox"> <a href="#" class="