菜鸟教程小白 发表于 2022-12-11 16:35:29

javascript - IOS 是否会在存储容量不足时删除 WebSQL 数据库?


                                            <p><p>我正在使用 WebSQL 数据库将我的数据存储在我的 ionic 应用程序中,但我了解到,如果您使用 LocalStorage,如果智能手机的存储容量不足,数据可能会在 IOS 上丢失。所以我想知道 WebSQL 是否同样如此? </p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>不推荐使用 WebSQL 数据库,因为它已被弃用。网络摘录清楚地说明了以下内容:</p>

<blockquote>
<p>Since November 18, 2010, the W3C announced that Web SQL database is a deprecated specification. This is a recommendation for web developers to no longer use the technology as effectively, the spec will receive no new updates and browser vendors aren&#39;t encouraged to support this technology. The new alternative is IndexedDB which is already available on Chrome 12+, Firefox 5+ and in IE 10+ as well. </p>
</blockquote>

<p>据我所知,如果使用 Cordova,最好使用 <a href="https://github.com/litehelpers/Cordova-sqlite-storage" rel="noreferrer noopener nofollow">SQLite storage plugin</a>用于存储数据。</p></p>
                                   
                                                <p style="font-size: 20px;">关于javascript - IOS 是否会在存储容量不足时删除 WebSQL 数据库?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/37475631/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/37475631/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: javascript - IOS 是否会在存储容量不足时删除 WebSQL 数据库?