For more information about userdata, click here.
Again, the project uses IE's userdata. When the user does not use the flash plug-in to store some chat records
Trigger bug? Condition:
1. Use userdata to store two properties XXX in the same XML file. setattribute ('A', '123'); XXX. setattribute ('B', '123'); XXX. save ('xmlname ');
In this case, <rootstub A = "111" B = "222"/>
2. Press Ctrl + F5 to refresh the page and delete the known attribute 'a' through XXX. removeattribute ('A'). Expected results: <rootstub B = "222"/>
Actual results: <rootstub/>
Bug? : Another attribute is deleted when a property is deleted.
I guess that userdata may be associated with IE's own cache to some extent during operations. Why is the cache lost after a strong click?
Solution:
When deleting a property, use XXX first. load ('xmlname'); var val = xxx. getattribute ('B'); load the other property and save it in a variable. After removeattribute is successful, set setattribute ('B', Val) of attribute B to return.
Thank you for your help.
PS: how nice it is to use storage?