基础知识:
查看百度百科:
URI:http://baike.baidu.com/view/160675.htm
URL:http://baike.baidu.com/view/422160.htm
区别
下面是一些URI的例子:
ftp://ftp.is.co.za/rfc/rfc1808.txt
http://www.ietf.org/rfc/rfc2396.txt
ldap://[2001:db8::7]/c=GB?objectClass?one
mailto:John.Doe@example.com
news:comp.infosystems.www.servers.unix
tel:+1-816-555-1212
telnet://192.0.2.16:80/
下面是URL的例子:
ftp://ftp.is.co.za/rfc/rfc1808.txt
http://www.ietf.org/rfc/rfc2396.txt
news:comp.infosystems.www.servers.unix
从上面的例子可以看出,tel:+1-816-555-1212只属于URI,也就是说URL是URI的子集。