草案
此页面不完整。

ContentIndexEvent() 构造函数创建新 ContentIndexEvent object whose type and other options are configured as specified.

句法

var ContentIndexEvent = new ContentIndexEvent(type, ContentIndexEventInit);
					

参数

type
DOMString indicating the event which occurred. For ContentIndexEvent , this is always delete .
eventInitDict 可选
An options object containing any initialization data you want to populate the ContentIndexEvent object with. The options are:
  • id : The id of the indexed content you want the ContentIndexEvent to remove.

返回值

A ContentIndexEvent object configured using the given inputs.

范例

This examples constructs a new ContentIndexEvent with the relevant id.

var removeData = {
  id : 'unique-content-id'
}
var ciEvent = new ContentIndexEvent('contentdelete', removeData);
ciEvent.id; // should return 'unique-content-id'
					

规范

规范 状态 注释
未知
The definition of 'ContentIndexEvent' in that specification.
未知 初始定义。

浏览器兼容性

The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.

No compatibility data found. Please contribute data for "api.ContentIndexEvent.ContentIndexEvent" (depth: 1) to the MDN 兼容性数据存储库 .

另请参阅:

元数据

  • 最后修改: