在帮助文件中有一个文章叫做《Programming patterns》,这里面提到了 很多API的类均是Accessor类的子类均有以下三个方法:
| Method Name | Return Type | Description |
|---|---|---|
get(propertyName) |
Varies | Gets the value of the property with the name propertyName |
set(propertyFields) |
N/A | For each key/value pair in propertyFields, this method sets the value of the property with the name key to |

本文探讨了arcgis JavaScript API中的watch函数,该函数用于监视对象属性的变化,并在属性更新时触发回调。在《Programming patterns》文档中提到了这一特性,但寻找其详细定义并不容易。通过本文,你可以了解到watch函数的工作原理及其在API中的应用。
最低0.47元/天 解锁文章
3962

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



