zoukankan      html  css  js  c++  java
  • JavaScript中常用的对象和属性

         在最近开发的一个项目中使用了很多JS脚本,最后在维护的时候觉得很麻烦。其实仔细看来,还是自己写的代码太冗余。

    Document:

    1、createAttribute  用指定的名字创建新的属性结点.

    2、createElement  用指定的标记名创建新的Element节点;

    3、createComment 用指定的字符串创建新的Comment节点;

    4、createTextNode 用指定的字符串创建新的TextNode节点;

    5、getElementById  返回文档中具有指定id属性的Element节点;

    6、getElementByTagName 返回文档中具有指定标记名的所有Element节点;


    Element对象常用方法

    1、getAttribute 

    2、getAtrributeNode

    3、setAttribute

    4、setAttributeNode

    5、removeAttribute

    6、removeAttributeNode

    7、hasAttribute

    8、getElementsByTabName


    正在完成....... 

    自定义JavaScript 的HashTable

    Code
  • 相关阅读:
    git 一般的使用操作
    php 导出excel,csv
    安装sublime_text_3
    安装mongodb记录,mongo基本命令记录
    redis 安装记录
    YII2 activeform样式修改
    go 安装下载
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.hbsjz/com.hbsjz.BaseMapActivity}:
    SQLServer创建触发器,更新表
    SQL Server触发器创建、删除、修改、查看示例步骤
  • 原文地址:https://www.cnblogs.com/EricChan/p/1446607.html
Copyright © 2011-2022 走看看