//理解各种方法和属性typeof.instanceof.constructor.prototype.__proto__.isPrototypeOf.hasOwnProperty. //1.typeof方法 获取变量的类型,返回:number, string, undefined, object, boolean, function console.log("typeof方法"); var st = "abcd"; console.log(typeof st);//…
这三个属性是传统网页布局中经常用到的属性. 读这篇文章之前,希望你对css布局模型已经有了一定的了解.因为本文的三个属性是和css三个布局模型紧密联系在一起的.因此,如若你并不了解,我推荐你先看一下css布局模型这篇文章. 一.display属性 The display property specifies the type of box used for an HTML element. display属性是与盒模型紧密相连的属性,大多数情况下定义了元素是block-level,inline-…