I want to make a function that add an item to my localStorage object. E.g.:
alert(localStorage.getItem('names').addItem('Bill').getItem('names'));
The first method is getItem which gets the item for localStorage objects... but addItem would be a custom function. This chain of functions would finally alert Bill.
So, how would I make this function chain to localStorage?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…