随笔分类 -  Web

最简单的判断是否为IE浏览器的方法 - document.documentMode
摘要:最简单的判断是否为IE浏览器的方法 - document.documentMode作为当今最差的浏览器,虽说IE即将推出历史的舞台,但是因为项目需要还是需要支持。那么必须判断是否是IE,如果是IE,需要做些特殊处理。 document.documentMode 是IE特有的属性,可以根据这个值判断是否为IE。如: var isIE = document.documentMode 阅读全文
posted @ 2021-10-25 09:33 Jack Niu 阅读(414) 评论(0) 推荐(0)
前端进阶(2)使用fetch/axios时, 如何取消http请求
摘要:前端进阶(2)使用fetch/axios时, 如何取消http请求 1. 需求 现在前端都是SPA,我们什么时候需要取消HTTP请求呢? 当我们从一个页面跳转到另外一个页面时,如果前一个页面的请求还没有返回,那么我们希望取消前一个页面的请求 某些操作耗时比较长(不能是保存等操作哦),如果用户不想等待 阅读全文
posted @ 2021-04-25 15:31 Jack Niu 阅读(1362) 评论(0) 推荐(0)
前端进阶(1)Web前端性能优化
摘要:前端进阶(1)Web前端性能优化 Web前端性能优化, 不仅能够改善站点的用户体验,并且能够节省相当的资源利用。下面将从1)服务器、2)html内容、3)css、 4)javascript、 5)图片等几方面介绍具体的优化操作。 目录: 1. 服务器优化 1.1. 使用内容分发网络(CDN) 1.2 阅读全文
posted @ 2021-04-23 15:07 Jack Niu 阅读(487) 评论(0) 推荐(1)
CSS3 Flex Box 弹性盒子、弹性布局
摘要:1. 概要 Flexible Box翻译过来就是弹性盒子、弹性布局,是css3中新增的一种布局方式,是当页面需要适应不同的屏幕大小以及设备类型时确保元素拥有恰当的行为的布局方式。引入弹性布局模型的目的是提供一种更加有效的方式来对一个容器中的子元素进行排列、对齐和分配空白空间。 弹性盒子由弹性容器(F 阅读全文
posted @ 2021-02-02 14:40 Jack Niu 阅读(270) 评论(0) 推荐(0)
Javascript MVC/MVVM 框架对比, AngularJS vs Backbone vs Knockout
摘要:AngularJS Pros -Uses primitive javascript types instead of function wrappers (“dirty checking”)-Loaded with functionality-Easy to get started-Fast development and smaller amounts of boiler-plate code ... 阅读全文
posted @ 2013-05-30 10:28 Jack Niu 阅读(3399) 评论(0) 推荐(0)
AngularJS – javascript MVC 框架
摘要:AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML's syntax to express your application's components clearly and succinct... 阅读全文
posted @ 2013-05-29 13:55 Jack Niu 阅读(507) 评论(0) 推荐(0)
Bootstrap Paginator
摘要:Bootstrap Paginator is a jQuery plugin that simplifies the rendering of Bootstrap Pagination component. It provides methods to automates the update of the pagination status and also some events to not... 阅读全文
posted @ 2013-05-27 11:21 Jack Niu 阅读(2344) 评论(0) 推荐(0)
Sticky Footer , fixed footer, pinned footer
摘要:1. through css #footer { position:fixed; left:0px; bottom:0px; height:30px; width:100%; background:#999; } 2. jQuery Easy Pinned Footer http://jack-fx.com/net/2013/05/21/sticky-footer... 阅读全文
posted @ 2013-05-21 13:27 Jack Niu 阅读(421) 评论(0) 推荐(0)


Affiliate Marketing and Web Technology