zoukankan      html  css  js  c++  java
  • JavaScript:弹框输出

    5种弹框:

    1. 普通弹框: alert("hello,拉勾");

    2. 控制台日志输出: console.log("谷歌浏览器按F12进入控制台");

    3. 页面输出: document.write("<h2>我爱你中国</h2>"); 将<h2>元素输出到<body>中

    4. 确认框: confirm("确定删除吗?")

    var b = confirm("确定删除吗?");
    if(b){
        document.write( "<h1>删除成功!</h1>" );
    }else{
        document.write( "<h1>你取消了操作</h1>" );
    }

    5. 输入框 prompt("请输入姓名:");

    var name = prompt("请输入你的名字:");
    document.write( "<h1>大名:"+name+"!</h1>" );
  • 相关阅读:
    file
    shell脚本的执行
    添加源,删除源
    lsattr, chattr
    umask
    od
    init
    sync
    wc
    history
  • 原文地址:https://www.cnblogs.com/JasperZhao/p/15134247.html
Copyright © 2011-2022 走看看