![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
飞了一整天的废机
重庆椰子鸡
这个作者很懒,什么都没留下…
展开
-
JS下载文件
简单的下载链接,直接跳转即可,如果需要在header里面加token ,如下。var xhr = new XMLHttpRequest();xhr.open("GET",url);xhr.responseType = "blob"; xhr.setRequestHeader("token",token);xhr.onload = function(){ if (this.st...原创 2018-11-22 14:21:12 · 109 阅读 · 0 评论 -
自制下拉框,点击其他地方隐藏,并正常触发操作
jQuery $(document).on("click","button",function(e){ var $this = $(this); //$("button").not($this).removeClass("active"); $this.toggleClass('active'); $(document).one("click", funct...原创 2018-11-22 15:05:56 · 865 阅读 · 1 评论