when dojo 1.7 and AMD style is adopted, examples on arcgis website may not work directly. this post mark some changes
1: dojo.connect --> dojo/on
events name might be changed from "onXXX" to "xxx"
for example: map onLoad event is changed to load , now we use
on(mapobj, "load", function(evt) {}); instead of dojo.connect(mapobj, "onLoad", function(evt){});
当使用Dojo 1.7及AMD风格时,ArcGIS网站上的示例可能无法直接运行。本文记录了相关变更,如事件监听器从dojo.connect更改为dojo/on,事件名称也发生了变化,例如onLoad事件现在为load。
7216

被折叠的 条评论
为什么被折叠?



