with的好处
location中的属性
with(location) {
alert(protocol);
alert(hash);
alert(hostname);
alert(href);
alert(pathname);
alert(port);
alert(search);
}