• 2021-04-14
    put(Object key, Object value)和get(Object key)方法分别用于向Map中存入元素和取出元素。
  • 正确

    内容

    • 0

      以下( )方法将键 / 值对数据存放到散列映射中, 该方法同时返回键所对应的值。 A: public V put(K key,V value) B: public V get(Object key) C: public V remove(Object key) D: public int size()

    • 1

      API函数( )用于同步获取当前storage的相关信息。 A: wx.removeStorage(Object object) B: wx.removeStorageSync(string key) C: wx.getStorageInfo(Object object) D: Object wx.getStorageInfoSync()

    • 2

      API函数( )用于异步获取当前storage的相关信息。 A: wx.getStorageInfo(Object object) B: Object wx.getStorageInfoSync() C: wx.removeStorage(Object object) D: wx.removeStorageSync(string key)

    • 3

      API函数( )用于从本地缓存中同步清除所有数据。 A: wx.removeStorage(Object object) B: wx.removeStorageSync(string key) C: wx.clearStorage(Object object) D: wx.clearStorageSync()

    • 4

      Map集合中存储元素需要调用add(key,value)方法。