摘要:
callback interface EventListener { void handleEvent(Event event);}; 阅读全文
posted @ 2012-01-30 15:53
NiuWeb
阅读(168)
评论(0)
推荐(0)
摘要:
interface EventTarget { void addEventListener(DOMString type, EventListener ? listener, optional boolean capture = false); void removeEventListener(DOMString type, EventListener ? listener, option... 阅读全文
posted @ 2012-01-30 15:52
NiuWeb
阅读(210)
评论(0)
推荐(0)
摘要:
interface Node : EventTarget { const unsigned short ELEMENT_NODE = 1; const unsigned short ATTRIBUTE_NODE = 2; // 历史遗留 const unsigned short TEXT_NODE = 3; const unsigned short CDATA_SECTION_NODE = 4; // 历史遗留 const unsigned short ENTITY_REFERENCE_NODE = 5; // 历史遗留 const unsigned short ENTITY_NO... 阅读全文
posted @ 2012-01-30 15:51
NiuWeb
阅读(434)
评论(0)
推荐(0)
摘要:
interface Element : Node { readonly attribute DOMString? namespaceURI; readonly attribute DOMString? prefix; readonly attribute DOMString localName; readonly attribute DOMString tagName; attribute DOMString id; attribute DOMString className; readonly attribute DOMTokenList c... 阅读全文
posted @ 2012-01-30 15:50
NiuWeb
阅读(265)
评论(0)
推荐(0)
摘要:
interface HTMLUnknownElement : HTMLElement { }; 阅读全文
posted @ 2012-01-30 12:23
NiuWeb
阅读(272)
评论(0)
推荐(0)
摘要:
interface HTMLElement : Element { // 访问DOM树 NodeList getElementsByClassName(in DOMString classNames); // 动态插入标记 attribute DOMString innerHTML; attribute DOMString outerHTML; void insertAdjacentHTML(in DOMString position, in DOMString text); // 元数据属性 attribute DOMSt... 阅读全文
posted @ 2012-01-30 12:20
NiuWeb
阅读(950)
评论(0)
推荐(0)