更新时间:2023-11-29 14:13:16
避免使用file:///进行开发-您会浪费时间进行调试,因为并非所有功能都应该在那里工作.
Avoid developing using file:/// - you'll waste time debugging, as not everything is supposed to work there.
如果是Firefox中的Worker()
,则是一年前得到支持,但显然在Firefox 68中已禁用.
In case of Worker()
in Firefox, this was supported a year ago, but was apparently disabled in Firefox 68.
See Firefox 68: local files now treated as cross-origin; is there a way to override? - if you set privacy.file_unique_origin
to false
in about:config, the example should work.