四时宝库

程序员的知识宝库

前端面试必须掌握的手写题:进阶篇

本文是前端面试必须掌握的手写题系列的最后一篇,这个系列几乎将我整理和遇到的题目都包含到了,这里还是想强调一下,对于特别常见的题目最好能“背”下来,不要眼高手低,在面试的时候不需要再进行推导分析直接一把梭,后续会整理分享一些其他的信息,希望对你能有所帮助

页面中需要写图表?自己写太麻烦,不如看看这个

前言

一篇强实战的文章,需要在页面中使用图表的小伙伴强烈推荐看上这么一看~

1.主要图表

ECharts

https://echarts.baidu.com/index.html

你不知道的Js高级方法(你不知道的js高级方法是什么)

前言

在Js中有一些比较冷门但是非常好用的方法,我在这里称之为高级方法,这些方法没有被广泛使用或多或少是因为存在一些兼容性的问题,不是所有的浏览器都读得懂的。这篇文章主要就是对这些方法做一个总结,有些方法在我们开发过程中有着重要的作用,我们一起来看一下吧。

Web开发实用技能,看Kendo UI如何定义网格高度

点击“了解更多”获取Kendo UI for jQuery R2 2020 SP1试用版下载

Kendo UI目前最新提供Kendo UI for jQuery、Kendo UI for Angular、Kendo UI Support for React和Kendo UI Support for Vue四个控件。Kendo UI for jQuery是创建现代Web应用程序的最完整UI库。

谈谈外网刷屏的量子纠缠效果(量子纠缠网络)

大家好,我卡颂。

JavaScript 获取浏览器窗口的尺寸

  • innerHeight 和 innerWidth
  • 这两个方法分别是用来获取浏览器窗口的宽度和高度(包含滚动条的)
var windowHeight = window.innerHeight
console.log(windowHeight)

var windowWidth = window.innerWidth
console.log(windowWidth)

js 获取浏览器的宽度与高度(js获取页面宽度)

1.获取浏览器的宽度与高度方法

function bowerseSize () {
 var xScroll, yScroll;
 if (windows.innerHeight && window.scrollMaxY) {
 xScroll = document.body.scrollWidth;
 yScroll = windows.innerHeight + window.scrollMaxY;
 } else if (document.body.scrollHeight > document.body.offsetHeight) { // all but Explorer Mac
 xScroll = document.body.scrollWidth;
 yScroll = document.body.scrollHeight;
 } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
 xScroll = document.body.offsetWidth;
 yScroll = document.body.offsetHeight;
 }
 var windowWidth, windowHeight;
 if (self.innerHeight) { // all except Explorer
 windowWidth = self.innerWidth;
 windowHeight = self.innerHeight;
 } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
 windowWidth = document.documentElement.clientWidth;
 windowHeight = document.documentElement.clientHeight;
 } else if (document.body) { // other Explorers
 windowWidth = document.body.clientWidth;
 windowHeight = document.body.clientHeight;
 }
 // for small pages with total height less then height of the viewport
 if (yScroll < windowHeight) { pageHeight = windowHeight; } else { pageHeight = yScroll; }
 if (xScroll < windowWidth) { pageWidth = windowWidth; } else { pageWidth = xScroll; }
 return { windowWidth: windowWidth, windowHeight: windowHeight, pageWidth: pageWidth, pageHeight: pageHeight };
 };

装B技巧,让页面也 High 起来——一起摇摆

还记得魔性的小苹果和抖音吗,作为前端的你,有想过

用Threejs创建一个简单的赛车游戏

有一天,我看到汽车在路上超速驶过,我想制作一个赛车游戏。

彻底弄懂元素样式、位置、大小相关计算

简介

在我们日常开发中偶尔会碰到获取元素样式、设置某元素样式、计算元素位置、计算滚动距离等需求。但是js中关于元素位置、样式、大小的api种类繁多,稍不留神就会搞不清楚。今天笔者就带你彻底弄清楚,让你在这类问题上不再迷茫。

控制面板
您好,欢迎到访网站!
  查看权限
网站分类
最新留言
    友情链接