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
  • 相关阅读:
    CentOS常用的文件操作命令总结
    消息队列技术
    net license tool, EasyLicense !
    Socket、Session、Option和Pipe
    安全配置基线Linux系统
    SolrCloud
    线性表
    微服务系统中的认证策略
    How to use JDBC-Authentication of Spring Boot/Spring Security with Flyway
    使用Akka、Kafka和ElasticSearch等构建分析引擎 -- good
  • 原文地址:https://www.cnblogs.com/EricChan/p/1446607.html
Copyright © 2011-2022 走看看