<< Click to Display Table of Contents >>

SuperGIS Server JavaScript API

 

sg.event

 

 

Description

事件的命名空間

 

Position

 

 

 

Methods

 

Method

Type

Description

on(target, type, handler)

target:sg.Class

type:String

handler:function

Returns:Object

 

監聽一個事件

Name

Type

Description

target

sg.Class

要監聽的目標事件

type

String

事件類型

handler

function

事件處理函數

Returns:

Type

Description

Object

listener監聽事件

remove(listener)

Object

移除監聽事件

Name

Type

Description

listener

Object

使用on後回傳的監聽事件

trigger(target, type)

Object

觸發事件

Name

Type

Description

target

sg.Class

要觸發事件的目標物件

type

String

事件類型

 

 

See live example

 


©2015 Supergeo Technologies Inc.