zoukankan      html  css  js  c++  java
  • 常用知识集合

    HTML DOM removeAttribute() 方法

    removeAttribute() 方法删除指定的属性。

    document.getElementsByTagName("H1")[0].removeAttribute("style");

    HTML DOM removeAttributeNode() 方法  

    并且返回被删除的属性,以 Attr 对象的形式

    var n=document.getElementsByTagName("H1")[0];
    var a=n.getAttributeNode("style");
    n.removeAttributeNode(a);

    关于html5 input type="search"标签

    https://blog.csdn.net/xxxxxmiss/article/details/51534626    

    HTML <input> 标签的 disabled 属性

    disabled 属性规定应该禁用 input 元素  注释:disabled 属性无法与 <input type="hidden"> 一起使用。

    返回、前进页面的方法下面总结一下

    window.location.reload() //刷新
    window.history.go(1) //前进
    window.history.go(-1) //后退
    window.history.forward() //前进
    window.history.back() 后退+刷新

    一些区别

    history.back(-1)//直接返回当前页的上一页,数据全部消息,是个新页面
    history.go(-1)//也是返回当前页的上一页,不过表单里的数据全部还在
  • 相关阅读:
    000_linux之Ubuntu安装
    001_linux基础命令
    018_linux驱动之_阻塞和非阻塞
    019_linux驱动之_定时器的引入
    017_linux驱动之_信号量
    016_linux驱动之_原子操作
    python logging模块整理
    python sys与shutil模块
    python configparser模块
    python os模块
  • 原文地址:https://www.cnblogs.com/1010wjf/p/8618076.html
Copyright © 2011-2022 走看看