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
  • 相关阅读:
    EntityFramework优缺点
    领导者与管理者的区别
    七个对我最好的职业建议(精简版)
    The best career advice I’ve received
    Difference between Stored Procedure and Function in SQL Server
    2015年上半年一次通过 信息系统项目管理师
    Difference between WCF and Web API and WCF REST and Web Service
    What’s the difference between data mining and data warehousing?
    What is the difference between a Clustered and Non Clustered Index?
    用new创建函数的过程发生了什么
  • 原文地址:https://www.cnblogs.com/EricChan/p/1446607.html
Copyright © 2011-2022 走看看