在google chrome中查看pdf時,DOM的結構非常相似。總是存在與 '流-URL' 與這樣一個值屬性的嵌入元件: '斑點:鉻擴展:// abunchofrandomnumbersandletterswithdashes'什麼是流url?
例如:
摘自:http://www.mathworks.com/moler/random.pdf
<embed id="plugin" type="application/x-google-chrome-pdf" src="http://www.mathworks.com/moler/random.pdf" stream-url="blob:chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/95301F67-C250-4082-B5C0-6BDBB077B63C" headers="Accept-Ranges: bytes
Content-Length: 111906
Content-Type: application/pdf
Date: Fri, 13 May 2016 03:53:17 GMT
ETag: "1b522-4e738e204e8c0"
Last-Modified: Wed, 25 Sep 2013 17:50:03 GMT
Server: Apache/2.4.6 (CentOS)
" background-color="0xFF525659" top-toolbar-height="56" full-frame="">
我注意到的唯一情況是,如果您重新打開選項卡,值會發生變化。非常感謝!