如果我並不需要本地存儲,我的代碼是這樣的: var names=new Array();
names[0]=prompt("New member name?");
這工作。但是,我需要將此變量存儲在localStorage中,並且證明它非常固執。我試過了: var localStorage[names] = new Array();
localStorage.names[0] = prom
好吧,我正在通過xhr下載數據塊,並且我希望將其存儲在本地以用於擴展chrome。 起初我能夠將它存儲在localStorage中,但後來我需要移動到localStorage無法處理的較大的塊。因此我決定將它存儲在Web Sql Database中。但是,我能夠將數據完全保存在localStorage中,但是當我嘗試將其存儲在數據庫中時,數據丟失或出現錯誤。 像這樣: //this way the
I studied the union find algo and found it is very useful in following ways.
to find out if 2 node are connected or not
to compress the path. (save space)
if the problem is to find if