SecurityError: Failed to set the 'domain' property on 'Document':
'blogspot.com' is a top-level domain.
今天手贱,看到chrome里给了这么个提示. http://en.wikipedia.org/wiki/Top-level_domain
维基百科没看到有他啊.
不太明白, 我以前一直理解的是 location.host.split('.').pop()
是我一直理解错了吗?
location.host
就是top-level domain啊。
如果按照你的理解,location.host.split('.').pop()
的话
那http://blogspot.com/的top-level岂不仅仅是com
了?