put

public static void put(Context context, String key, Object object)

保存数据的方法,我们需要拿到保存数据的具体类型,然后根据类型调用不同的保存方法

Parameters

context
key
object