• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Mr Zhu
人生只是路过,不断折腾就是生活 ----- 大乐
博客园 首页 新随笔 联系 订阅 订阅 管理

2018年8月20日

JS 最简单数组去重
摘要: var newArr = Array.from(new Set([1,2,2,3,4])) // 再把set转变成array console.log(newArr) // [1,2,3,4] 阅读全文
posted @ 2018-08-20 10:45 LiuYier 阅读(547) 评论(0) 推荐(0)
 
 

2018年8月17日

谷歌浏览器导入文件浏览器出现卡死现象
摘要: 今天有用户在用谷歌浏览器导入excel时,浏览器出现卡死现象: 排查了一下原因,发现是搜狗输入法导致的,用户用的win7系统,win10到没有出现这个问题。 暂时解决办法: 导入文件时切换一下输入法,或者用360、火狐浏览器。 阅读全文
posted @ 2018-08-17 13:44 LiuYier 阅读(558) 评论(0) 推荐(0)
 
 

2018年7月16日

element ui 手动关闭$notify弹框
摘要: 1、需求: 当用户点击 “点击下载” 后,文件导出这个弹框主动消失。 2、解决方案: 如下图所示 (需要注意的是这里的关闭是 点击弹框任意处就会关闭,如果想实现我的需求需要判断一下即可) 阅读全文
posted @ 2018-07-16 10:16 LiuYier 阅读(3274) 评论(0) 推荐(0)
 
 

2018年4月9日

ajax跨域问题
摘要: 一、为什么会发生AJAX跨域 1、浏览器限制 2、跨域 3、XHR (XMLHttpRequest) 请求 二、解决思路 1、浏览器 2、JSONP -- XHR 3、跨域-> 被调用(支持跨域)/调用方(隐藏跨域)浏览器发出去的 a的域名请求 通过代理转到 b的域名 4、使用jsonp后台也需要改 阅读全文
posted @ 2018-04-09 10:24 LiuYier 阅读(126) 评论(0) 推荐(0)
 
 

2018年4月2日

日期控件
摘要: /** * Created by dale on 2017/11/18. */ (function () { var datepicker = {}, startYear; var dayDates = 0, weekDates = 0, monthDate = 0, yearDate = 0; var $wrapperDay = null, $... 阅读全文
posted @ 2018-04-02 13:53 LiuYier 阅读(209) 评论(0) 推荐(0)
 
 

2018年3月21日

IDEAL 热更新
摘要: org.springframework.boot spring-boot-devtools true 阅读全文
posted @ 2018-03-21 14:52 LiuYier 阅读(180) 评论(0) 推荐(0)
 
 

2018年3月8日

分页(pagination)样式表
摘要: ul { list-style: none; padding: 0; margin: 0; } .pagination{ display:inline-block; padding-left:0; border-radius:4px } .pagination>li{display:inline} .pagination>li>a,.pagin... 阅读全文
posted @ 2018-03-08 17:03 LiuYier 阅读(712) 评论(0) 推荐(0)
 
常用分页组件
摘要: (function ($) { $.fn.extend({ jqPaginator:function (opt){ var defaults = { totalNum:0, //总条数 currentPage:1, //当前显示页 pageSize:... 阅读全文
posted @ 2018-03-08 17:02 LiuYier 阅读(249) 评论(0) 推荐(0)
 
 

2018年1月29日

js 回调函数理解
摘要: function A(callback) { console.log('我是主函数'); setTimeout(function () { callback("我是主函数传出的"); }, 3000); } //... 阅读全文
posted @ 2018-01-29 16:51 LiuYier 阅读(106) 评论(0) 推荐(0)
 
 

2018年1月4日

前端分页处理
摘要: function createPageText(pageInfo) { var $ul = $("").addClass("pagination"); //首页 if (pageInfo.isFirstPage) { var $a = $("").text("首页").prop("href", "javascript:void(0);").addClass... 阅读全文
posted @ 2018-01-04 14:31 LiuYier 阅读(388) 评论(0) 推荐(0)
 
 
下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3