创建自动完成服务实例
配置参数
可选apiSource?: stringAPI数据源,目前支持'baidu'
可选debounceTime?: number防抖时间(ms)
输入框DOM元素或ID
可选location?: number[]搜索区域限制 [lng, lat]
可选maxResults?: number最大结果数量
可选onError?: Function错误回调
可选onNeedData?: Function需要数据回调
可选onSearchComplete?: Function搜索完成回调
可选types?: string[]搜索类型,如['ALL', 'CITY']
Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Fire an event type.
The event that gets fired.
Checks if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Removes a listener from an event type.
The type of the listener that gets removed.
The listener function that gets removed.
地图搜索输入提示服务
支持以下功能:
示例
示例