window身上的方法
发布时间:2020-12-14 05:49:45 所属栏目:Windows 来源:网络整理
导读: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(); //关闭自己本身 } // 非脚本打开的页面 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 在Windows Server 2003上使用组策略分发文件
- 带RemoteFX的Hyper-V服务器:我可以从服务器桌面RDP到其Win
- windows-7 – VS2012,Windows 8,DirectX及其SDK
- 从VBScript执行DOS命令
- windows-phone-8.1 – Microsoft Band SDK部署错误:发布中
- Windows ISO8601时间戳
- windows-phone – 如何使用.NET代码从Windows Phone Market
- windows 系统命令 大全
- Window Git $git config –global http.proxy警告:http.pr
- Windows – 编译没有Visual Studio的CUDA – “在路径中找不