摘要:
doomTree 将jhtml结构按树的方式挂起来(深度优先原则,先看左侧,再看右侧) html head body title meta div p a csstree 当domtree形成后,会形成一个与domtree相类似的csstree doomtree+csstree=randertree 阅读全文
posted @ 2020-07-26 20:38
颿華正茂
阅读(199)
评论(0)
推荐(0)
摘要:
document.getElementById()方法定义在Document.prototype上,所以Element节点上不能使用 document.getElementsByName()方法定义在HTMLDocument.prototype上,即非html中的document不能使用 docum 阅读全文
posted @ 2020-07-26 15:13
颿華正茂
阅读(124)
评论(0)
推荐(0)
摘要:
选项卡功能 <button type="button" class="change">1</button> <button type="button">2</button> <button type="button">3</button> <div class="cont active">第一个框框 阅读全文
posted @ 2020-07-26 14:19
颿華正茂
阅读(93)
评论(0)
推荐(0)
摘要:
es3和es5产生冲突的部分使用es5的方法,否则使用es3 “use strict” 变量赋值前必须声明,var a=b=2;(b没有定义) 局部this必须被赋值 赋给什么就是什么 拒绝重复属性和参数 arguments.calle 不能被使用 function.caller with:改变作用 阅读全文
posted @ 2020-07-26 12:02
颿華正茂
阅读(97)
评论(0)
推荐(0)
摘要:
try{ console.log("a") console.log(b) console.log("c") }catch(e){ //TODO handle the exception console.log(e.message+":"+e.name) } 在try里面发生的错误不会执行try里面后 阅读全文
posted @ 2020-07-26 11:28
颿華正茂
阅读(113)
评论(0)
推荐(0)
摘要:
// 思想 // var arr=[1,1,1,2,2,2,3,3,3]; // var obj={ // } Array.prototype.unique=function(){ var temp={}; var arr1=[]; var len=this.length; for(var i=0; 阅读全文
posted @ 2020-07-26 10:01
颿華正茂
阅读(76)
评论(0)
推荐(0)

浙公网安备 33010602011771号