知识点
莫不静好yh
这个作者很懒,什么都没留下…
展开
-
浏览列表有关的对象
与浏览列表有关的对象:history screen location Navigator原创 2017-11-20 17:02:38 · 1113 阅读 · 0 评论 -
防止网页被嵌入框架的代码
下面一段简单的js,将他放入网页源码的头部,可以使不正当使用者无法使用你的网页 if ( window != top ) //判断当前的window对象是否是top对象 top.location.href = window.location.href ; //如果不是,将top对象的网址自动导向被嵌入网页的网址转载 2017-11-22 11:52:52 · 200 阅读 · 0 评论 -
js实现快速排序
var quickSort = function(arr) { if (arr.length var pivotIndex = Math.floor(arr.length / 2); var pivot = arr.splice(pivotIndex, 1)[0]; var left = []; var right = []; for转载 2017-11-27 14:04:15 · 377 阅读 · 0 评论