|
|
|
что за свойство "download" в ссылках
|
|||
|---|---|---|---|
|
#18+
точнее я понял зачем оно, но вот что то документацию пока не нашёл (код взят из https://github.com/eligrey/FileSaver.js) save_link = doc.createElementNS(" http://www.w3.org/1999/xhtml", "a") can_use_save_link = "download" in save_link console.log(can_use_save_link ); // return true будет ли безопасно его использовать(браузер один, и он там работает)? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.11.2012, 22:49:01 |
|
||
|
что за свойство "download" в ссылках
|
|||
|---|---|---|---|
|
#18+
and)я понял зачем оно, но вот что то документацию пока не нашёл https://developer.mozilla.org/en-US/docs/HTML/Element/a download (HTML5): This attribute, if present, indicates that the author intends the hyperlink to be used for downloading a resource. If the attribute has a value, the browser should interpret that as the default filename that the author recommends for use in labeling the resource in a local file system. There are no restrictions on allowed values, but you should consider that most file systems have limitations with regard to what punctuation is supported in file names, and browsers are likely to adjust file names accordingly. and)будет ли безопасно его использовать(браузер один, и он там работает)? Пользуйся спокойно. Если браузер поддерживает его, то он его использует, если нет, то проигнорирует. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.11.2012, 01:13:34 |
|
||
|
|

start [/forum/topic.php?fid=22&tid=1449149]: |
0ms |
get settings: |
10ms |
get forum list: |
22ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
205ms |
get topic data: |
9ms |
get forum data: |
3ms |
get page messages: |
36ms |
get tp. blocked users: |
1ms |
| others: | 222ms |
| total: | 516ms |

| 0 / 0 |
