09 2017 档案
摘要:1 function User(name,passwordHash){ 2 this.name=name; 3 this.passwordHash=passwordHash; 4 this.toString=function()...
阅读全文
摘要:var names=["Fred","Wilma","Pebbles"]; var upper=names.map(function(name){ return name.toUpperCase(); }); upper;//["FRED", "WILMA", "PEBBLES"] var alphabet=""; for(var i=0;i<26;i++)...
阅读全文
摘要:function sandwichMaker(magicIngredient){ function make(filling){ return magicIngredient +" and "+filling; } return make; ...
阅读全文
摘要:样式模块分为两大块,精确获取样式值与设置样式,精确是用于修饰符获取的。由于样式分布为外部样式,内部样式与行内样式,再加个impotant对选择器的权重的干扰,我们实际很难看到元素是应用了那块的样式。因此,样式模块,80%的比重在于获取这一块,像offset,滚动条也纳入这一块。 大体上,我们在标准浏
阅读全文

浙公网安备 33010602011771号