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
  • 相关阅读:
    Django 数据导入和导出(数据库的迁移方法)
    【转】JSON Web Token 入门教程
    【转】详解drf中的ModelViewSet
    【转】Django 多数据库联用
    【转】django.contrib.auth之authenticate函数源码分析
    【转】Django-rest-framework
    django 自带用户认证系统 以及 自定义用户认证系统
    DRF 中接口设计,接口参数校验问题总结
    my read wood / zelkova / elm
    db CouchDB 2.1.2
  • 原文地址:https://www.cnblogs.com/EricChan/p/1446607.html
Copyright © 2011-2022 走看看