-
on
(type, listener)
{Object}
在实例上注册事件处理程序。调用此方法以将事件与侦听器钩子。
参数:
类型 说明 要侦听的事件或事件数组。
listener Function事件触发时调用的函数。
返回:
类型 说明 Object 返回一个事件处理程序 remove()
应调用以停止侦听事件的方法。属性 类型 说明 remove Function 调用时,从事件中删除侦听器。 例子:
view.on("click", function(event){ // event is the event handle returned after the event fires. console.log(event.mapPoint); });
基本信息
以下是所在类或对象的基本信息。
AMD:
require(["esri/identity/Credential"], (Credential) => { /* code goes here */ });
ESM:
import Credential from "@arcgis/core/identity/Credential";
类:
esri/identity/Credential
继承: Credential > Accessor
自从:用于 JavaScript 4.0 的 ArcGIS API
用法说明
Credential.on
函数(或属性)的定义如下:
相关用法
- JavaScript ArcGIS CIMSymbol.CIMTextSymbol用法及代码示例
- JavaScript ColorSlider用法及代码示例
- JavaScript ColorSlider.labelFormatFunction用法及代码示例
- JavaScript ArcGIS CoordinateConversion.goToOverride用法及代码示例
- JavaScript ColorSlider.primaryHandleEnabled用法及代码示例
- JavaScript ClassedSizeSlider.on用法及代码示例
- JavaScript ArcGIS CSVLayer.getFieldDomain用法及代码示例
- JavaScript ClassedSizeSlider.fromRendererResult用法及代码示例
- JavaScript ClassedSizeSlider.histogramConfig用法及代码示例
- JavaScript ArcGIS Collection用法及代码示例
- JavaScript ArcGIS CIMSymbol.CIMGeometricEffectJog用法及代码示例
- JavaScript ArcGIS CoordinateConversion.container用法及代码示例
- JavaScript ColorSizeSlider thumb-drag事件用法及代码示例
- JavaScript ArcGIS CustomContent用法及代码示例
- JavaScript ColorSlider.handlesSyncedToPrimary用法及代码示例
- JavaScript ArcGIS Collection after-add事件用法及代码示例
- JavaScript ArcGIS CIMSymbol.CIMMarkerPlacementPolygonCenter用法及代码示例
- JavaScript ArcGIS CSVLayer refresh事件用法及代码示例
- JavaScript ArcGIS CSVLayer.effect用法及代码示例
- JavaScript ArcGIS CSVLayer.when用法及代码示例
- JavaScript ArcGIS CSVLayer.capabilities用法及代码示例
- JavaScript ArcGIS Collection.addMany用法及代码示例
- JavaScript ArcGIS Collection.add用法及代码示例
- JavaScript ColorSizeSlider.visible用法及代码示例
- JavaScript ArcGIS CSVLayerView.when用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 Credential.on。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。