标签:
<!DOCTYPE html> <html> <head> <title>Execution Context Example 3</title> <script type="text/javascript"> function buildUrl() { var qs = "?debug=true"; with(location) { var url = href + qs; } return url; } var result = buildUrl(); alert(result); </script> </head> <body> </body> </html>
标签:
原文地址:http://www.cnblogs.com/fatoland/p/4908072.html