window身上的方法
发布时间:2021-02-20 09:34:54 所属栏目:系统 来源:网络整理
导读:window身上的方法 内置函数 alert()parseInt()parseFloat()setInterval();setTimeout();clearTimeout();clearInterval(); 。。。。。。。。。。 信息框 alert("123123132"); 对话框:确定拿到输入的信息,取消拿到null var a = prompt("请输入要充值的金额
window身上的方法 alert() parseInt() parseFloat() setInterval(); setTimeout(); clearTimeout(); clearInterval(); 信息框 alert("123123132"); 对话框:确定拿到输入的信息,取消拿到null var a = prompt("请输入要充值的金额"); console.log(a) 选择框 var a = confirm("会弹出一个什么呢") console.log(a) function fn(){ ? ? window方法打开和关闭 var obtn = document.getElementById("btn"); var obtn2 = document.getElementById("btn2"); obtn.onclick = function(){ // open("http://www.baidu.com","_blank","width=300,height=300,left=200,top=200"); open("./6计时器.html",top=200"); } obtn2.onclick = function(){ close(); //关闭自己本身 } // 非脚本打开的页面 (编辑:厦门站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |