<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>http://test.largeq.cn/index.php?action=history&amp;feed=atom&amp;title=ShowSaveFilePicker</id>
	<title>ShowSaveFilePicker - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://test.largeq.cn/index.php?action=history&amp;feed=atom&amp;title=ShowSaveFilePicker"/>
	<link rel="alternate" type="text/html" href="http://test.largeq.cn/index.php?title=ShowSaveFilePicker&amp;action=history"/>
	<updated>2026-04-22T10:53:50Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 11.45.14</generator>
	<entry>
		<id>http://test.largeq.cn/index.php?title=ShowSaveFilePicker&amp;diff=484&amp;oldid=prev</id>
		<title>IVEN：/* 返回值 */</title>
		<link rel="alternate" type="text/html" href="http://test.largeq.cn/index.php?title=ShowSaveFilePicker&amp;diff=484&amp;oldid=prev"/>
		<updated>2025-02-04T14:33:34Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;返回值&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2025年2月4日 (二) 14:33的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l32&quot; &gt;第32行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第32行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===返回值===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===返回值===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;一个 Promise 对象，会兑现一个 FileSystemFileHandle 对象。&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;一个 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/ins&gt;Promise&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]] &lt;/ins&gt;对象，会兑现一个 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/ins&gt;FileSystemFileHandle&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]] &lt;/ins&gt;对象。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===异常===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===异常===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>IVEN</name></author>
		
	</entry>
	<entry>
		<id>http://test.largeq.cn/index.php?title=ShowSaveFilePicker&amp;diff=474&amp;oldid=prev</id>
		<title>IVEN：创建页面，内容为“{{本地化}} Window 接口的 showSaveFilePicker() 方法用于显示一个文件选择器，以允许用户保存一个文件。可以选择一个已有文件覆…”</title>
		<link rel="alternate" type="text/html" href="http://test.largeq.cn/index.php?title=ShowSaveFilePicker&amp;diff=474&amp;oldid=prev"/>
		<updated>2025-02-03T06:25:58Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{本地化}} Window 接口的 showSaveFilePicker() 方法用于显示一个文件选择器，以允许用户保存一个文件。可以选择一个已有文件覆…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{本地化}}&lt;br /&gt;
Window 接口的 showSaveFilePicker() 方法用于显示一个文件选择器，以允许用户保存一个文件。可以选择一个已有文件覆盖保存，也可以输入名字新建一个文件。&lt;br /&gt;
&lt;br /&gt;
==语法==&lt;br /&gt;
```&lt;br /&gt;
  showSaveFilePicker()&lt;br /&gt;
```&lt;br /&gt;
===参数===&lt;br /&gt;
options 可选&lt;br /&gt;
选项对象，包含以下属性：&lt;br /&gt;
&lt;br /&gt;
====excludeAcceptAllOption 可选====&lt;br /&gt;
布尔值，默认为 false。默认情况下，选择器应包含一个不应用任何文件类型过滤器的选项（通过下面的类型选项启动）。将此选项设置为 true 意味着该选项不可用。&lt;br /&gt;
&lt;br /&gt;
====id 可选====&lt;br /&gt;
通过指定 ID，浏览器可以为不同的 ID 记住不同的目录。如果相同的 ID 用于另一个选择器，则该选择器将在同一目录中打开。&lt;br /&gt;
&lt;br /&gt;
====startIn 可选====&lt;br /&gt;
一个 FileSystemHandle 对象或一个众所周知的目录（&amp;quot;desktop&amp;quot;、&amp;quot;documents&amp;quot;、&amp;quot;downloads&amp;quot;、&amp;quot;music&amp;quot;、&amp;quot;pictures&amp;quot; 或 &amp;quot;videos&amp;quot;）以指定打开选择器的起始目录。&lt;br /&gt;
&lt;br /&gt;
====suggestedName 可选====&lt;br /&gt;
一个字符串。建议的文件名。&lt;br /&gt;
&lt;br /&gt;
====types 可选====&lt;br /&gt;
允许选择的文件类型的数组。每个项目都是一个具有以下选项的对象：&lt;br /&gt;
&lt;br /&gt;
====description 可选====&lt;br /&gt;
允许的文件类型类别的可选描述。默认为空字符串。&lt;br /&gt;
&lt;br /&gt;
====accept====&lt;br /&gt;
一个 Object，其键设置为 MIME 类型，值设置为文件扩展名的数组（参见下面的示例）。&lt;br /&gt;
&lt;br /&gt;
===返回值===&lt;br /&gt;
一个 Promise 对象，会兑现一个 FileSystemFileHandle 对象。&lt;br /&gt;
&lt;br /&gt;
===异常===&lt;br /&gt;
====AbortError DOMException====&lt;br /&gt;
如果用户在没有做出选择的情况下关闭提示，或者如果用户代理认为任何选定的文件过于敏感或危险，则抛出此异常。&lt;br /&gt;
&lt;br /&gt;
====SecurityError DOMException====&lt;br /&gt;
如果调用被同源策略阻止，或者不是通过用户交互（例如按下按钮）调用，则抛出该异常。&lt;br /&gt;
&lt;br /&gt;
====TypeError====&lt;br /&gt;
如果无法处理接受类型，则抛出该异常，如果出现以下情况，则可能会发生这种情况：&lt;br /&gt;
&lt;br /&gt;
types 选项中任何项目的 accept 选项的任何键字符串都无法解析为有效的 MIME 类型。&lt;br /&gt;
types 选项中任何项目的 accept 选项的任何值字符串都是无效的，例如，如果它不以 . 开头，或者它以 . 结尾，或者它包含任何无效的值码点且长度大于 16。&lt;br /&gt;
types 选项为空，excludeAcceptAllOption 选项为 true。&lt;br /&gt;
==安全性==&lt;br /&gt;
瞬态用户激活是必需的。用户必须与页面或 UI 元素进行交互才能使该特性正常运行。&lt;/div&gt;</summary>
		<author><name>IVEN</name></author>
		
	</entry>
</feed>