单项选择题

localStorage[’name ’]=’marry ’,这句话等价于使用了localStorage的()方法。

A.setltem()
B.getltem()
C.removeltem()
D.key()