前端知识点

本文探讨了前端页面加载机制中ready与onload事件的区别,ready在DOM加载完毕后即触发,而onload则需等待所有资源加载完成。此外,深入介绍了Esri API中的关键概念,包括使用图片作为标记的PictureMarkerSymbol,定义位置的Point,用于展示信息的InfoTemplate,以及包含几何、符号、属性或信息模板的Graphic。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.onload和ready

ready是在DOM文档树加载完之后执行,onload还要等所有文件加载完,所以ready比onload先执行。

window.onload = function() {
    alert("onload");
}

$(document).ready(function() {
    alert("ready");
})

2.esri

esri.symbol.PictureMarkerSymbol: Marker symbols are used to draw points and multipoints on the graphics layer.PictureMarkerSymbol uses an image as a marker.

esri.geometry.Point: A location defined by X- and Y- coordinate.It can be map units or screen units.

esri.InfoTemplate: An InfoTemplate contains a title and content template used to transform Graphic.attributes into an HTML representation.

esri.Graphic: A Graphic can contain geometry, a symbol, attributes, or an infoTemplate.

3.map

map.graphics.add
map.graphics.remove
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值