function buildUrl() {
var qs = "?debug=true";
with(location){
var url = href + qs;
}
return url;
}
既然with语句是把with花括号里面的内容添加到作用域链前端,那with定义的这个变量对象里定义的变量,为何可以在外面访问到?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
参考高程中的