1.在HTMLbody中的js代码会在页面加载时被执行,一般将页面被加载时所执行的代码放在body中 2.在HTML head中的js代码会预先加载,但在被调用的时候才执行,一般将需要调用才执行的代码或事件触发执行的代码 放在head中,外部代码文件一般放在head中引用,确保页面加载时已加载外部文 Read More
posted @ 2020-04-10 09:42 拎着红杯子的黄鸭子 Views(206) Comments(0) Diggs(0) Edit
并集选择器 div ,p,#p1,.hello{} 交集选择器 p#p2{bgc:yellow} 选中既是p标签又带有p2类的元素 元素选择器 <p>this is a 元素</p> p{bcg:yellow} id选择器 <div id="No1"></div> #No1{bcg:yellow} Read More
posted @ 2020-04-10 09:38 拎着红杯子的黄鸭子 Views(121) Comments(0) Diggs(0) Edit
function add3DTilesetDataTrans(url) { //viewer1.scene.globe.depthTestAgainstTerrain = true;//地形遮挡 //viewer1.scene.globe.depthTestAgainstTerrain = fals Read More
posted @ 2020-04-10 09:36 拎着红杯子的黄鸭子 Views(6059) Comments(1) Diggs(1) Edit