DOM核心

DOM核心 我們獲取過來的DOM元素是一個對象(object),所以稱爲文檔對象模型 主要有增,刪,改,查,屬性操作和事件操作 撈一波屬性操作 setAttribute:設置dom的屬性值 getAttribute:得到dom的屬性值 removeAttribute 移出屬性 ①事件操作,撈一波鼠標操作 事件類型 相關函數 點擊事件 onclick 移入/移出 onmouseover/onmous
相關文章
相關標籤/搜索