标题
Math.ceil 向上取整
Math.floor向下取整
Math.random 随机数0~之间
toFixed()保留两位小数位 精度不准
call /apply
改变this指向
function Test(name,age){
this,name = name;
this,age = age;
}
var test = new Test();
test(); === test.call();
test.call(tihs,0,1);
call需要把实参按照形参的个数传进去
apply 只能传一个实参数组(arguments)
test.apply(this,[0,1]);
Ps:
display:flow-root;
专门触发bfc没有任何其他属性
iframe标签
创建内联框架