0
Q
數據協議URl
A
回答
0
如果你想走上這條路(和我個人不會理會),你可以做吧...
// Parse user agent and figure out if this browser supports data
// URIs - e.g. `supportDataUri()`. Also, store the image path
// somewhere - I'll assume for convenience an attribute called `data-image-src`
if (! supportDataUri()) {
var images = document.getElementsByTagName('img');
for (var i = 0, imagesLength = images.length; i < imagesLength; i++) {
var imgSrc = images[i].getAttribute('data-image-src');
images[i].src = imgSrc;
}
}
相關問題
- 1. 分配URL協議
- 2. Java URL協議:classpath:/?
- 3. 數據協議規範
- 4. 數據包的協議
- 5. 繼承協議的URL
- 6. URL驗證沒有協議
- 7. 相對URL VS相對協議的URL
- 8. 協議的哈希協議
- 9. WebDav協議VS HTTP協議
- 10. 使用UDP協議發送數據包
- 11. Anymote協議數據消息使用
- 12. 協議數據流的詞彙?
- 13. 協議術語:消息與數據包
- 14. 協議/數據包設計問題
- 15. iPhone協議委託傳遞數據
- 16. 核心數據iCloud合併協議
- 17. 傳遞數據TextView使用協議
- 18. 數據傳輸協議設計
- 19. WebSocket協議二進制數據永恆
- 20. 'file:'協議(URL)後'///'的含義
- 21. mod_rewrite重定向到URL與propietary協議
- 22. 閱讀URL時沒有協議異常
- 23. 驗證URL有或沒有協議
- 24. URL的協議部分中的「chrome」
- 25. AS3 URL中的禁止協議
- 26. 無協議的HTML5 URL輸入框
- 27. 如何檢索URL協議(「http」或「https」)?
- 28. java.net.MalformedURLException:無協議:<user url>
- 29. htmlpurifier添加缺少的url協議
- 30. 正則表達式跳過協議url
「我個人不會理會」 - 我有很多展示小圖像我應該還是不用擔心,< no script >這個東西還是會被提取 – aWebDeveloper 2011-01-27 05:16:14