Advertisement
Guest User

Untitled

a guest
Dec 18th, 2015
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. Допустим на странице http://example.com:81/some/page.html?a=1&b=2#hash размещены относительные ссылки. Определи полный URL для этих ссылок
  2.  
  3. 1. /test
  4.  
  5. http://example.com:81/some/test
  6.  
  7. 2. ?x
  8.  
  9. http://example.com:81/some/page.html?x
  10.  
  11. 3. //test.example.com
  12.  
  13. http://test.example.com
  14.  
  15. 4. #test
  16.  
  17. http://example.com:81/some/page.html#test
  18.  
  19. 5. ../1.txt
  20.  
  21. http://example.com:81/1.txt
  22.  
  23. 6. ./1.txt
  24.  
  25. http://example.com:81/some/1.txt
  26.  
  27.  
  28. Запиши относительные URL для этих ссылок как можно короче (относительно чего?):
  29.  
  30. 1. http://example.com:81/1.txt
  31.  
  32. /1.txt
  33.  
  34. 2. http://test.example.com/1.txt
  35.  
  36. /1.txt
  37.  
  38. 3. http://example.com:81/some/page2.html#hash
  39.  
  40. /some/page2.html#hash
  41.  
  42. 4. http://example.com:81/some/page.html?x=1
  43.  
  44. /some/page.html?x=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement