您的当前位置:首页正文

javascript setTimeout参数传变量

2024-11-08 来源:个人技术集锦

var name = "user";


错误:

setTimeout("window.location= './safeAccess.php?login='" + name1, 3000);

正确:

setTimeout("window.location= './safeAccess.php?login=" + name1 + "'", 3000);

显示全文